From cf8c42ddeb44959138860c1704fe193ce345b83d Mon Sep 17 00:00:00 2001 From: AsukaMinato Date: Mon, 13 Nov 2023 04:39:13 +0900 Subject: [PATCH 1/2] string.prototype --- DOWNLOAD_STATS.md | 7 +++ create.ts | 7 +++ package.json | 14 ++++++ .../src/string.prototype.codepointat.ts | 3 ++ .../src/string.prototype.includes.ts | 3 ++ .../src/string.prototype.lastindexof.ts | 3 ++ .../src/string.prototype.repeat.ts | 3 ++ .../src/string.prototype.split.ts | 3 ++ .../src/string.prototype.startswith.ts | 3 ++ .../src/string.prototype.substr.ts | 3 ++ .../string.prototype.codepointat/auto.js | 2 + .../string.prototype.codepointat/entry.js | 2 + .../implementation.js | 2 + .../string.prototype.codepointat/index.js | 2 + .../string.prototype.codepointat/package.json | 21 ++++++++ .../string.prototype.codepointat/polyfill.js | 2 + .../string.prototype.codepointat/shim.js | 2 + .../string.prototype.includes/auto.js | 2 + .../string.prototype.includes/entry.js | 2 + .../implementation.js | 2 + .../string.prototype.includes/index.js | 2 + .../string.prototype.includes/package.json | 21 ++++++++ .../string.prototype.includes/polyfill.js | 2 + .../string.prototype.includes/shim.js | 2 + .../string.prototype.lastindexof/auto.js | 2 + .../string.prototype.lastindexof/entry.js | 2 + .../implementation.js | 2 + .../string.prototype.lastindexof/index.js | 2 + .../string.prototype.lastindexof/package.json | 21 ++++++++ .../string.prototype.lastindexof/polyfill.js | 2 + .../string.prototype.lastindexof/shim.js | 2 + .../generated/string.prototype.repeat/auto.js | 2 + .../string.prototype.repeat/entry.js | 2 + .../string.prototype.repeat/implementation.js | 2 + .../string.prototype.repeat/index.js | 2 + .../string.prototype.repeat/package.json | 21 ++++++++ .../string.prototype.repeat/polyfill.js | 2 + .../generated/string.prototype.repeat/shim.js | 2 + .../generated/string.prototype.split/auto.js | 2 + .../generated/string.prototype.split/entry.js | 2 + .../string.prototype.split/implementation.js | 2 + .../generated/string.prototype.split/index.js | 2 + .../string.prototype.split/package.json | 21 ++++++++ .../string.prototype.split/polyfill.js | 2 + .../generated/string.prototype.split/shim.js | 2 + .../string.prototype.startswith/auto.js | 2 + .../string.prototype.startswith/entry.js | 2 + .../implementation.js | 2 + .../string.prototype.startswith/index.js | 2 + .../string.prototype.startswith/package.json | 21 ++++++++ .../string.prototype.startswith/polyfill.js | 2 + .../string.prototype.startswith/shim.js | 2 + .../generated/string.prototype.substr/auto.js | 2 + .../string.prototype.substr/entry.js | 2 + .../string.prototype.substr/implementation.js | 2 + .../string.prototype.substr/index.js | 2 + .../string.prototype.substr/package.json | 21 ++++++++ .../string.prototype.substr/polyfill.js | 2 + .../generated/string.prototype.substr/shim.js | 2 + packages/tools/cli/src/all-packages.ts | 7 +++ pnpm-lock.yaml | 49 +++++++++++++++++++ 61 files changed, 336 insertions(+) create mode 100644 packages/data/es-shim-like/src/string.prototype.codepointat.ts create mode 100644 packages/data/es-shim-like/src/string.prototype.includes.ts create mode 100644 packages/data/es-shim-like/src/string.prototype.lastindexof.ts create mode 100644 packages/data/es-shim-like/src/string.prototype.repeat.ts create mode 100644 packages/data/es-shim-like/src/string.prototype.split.ts create mode 100644 packages/data/es-shim-like/src/string.prototype.startswith.ts create mode 100644 packages/data/es-shim-like/src/string.prototype.substr.ts create mode 100644 packages/generated/string.prototype.codepointat/auto.js create mode 100644 packages/generated/string.prototype.codepointat/entry.js create mode 100644 packages/generated/string.prototype.codepointat/implementation.js create mode 100644 packages/generated/string.prototype.codepointat/index.js create mode 100644 packages/generated/string.prototype.codepointat/package.json create mode 100644 packages/generated/string.prototype.codepointat/polyfill.js create mode 100644 packages/generated/string.prototype.codepointat/shim.js create mode 100644 packages/generated/string.prototype.includes/auto.js create mode 100644 packages/generated/string.prototype.includes/entry.js create mode 100644 packages/generated/string.prototype.includes/implementation.js create mode 100644 packages/generated/string.prototype.includes/index.js create mode 100644 packages/generated/string.prototype.includes/package.json create mode 100644 packages/generated/string.prototype.includes/polyfill.js create mode 100644 packages/generated/string.prototype.includes/shim.js create mode 100644 packages/generated/string.prototype.lastindexof/auto.js create mode 100644 packages/generated/string.prototype.lastindexof/entry.js create mode 100644 packages/generated/string.prototype.lastindexof/implementation.js create mode 100644 packages/generated/string.prototype.lastindexof/index.js create mode 100644 packages/generated/string.prototype.lastindexof/package.json create mode 100644 packages/generated/string.prototype.lastindexof/polyfill.js create mode 100644 packages/generated/string.prototype.lastindexof/shim.js create mode 100644 packages/generated/string.prototype.repeat/auto.js create mode 100644 packages/generated/string.prototype.repeat/entry.js create mode 100644 packages/generated/string.prototype.repeat/implementation.js create mode 100644 packages/generated/string.prototype.repeat/index.js create mode 100644 packages/generated/string.prototype.repeat/package.json create mode 100644 packages/generated/string.prototype.repeat/polyfill.js create mode 100644 packages/generated/string.prototype.repeat/shim.js create mode 100644 packages/generated/string.prototype.split/auto.js create mode 100644 packages/generated/string.prototype.split/entry.js create mode 100644 packages/generated/string.prototype.split/implementation.js create mode 100644 packages/generated/string.prototype.split/index.js create mode 100644 packages/generated/string.prototype.split/package.json create mode 100644 packages/generated/string.prototype.split/polyfill.js create mode 100644 packages/generated/string.prototype.split/shim.js create mode 100644 packages/generated/string.prototype.startswith/auto.js create mode 100644 packages/generated/string.prototype.startswith/entry.js create mode 100644 packages/generated/string.prototype.startswith/implementation.js create mode 100644 packages/generated/string.prototype.startswith/index.js create mode 100644 packages/generated/string.prototype.startswith/package.json create mode 100644 packages/generated/string.prototype.startswith/polyfill.js create mode 100644 packages/generated/string.prototype.startswith/shim.js create mode 100644 packages/generated/string.prototype.substr/auto.js create mode 100644 packages/generated/string.prototype.substr/entry.js create mode 100644 packages/generated/string.prototype.substr/implementation.js create mode 100644 packages/generated/string.prototype.substr/index.js create mode 100644 packages/generated/string.prototype.substr/package.json create mode 100644 packages/generated/string.prototype.substr/polyfill.js create mode 100644 packages/generated/string.prototype.substr/shim.js diff --git a/DOWNLOAD_STATS.md b/DOWNLOAD_STATS.md index d0c11042..48059694 100644 --- a/DOWNLOAD_STATS.md +++ b/DOWNLOAD_STATS.md @@ -63,10 +63,17 @@ | `@nolyfill/safe-regex-test` | [![npm](https://img.shields.io/npm/dt/@nolyfill/safe-regex-test.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/safe-regex-test) | | `@nolyfill/side-channel` | [![npm](https://img.shields.io/npm/dt/@nolyfill/side-channel.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/side-channel) | | `@nolyfill/string.prototype.at` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.at.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.at) | +| `@nolyfill/string.prototype.codepointat` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.codepointat.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.codepointat) | +| `@nolyfill/string.prototype.includes` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.includes.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.includes) | +| `@nolyfill/string.prototype.lastindexof` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.lastindexof.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.lastindexof) | | `@nolyfill/string.prototype.matchall` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.matchall.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.matchall) | | `@nolyfill/string.prototype.padend` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.padend.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.padend) | | `@nolyfill/string.prototype.padstart` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.padstart.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.padstart) | +| `@nolyfill/string.prototype.repeat` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.repeat.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.repeat) | | `@nolyfill/string.prototype.replaceall` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.replaceall.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.replaceall) | +| `@nolyfill/string.prototype.split` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.split.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.split) | +| `@nolyfill/string.prototype.startswith` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.startswith.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.startswith) | +| `@nolyfill/string.prototype.substr` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.substr.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.substr) | | `@nolyfill/string.prototype.trim` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.trim.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.trim) | | `@nolyfill/string.prototype.trimend` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.trimend.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.trimend) | | `@nolyfill/string.prototype.trimleft` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.trimleft.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.trimleft) | diff --git a/create.ts b/create.ts index 1e0474cb..b92f199d 100644 --- a/create.ts +++ b/create.ts @@ -65,6 +65,13 @@ const autoGeneratedPackagesList = [ ['array.prototype.find'], ['array.from'], ['string.prototype.padend'], + ['string.prototype.codepointat'], + ['string.prototype.includes'], + ['string.prototype.lastindexof'], + ['string.prototype.repeat'], + ['string.prototype.split'], + ['string.prototype.startswith'], + ['string.prototype.substr'], ['string.prototype.padstart'], ['object.getownpropertydescriptors'], ['array.prototype.reduce'], diff --git a/package.json b/package.json index 639ea1ff..d7ae78cd 100644 --- a/package.json +++ b/package.json @@ -101,10 +101,17 @@ "safe-regex-test": "workspace:@nolyfill/safe-regex-test@*", "side-channel": "workspace:@nolyfill/side-channel@*", "string.prototype.at": "workspace:@nolyfill/string.prototype.at@*", + "string.prototype.codepointat": "workspace:@nolyfill/string.prototype.codepointat@*", + "string.prototype.includes": "workspace:@nolyfill/string.prototype.includes@*", + "string.prototype.lastindexof": "workspace:@nolyfill/string.prototype.lastindexof@*", "string.prototype.matchall": "workspace:@nolyfill/string.prototype.matchall@*", "string.prototype.padend": "workspace:@nolyfill/string.prototype.padend@*", "string.prototype.padstart": "workspace:@nolyfill/string.prototype.padstart@*", + "string.prototype.repeat": "workspace:@nolyfill/string.prototype.repeat@*", "string.prototype.replaceall": "workspace:@nolyfill/string.prototype.replaceall@*", + "string.prototype.split": "workspace:@nolyfill/string.prototype.split@*", + "string.prototype.startswith": "workspace:@nolyfill/string.prototype.startswith@*", + "string.prototype.substr": "workspace:@nolyfill/string.prototype.substr@*", "string.prototype.trim": "workspace:@nolyfill/string.prototype.trim@*", "string.prototype.trimend": "workspace:@nolyfill/string.prototype.trimend@*", "string.prototype.trimleft": "workspace:@nolyfill/string.prototype.trimleft@*", @@ -187,10 +194,17 @@ "safe-regex-test": "npm:@nolyfill/safe-regex-test@latest", "side-channel": "npm:@nolyfill/side-channel@latest", "string.prototype.at": "npm:@nolyfill/string.prototype.at@latest", + "string.prototype.codepointat": "npm:@nolyfill/string.prototype.codepointat@latest", + "string.prototype.includes": "npm:@nolyfill/string.prototype.includes@latest", + "string.prototype.lastindexof": "npm:@nolyfill/string.prototype.lastindexof@latest", "string.prototype.matchall": "npm:@nolyfill/string.prototype.matchall@latest", "string.prototype.padend": "npm:@nolyfill/string.prototype.padend@latest", "string.prototype.padstart": "npm:@nolyfill/string.prototype.padstart@latest", + "string.prototype.repeat": "npm:@nolyfill/string.prototype.repeat@latest", "string.prototype.replaceall": "npm:@nolyfill/string.prototype.replaceall@latest", + "string.prototype.split": "npm:@nolyfill/string.prototype.split@latest", + "string.prototype.startswith": "npm:@nolyfill/string.prototype.startswith@latest", + "string.prototype.substr": "npm:@nolyfill/string.prototype.substr@latest", "string.prototype.trim": "npm:@nolyfill/string.prototype.trim@latest", "string.prototype.trimend": "npm:@nolyfill/string.prototype.trimend@latest", "string.prototype.trimleft": "npm:@nolyfill/string.prototype.trimleft@latest", diff --git a/packages/data/es-shim-like/src/string.prototype.codepointat.ts b/packages/data/es-shim-like/src/string.prototype.codepointat.ts new file mode 100644 index 00000000..74757dc3 --- /dev/null +++ b/packages/data/es-shim-like/src/string.prototype.codepointat.ts @@ -0,0 +1,3 @@ +import { defineEsShim } from '@nolyfill/shared'; + +export default defineEsShim(String.prototype.codePointAt); diff --git a/packages/data/es-shim-like/src/string.prototype.includes.ts b/packages/data/es-shim-like/src/string.prototype.includes.ts new file mode 100644 index 00000000..579d193a --- /dev/null +++ b/packages/data/es-shim-like/src/string.prototype.includes.ts @@ -0,0 +1,3 @@ +import { defineEsShim } from '@nolyfill/shared'; + +export default defineEsShim(String.prototype.includes); diff --git a/packages/data/es-shim-like/src/string.prototype.lastindexof.ts b/packages/data/es-shim-like/src/string.prototype.lastindexof.ts new file mode 100644 index 00000000..37fcf3d4 --- /dev/null +++ b/packages/data/es-shim-like/src/string.prototype.lastindexof.ts @@ -0,0 +1,3 @@ +import { defineEsShim } from '@nolyfill/shared'; + +export default defineEsShim(String.prototype.lastIndexOf); diff --git a/packages/data/es-shim-like/src/string.prototype.repeat.ts b/packages/data/es-shim-like/src/string.prototype.repeat.ts new file mode 100644 index 00000000..9b4bccdb --- /dev/null +++ b/packages/data/es-shim-like/src/string.prototype.repeat.ts @@ -0,0 +1,3 @@ +import { defineEsShim } from '@nolyfill/shared'; + +export default defineEsShim(String.prototype.repeat); diff --git a/packages/data/es-shim-like/src/string.prototype.split.ts b/packages/data/es-shim-like/src/string.prototype.split.ts new file mode 100644 index 00000000..b0bd2c34 --- /dev/null +++ b/packages/data/es-shim-like/src/string.prototype.split.ts @@ -0,0 +1,3 @@ +import { defineEsShim } from '@nolyfill/shared'; + +export default defineEsShim(String.prototype.split); diff --git a/packages/data/es-shim-like/src/string.prototype.startswith.ts b/packages/data/es-shim-like/src/string.prototype.startswith.ts new file mode 100644 index 00000000..cb87430b --- /dev/null +++ b/packages/data/es-shim-like/src/string.prototype.startswith.ts @@ -0,0 +1,3 @@ +import { defineEsShim } from '@nolyfill/shared'; + +export default defineEsShim(String.prototype.startsWith); diff --git a/packages/data/es-shim-like/src/string.prototype.substr.ts b/packages/data/es-shim-like/src/string.prototype.substr.ts new file mode 100644 index 00000000..e12e5fd0 --- /dev/null +++ b/packages/data/es-shim-like/src/string.prototype.substr.ts @@ -0,0 +1,3 @@ +import { defineEsShim } from '@nolyfill/shared'; + +export default defineEsShim(String.prototype.substr); diff --git a/packages/generated/string.prototype.codepointat/auto.js b/packages/generated/string.prototype.codepointat/auto.js new file mode 100644 index 00000000..318c0bb9 --- /dev/null +++ b/packages/generated/string.prototype.codepointat/auto.js @@ -0,0 +1,2 @@ +'use strict'; +/* noop */ diff --git a/packages/generated/string.prototype.codepointat/entry.js b/packages/generated/string.prototype.codepointat/entry.js new file mode 100644 index 00000000..26c3b4a9 --- /dev/null +++ b/packages/generated/string.prototype.codepointat/entry.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return t}});const e=require("@nolyfill/shared"),t=(0,e.defineEsShim)(String.prototype.codePointAt); +Object.assign(exports.default, exports); module.exports = exports.default; diff --git a/packages/generated/string.prototype.codepointat/implementation.js b/packages/generated/string.prototype.codepointat/implementation.js new file mode 100644 index 00000000..34019673 --- /dev/null +++ b/packages/generated/string.prototype.codepointat/implementation.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').implementation; diff --git a/packages/generated/string.prototype.codepointat/index.js b/packages/generated/string.prototype.codepointat/index.js new file mode 100644 index 00000000..563021d7 --- /dev/null +++ b/packages/generated/string.prototype.codepointat/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').index(); diff --git a/packages/generated/string.prototype.codepointat/package.json b/packages/generated/string.prototype.codepointat/package.json new file mode 100644 index 00000000..5babc9bd --- /dev/null +++ b/packages/generated/string.prototype.codepointat/package.json @@ -0,0 +1,21 @@ +{ + "name": "@nolyfill/string.prototype.codepointat", + "version": "1.0.25", + "repository": { + "type": "git", + "url": "https://github.com/SukkaW/nolyfill", + "directory": "packages/generated/string.prototype.codepointat" + }, + "main": "./index.js", + "license": "MIT", + "files": [ + "*.js" + ], + "scripts": {}, + "dependencies": { + "@nolyfill/shared": "workspace:*" + }, + "engines": { + "node": ">=12.4.0" + } +} diff --git a/packages/generated/string.prototype.codepointat/polyfill.js b/packages/generated/string.prototype.codepointat/polyfill.js new file mode 100644 index 00000000..4166abf3 --- /dev/null +++ b/packages/generated/string.prototype.codepointat/polyfill.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').polyfill; diff --git a/packages/generated/string.prototype.codepointat/shim.js b/packages/generated/string.prototype.codepointat/shim.js new file mode 100644 index 00000000..301a98bd --- /dev/null +++ b/packages/generated/string.prototype.codepointat/shim.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').shim; diff --git a/packages/generated/string.prototype.includes/auto.js b/packages/generated/string.prototype.includes/auto.js new file mode 100644 index 00000000..318c0bb9 --- /dev/null +++ b/packages/generated/string.prototype.includes/auto.js @@ -0,0 +1,2 @@ +'use strict'; +/* noop */ diff --git a/packages/generated/string.prototype.includes/entry.js b/packages/generated/string.prototype.includes/entry.js new file mode 100644 index 00000000..e4c23147 --- /dev/null +++ b/packages/generated/string.prototype.includes/entry.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return t}});const e=require("@nolyfill/shared"),t=(0,e.defineEsShim)(String.prototype.includes); +Object.assign(exports.default, exports); module.exports = exports.default; diff --git a/packages/generated/string.prototype.includes/implementation.js b/packages/generated/string.prototype.includes/implementation.js new file mode 100644 index 00000000..34019673 --- /dev/null +++ b/packages/generated/string.prototype.includes/implementation.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').implementation; diff --git a/packages/generated/string.prototype.includes/index.js b/packages/generated/string.prototype.includes/index.js new file mode 100644 index 00000000..563021d7 --- /dev/null +++ b/packages/generated/string.prototype.includes/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').index(); diff --git a/packages/generated/string.prototype.includes/package.json b/packages/generated/string.prototype.includes/package.json new file mode 100644 index 00000000..90d3173e --- /dev/null +++ b/packages/generated/string.prototype.includes/package.json @@ -0,0 +1,21 @@ +{ + "name": "@nolyfill/string.prototype.includes", + "version": "1.0.25", + "repository": { + "type": "git", + "url": "https://github.com/SukkaW/nolyfill", + "directory": "packages/generated/string.prototype.includes" + }, + "main": "./index.js", + "license": "MIT", + "files": [ + "*.js" + ], + "scripts": {}, + "dependencies": { + "@nolyfill/shared": "workspace:*" + }, + "engines": { + "node": ">=12.4.0" + } +} diff --git a/packages/generated/string.prototype.includes/polyfill.js b/packages/generated/string.prototype.includes/polyfill.js new file mode 100644 index 00000000..4166abf3 --- /dev/null +++ b/packages/generated/string.prototype.includes/polyfill.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').polyfill; diff --git a/packages/generated/string.prototype.includes/shim.js b/packages/generated/string.prototype.includes/shim.js new file mode 100644 index 00000000..301a98bd --- /dev/null +++ b/packages/generated/string.prototype.includes/shim.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').shim; diff --git a/packages/generated/string.prototype.lastindexof/auto.js b/packages/generated/string.prototype.lastindexof/auto.js new file mode 100644 index 00000000..318c0bb9 --- /dev/null +++ b/packages/generated/string.prototype.lastindexof/auto.js @@ -0,0 +1,2 @@ +'use strict'; +/* noop */ diff --git a/packages/generated/string.prototype.lastindexof/entry.js b/packages/generated/string.prototype.lastindexof/entry.js new file mode 100644 index 00000000..bd9dfdf1 --- /dev/null +++ b/packages/generated/string.prototype.lastindexof/entry.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return t}});const e=require("@nolyfill/shared"),t=(0,e.defineEsShim)(String.prototype.lastIndexOf); +Object.assign(exports.default, exports); module.exports = exports.default; diff --git a/packages/generated/string.prototype.lastindexof/implementation.js b/packages/generated/string.prototype.lastindexof/implementation.js new file mode 100644 index 00000000..34019673 --- /dev/null +++ b/packages/generated/string.prototype.lastindexof/implementation.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').implementation; diff --git a/packages/generated/string.prototype.lastindexof/index.js b/packages/generated/string.prototype.lastindexof/index.js new file mode 100644 index 00000000..563021d7 --- /dev/null +++ b/packages/generated/string.prototype.lastindexof/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').index(); diff --git a/packages/generated/string.prototype.lastindexof/package.json b/packages/generated/string.prototype.lastindexof/package.json new file mode 100644 index 00000000..6b132e80 --- /dev/null +++ b/packages/generated/string.prototype.lastindexof/package.json @@ -0,0 +1,21 @@ +{ + "name": "@nolyfill/string.prototype.lastindexof", + "version": "1.0.25", + "repository": { + "type": "git", + "url": "https://github.com/SukkaW/nolyfill", + "directory": "packages/generated/string.prototype.lastindexof" + }, + "main": "./index.js", + "license": "MIT", + "files": [ + "*.js" + ], + "scripts": {}, + "dependencies": { + "@nolyfill/shared": "workspace:*" + }, + "engines": { + "node": ">=12.4.0" + } +} diff --git a/packages/generated/string.prototype.lastindexof/polyfill.js b/packages/generated/string.prototype.lastindexof/polyfill.js new file mode 100644 index 00000000..4166abf3 --- /dev/null +++ b/packages/generated/string.prototype.lastindexof/polyfill.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').polyfill; diff --git a/packages/generated/string.prototype.lastindexof/shim.js b/packages/generated/string.prototype.lastindexof/shim.js new file mode 100644 index 00000000..301a98bd --- /dev/null +++ b/packages/generated/string.prototype.lastindexof/shim.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').shim; diff --git a/packages/generated/string.prototype.repeat/auto.js b/packages/generated/string.prototype.repeat/auto.js new file mode 100644 index 00000000..318c0bb9 --- /dev/null +++ b/packages/generated/string.prototype.repeat/auto.js @@ -0,0 +1,2 @@ +'use strict'; +/* noop */ diff --git a/packages/generated/string.prototype.repeat/entry.js b/packages/generated/string.prototype.repeat/entry.js new file mode 100644 index 00000000..88ecbe09 --- /dev/null +++ b/packages/generated/string.prototype.repeat/entry.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return t}});const e=require("@nolyfill/shared"),t=(0,e.defineEsShim)(String.prototype.repeat); +Object.assign(exports.default, exports); module.exports = exports.default; diff --git a/packages/generated/string.prototype.repeat/implementation.js b/packages/generated/string.prototype.repeat/implementation.js new file mode 100644 index 00000000..34019673 --- /dev/null +++ b/packages/generated/string.prototype.repeat/implementation.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').implementation; diff --git a/packages/generated/string.prototype.repeat/index.js b/packages/generated/string.prototype.repeat/index.js new file mode 100644 index 00000000..563021d7 --- /dev/null +++ b/packages/generated/string.prototype.repeat/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').index(); diff --git a/packages/generated/string.prototype.repeat/package.json b/packages/generated/string.prototype.repeat/package.json new file mode 100644 index 00000000..1241f432 --- /dev/null +++ b/packages/generated/string.prototype.repeat/package.json @@ -0,0 +1,21 @@ +{ + "name": "@nolyfill/string.prototype.repeat", + "version": "1.0.25", + "repository": { + "type": "git", + "url": "https://github.com/SukkaW/nolyfill", + "directory": "packages/generated/string.prototype.repeat" + }, + "main": "./index.js", + "license": "MIT", + "files": [ + "*.js" + ], + "scripts": {}, + "dependencies": { + "@nolyfill/shared": "workspace:*" + }, + "engines": { + "node": ">=12.4.0" + } +} diff --git a/packages/generated/string.prototype.repeat/polyfill.js b/packages/generated/string.prototype.repeat/polyfill.js new file mode 100644 index 00000000..4166abf3 --- /dev/null +++ b/packages/generated/string.prototype.repeat/polyfill.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').polyfill; diff --git a/packages/generated/string.prototype.repeat/shim.js b/packages/generated/string.prototype.repeat/shim.js new file mode 100644 index 00000000..301a98bd --- /dev/null +++ b/packages/generated/string.prototype.repeat/shim.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').shim; diff --git a/packages/generated/string.prototype.split/auto.js b/packages/generated/string.prototype.split/auto.js new file mode 100644 index 00000000..318c0bb9 --- /dev/null +++ b/packages/generated/string.prototype.split/auto.js @@ -0,0 +1,2 @@ +'use strict'; +/* noop */ diff --git a/packages/generated/string.prototype.split/entry.js b/packages/generated/string.prototype.split/entry.js new file mode 100644 index 00000000..509ea4f2 --- /dev/null +++ b/packages/generated/string.prototype.split/entry.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return t}});const e=require("@nolyfill/shared"),t=(0,e.defineEsShim)(String.prototype.split); +Object.assign(exports.default, exports); module.exports = exports.default; diff --git a/packages/generated/string.prototype.split/implementation.js b/packages/generated/string.prototype.split/implementation.js new file mode 100644 index 00000000..34019673 --- /dev/null +++ b/packages/generated/string.prototype.split/implementation.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').implementation; diff --git a/packages/generated/string.prototype.split/index.js b/packages/generated/string.prototype.split/index.js new file mode 100644 index 00000000..563021d7 --- /dev/null +++ b/packages/generated/string.prototype.split/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').index(); diff --git a/packages/generated/string.prototype.split/package.json b/packages/generated/string.prototype.split/package.json new file mode 100644 index 00000000..8e08dd03 --- /dev/null +++ b/packages/generated/string.prototype.split/package.json @@ -0,0 +1,21 @@ +{ + "name": "@nolyfill/string.prototype.split", + "version": "1.0.25", + "repository": { + "type": "git", + "url": "https://github.com/SukkaW/nolyfill", + "directory": "packages/generated/string.prototype.split" + }, + "main": "./index.js", + "license": "MIT", + "files": [ + "*.js" + ], + "scripts": {}, + "dependencies": { + "@nolyfill/shared": "workspace:*" + }, + "engines": { + "node": ">=12.4.0" + } +} diff --git a/packages/generated/string.prototype.split/polyfill.js b/packages/generated/string.prototype.split/polyfill.js new file mode 100644 index 00000000..4166abf3 --- /dev/null +++ b/packages/generated/string.prototype.split/polyfill.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').polyfill; diff --git a/packages/generated/string.prototype.split/shim.js b/packages/generated/string.prototype.split/shim.js new file mode 100644 index 00000000..301a98bd --- /dev/null +++ b/packages/generated/string.prototype.split/shim.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').shim; diff --git a/packages/generated/string.prototype.startswith/auto.js b/packages/generated/string.prototype.startswith/auto.js new file mode 100644 index 00000000..318c0bb9 --- /dev/null +++ b/packages/generated/string.prototype.startswith/auto.js @@ -0,0 +1,2 @@ +'use strict'; +/* noop */ diff --git a/packages/generated/string.prototype.startswith/entry.js b/packages/generated/string.prototype.startswith/entry.js new file mode 100644 index 00000000..5a4676cf --- /dev/null +++ b/packages/generated/string.prototype.startswith/entry.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return t}});const e=require("@nolyfill/shared"),t=(0,e.defineEsShim)(String.prototype.matchAll); +Object.assign(exports.default, exports); module.exports = exports.default; diff --git a/packages/generated/string.prototype.startswith/implementation.js b/packages/generated/string.prototype.startswith/implementation.js new file mode 100644 index 00000000..34019673 --- /dev/null +++ b/packages/generated/string.prototype.startswith/implementation.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').implementation; diff --git a/packages/generated/string.prototype.startswith/index.js b/packages/generated/string.prototype.startswith/index.js new file mode 100644 index 00000000..563021d7 --- /dev/null +++ b/packages/generated/string.prototype.startswith/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').index(); diff --git a/packages/generated/string.prototype.startswith/package.json b/packages/generated/string.prototype.startswith/package.json new file mode 100644 index 00000000..4016206f --- /dev/null +++ b/packages/generated/string.prototype.startswith/package.json @@ -0,0 +1,21 @@ +{ + "name": "@nolyfill/string.prototype.startswith", + "version": "1.0.25", + "repository": { + "type": "git", + "url": "https://github.com/SukkaW/nolyfill", + "directory": "packages/generated/string.prototype.startswith" + }, + "main": "./index.js", + "license": "MIT", + "files": [ + "*.js" + ], + "scripts": {}, + "dependencies": { + "@nolyfill/shared": "workspace:*" + }, + "engines": { + "node": ">=12.4.0" + } +} diff --git a/packages/generated/string.prototype.startswith/polyfill.js b/packages/generated/string.prototype.startswith/polyfill.js new file mode 100644 index 00000000..4166abf3 --- /dev/null +++ b/packages/generated/string.prototype.startswith/polyfill.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').polyfill; diff --git a/packages/generated/string.prototype.startswith/shim.js b/packages/generated/string.prototype.startswith/shim.js new file mode 100644 index 00000000..301a98bd --- /dev/null +++ b/packages/generated/string.prototype.startswith/shim.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').shim; diff --git a/packages/generated/string.prototype.substr/auto.js b/packages/generated/string.prototype.substr/auto.js new file mode 100644 index 00000000..318c0bb9 --- /dev/null +++ b/packages/generated/string.prototype.substr/auto.js @@ -0,0 +1,2 @@ +'use strict'; +/* noop */ diff --git a/packages/generated/string.prototype.substr/entry.js b/packages/generated/string.prototype.substr/entry.js new file mode 100644 index 00000000..de0418b6 --- /dev/null +++ b/packages/generated/string.prototype.substr/entry.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return t}});const e=require("@nolyfill/shared"),t=(0,e.defineEsShim)(String.prototype.substr); +Object.assign(exports.default, exports); module.exports = exports.default; diff --git a/packages/generated/string.prototype.substr/implementation.js b/packages/generated/string.prototype.substr/implementation.js new file mode 100644 index 00000000..34019673 --- /dev/null +++ b/packages/generated/string.prototype.substr/implementation.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').implementation; diff --git a/packages/generated/string.prototype.substr/index.js b/packages/generated/string.prototype.substr/index.js new file mode 100644 index 00000000..563021d7 --- /dev/null +++ b/packages/generated/string.prototype.substr/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').index(); diff --git a/packages/generated/string.prototype.substr/package.json b/packages/generated/string.prototype.substr/package.json new file mode 100644 index 00000000..611649f9 --- /dev/null +++ b/packages/generated/string.prototype.substr/package.json @@ -0,0 +1,21 @@ +{ + "name": "@nolyfill/string.prototype.substr", + "version": "1.0.25", + "repository": { + "type": "git", + "url": "https://github.com/SukkaW/nolyfill", + "directory": "packages/generated/string.prototype.substr" + }, + "main": "./index.js", + "license": "MIT", + "files": [ + "*.js" + ], + "scripts": {}, + "dependencies": { + "@nolyfill/shared": "workspace:*" + }, + "engines": { + "node": ">=12.4.0" + } +} diff --git a/packages/generated/string.prototype.substr/polyfill.js b/packages/generated/string.prototype.substr/polyfill.js new file mode 100644 index 00000000..4166abf3 --- /dev/null +++ b/packages/generated/string.prototype.substr/polyfill.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').polyfill; diff --git a/packages/generated/string.prototype.substr/shim.js b/packages/generated/string.prototype.substr/shim.js new file mode 100644 index 00000000..301a98bd --- /dev/null +++ b/packages/generated/string.prototype.substr/shim.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./entry.js').shim; diff --git a/packages/tools/cli/src/all-packages.ts b/packages/tools/cli/src/all-packages.ts index 084651bb..8e58e24f 100644 --- a/packages/tools/cli/src/all-packages.ts +++ b/packages/tools/cli/src/all-packages.ts @@ -62,10 +62,17 @@ export const allPackages = [ "safe-regex-test", "side-channel", "string.prototype.at", + "string.prototype.codepointat", + "string.prototype.includes", + "string.prototype.lastindexof", "string.prototype.matchall", "string.prototype.padend", "string.prototype.padstart", + "string.prototype.repeat", "string.prototype.replaceall", + "string.prototype.split", + "string.prototype.startswith", + "string.prototype.substr", "string.prototype.trim", "string.prototype.trimend", "string.prototype.trimleft", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 86ca78da..606e9ac9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,10 +66,17 @@ overrides: safe-regex-test: workspace:@nolyfill/safe-regex-test@* side-channel: workspace:@nolyfill/side-channel@* string.prototype.at: workspace:@nolyfill/string.prototype.at@* + string.prototype.codepointat: workspace:@nolyfill/string.prototype.codepointat@* + string.prototype.includes: workspace:@nolyfill/string.prototype.includes@* + string.prototype.lastindexof: workspace:@nolyfill/string.prototype.lastindexof@* string.prototype.matchall: workspace:@nolyfill/string.prototype.matchall@* string.prototype.padend: workspace:@nolyfill/string.prototype.padend@* string.prototype.padstart: workspace:@nolyfill/string.prototype.padstart@* + string.prototype.repeat: workspace:@nolyfill/string.prototype.repeat@* string.prototype.replaceall: workspace:@nolyfill/string.prototype.replaceall@* + string.prototype.split: workspace:@nolyfill/string.prototype.split@* + string.prototype.startswith: workspace:@nolyfill/string.prototype.startswith@* + string.prototype.substr: workspace:@nolyfill/string.prototype.substr@* string.prototype.trim: workspace:@nolyfill/string.prototype.trim@* string.prototype.trimend: workspace:@nolyfill/string.prototype.trimend@* string.prototype.trimleft: workspace:@nolyfill/string.prototype.trimleft@* @@ -451,6 +458,24 @@ importers: specifier: workspace:* version: link:../../tools/shared + packages/generated/string.prototype.codepointat: + dependencies: + '@nolyfill/shared': + specifier: workspace:* + version: link:../../tools/shared + + packages/generated/string.prototype.includes: + dependencies: + '@nolyfill/shared': + specifier: workspace:* + version: link:../../tools/shared + + packages/generated/string.prototype.lastindexof: + dependencies: + '@nolyfill/shared': + specifier: workspace:* + version: link:../../tools/shared + packages/generated/string.prototype.matchall: dependencies: '@nolyfill/shared': @@ -469,12 +494,36 @@ importers: specifier: workspace:* version: link:../../tools/shared + packages/generated/string.prototype.repeat: + dependencies: + '@nolyfill/shared': + specifier: workspace:* + version: link:../../tools/shared + packages/generated/string.prototype.replaceall: dependencies: '@nolyfill/shared': specifier: workspace:* version: link:../../tools/shared + packages/generated/string.prototype.split: + dependencies: + '@nolyfill/shared': + specifier: workspace:* + version: link:../../tools/shared + + packages/generated/string.prototype.startswith: + dependencies: + '@nolyfill/shared': + specifier: workspace:* + version: link:../../tools/shared + + packages/generated/string.prototype.substr: + dependencies: + '@nolyfill/shared': + specifier: workspace:* + version: link:../../tools/shared + packages/generated/string.prototype.trim: dependencies: '@nolyfill/shared': From 544a5620d79d9d38d3ccdee4841e2c83075e5f9d Mon Sep 17 00:00:00 2001 From: AsukaMinato Date: Mon, 13 Nov 2023 14:43:51 +0900 Subject: [PATCH 2/2] remove useless pkg --- DOWNLOAD_STATS.md | 2 -- create.ts | 2 -- package.json | 4 ---- .../data/es-shim-like/src/string.prototype.lastindexof.ts | 3 --- packages/data/es-shim-like/src/string.prototype.substr.ts | 3 --- packages/generated/string.prototype.startswith/entry.js | 2 +- packages/tools/cli/src/all-packages.ts | 2 -- pnpm-lock.yaml | 2 -- 8 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 packages/data/es-shim-like/src/string.prototype.lastindexof.ts delete mode 100644 packages/data/es-shim-like/src/string.prototype.substr.ts diff --git a/DOWNLOAD_STATS.md b/DOWNLOAD_STATS.md index 48059694..6449e5e8 100644 --- a/DOWNLOAD_STATS.md +++ b/DOWNLOAD_STATS.md @@ -65,7 +65,6 @@ | `@nolyfill/string.prototype.at` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.at.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.at) | | `@nolyfill/string.prototype.codepointat` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.codepointat.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.codepointat) | | `@nolyfill/string.prototype.includes` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.includes.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.includes) | -| `@nolyfill/string.prototype.lastindexof` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.lastindexof.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.lastindexof) | | `@nolyfill/string.prototype.matchall` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.matchall.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.matchall) | | `@nolyfill/string.prototype.padend` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.padend.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.padend) | | `@nolyfill/string.prototype.padstart` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.padstart.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.padstart) | @@ -73,7 +72,6 @@ | `@nolyfill/string.prototype.replaceall` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.replaceall.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.replaceall) | | `@nolyfill/string.prototype.split` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.split.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.split) | | `@nolyfill/string.prototype.startswith` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.startswith.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.startswith) | -| `@nolyfill/string.prototype.substr` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.substr.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.substr) | | `@nolyfill/string.prototype.trim` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.trim.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.trim) | | `@nolyfill/string.prototype.trimend` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.trimend.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.trimend) | | `@nolyfill/string.prototype.trimleft` | [![npm](https://img.shields.io/npm/dt/@nolyfill/string.prototype.trimleft.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/string.prototype.trimleft) | diff --git a/create.ts b/create.ts index b92f199d..8d35ef05 100644 --- a/create.ts +++ b/create.ts @@ -67,11 +67,9 @@ const autoGeneratedPackagesList = [ ['string.prototype.padend'], ['string.prototype.codepointat'], ['string.prototype.includes'], - ['string.prototype.lastindexof'], ['string.prototype.repeat'], ['string.prototype.split'], ['string.prototype.startswith'], - ['string.prototype.substr'], ['string.prototype.padstart'], ['object.getownpropertydescriptors'], ['array.prototype.reduce'], diff --git a/package.json b/package.json index d7ae78cd..fcdaf9f4 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,6 @@ "string.prototype.at": "workspace:@nolyfill/string.prototype.at@*", "string.prototype.codepointat": "workspace:@nolyfill/string.prototype.codepointat@*", "string.prototype.includes": "workspace:@nolyfill/string.prototype.includes@*", - "string.prototype.lastindexof": "workspace:@nolyfill/string.prototype.lastindexof@*", "string.prototype.matchall": "workspace:@nolyfill/string.prototype.matchall@*", "string.prototype.padend": "workspace:@nolyfill/string.prototype.padend@*", "string.prototype.padstart": "workspace:@nolyfill/string.prototype.padstart@*", @@ -111,7 +110,6 @@ "string.prototype.replaceall": "workspace:@nolyfill/string.prototype.replaceall@*", "string.prototype.split": "workspace:@nolyfill/string.prototype.split@*", "string.prototype.startswith": "workspace:@nolyfill/string.prototype.startswith@*", - "string.prototype.substr": "workspace:@nolyfill/string.prototype.substr@*", "string.prototype.trim": "workspace:@nolyfill/string.prototype.trim@*", "string.prototype.trimend": "workspace:@nolyfill/string.prototype.trimend@*", "string.prototype.trimleft": "workspace:@nolyfill/string.prototype.trimleft@*", @@ -196,7 +194,6 @@ "string.prototype.at": "npm:@nolyfill/string.prototype.at@latest", "string.prototype.codepointat": "npm:@nolyfill/string.prototype.codepointat@latest", "string.prototype.includes": "npm:@nolyfill/string.prototype.includes@latest", - "string.prototype.lastindexof": "npm:@nolyfill/string.prototype.lastindexof@latest", "string.prototype.matchall": "npm:@nolyfill/string.prototype.matchall@latest", "string.prototype.padend": "npm:@nolyfill/string.prototype.padend@latest", "string.prototype.padstart": "npm:@nolyfill/string.prototype.padstart@latest", @@ -204,7 +201,6 @@ "string.prototype.replaceall": "npm:@nolyfill/string.prototype.replaceall@latest", "string.prototype.split": "npm:@nolyfill/string.prototype.split@latest", "string.prototype.startswith": "npm:@nolyfill/string.prototype.startswith@latest", - "string.prototype.substr": "npm:@nolyfill/string.prototype.substr@latest", "string.prototype.trim": "npm:@nolyfill/string.prototype.trim@latest", "string.prototype.trimend": "npm:@nolyfill/string.prototype.trimend@latest", "string.prototype.trimleft": "npm:@nolyfill/string.prototype.trimleft@latest", diff --git a/packages/data/es-shim-like/src/string.prototype.lastindexof.ts b/packages/data/es-shim-like/src/string.prototype.lastindexof.ts deleted file mode 100644 index 37fcf3d4..00000000 --- a/packages/data/es-shim-like/src/string.prototype.lastindexof.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { defineEsShim } from '@nolyfill/shared'; - -export default defineEsShim(String.prototype.lastIndexOf); diff --git a/packages/data/es-shim-like/src/string.prototype.substr.ts b/packages/data/es-shim-like/src/string.prototype.substr.ts deleted file mode 100644 index e12e5fd0..00000000 --- a/packages/data/es-shim-like/src/string.prototype.substr.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { defineEsShim } from '@nolyfill/shared'; - -export default defineEsShim(String.prototype.substr); diff --git a/packages/generated/string.prototype.startswith/entry.js b/packages/generated/string.prototype.startswith/entry.js index 5a4676cf..3140aabc 100644 --- a/packages/generated/string.prototype.startswith/entry.js +++ b/packages/generated/string.prototype.startswith/entry.js @@ -1,2 +1,2 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return t}});const e=require("@nolyfill/shared"),t=(0,e.defineEsShim)(String.prototype.matchAll); +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return t}});const e=require("@nolyfill/shared"),t=(0,e.defineEsShim)(String.prototype.startsWith); Object.assign(exports.default, exports); module.exports = exports.default; diff --git a/packages/tools/cli/src/all-packages.ts b/packages/tools/cli/src/all-packages.ts index 8e58e24f..655f7bd7 100644 --- a/packages/tools/cli/src/all-packages.ts +++ b/packages/tools/cli/src/all-packages.ts @@ -64,7 +64,6 @@ export const allPackages = [ "string.prototype.at", "string.prototype.codepointat", "string.prototype.includes", - "string.prototype.lastindexof", "string.prototype.matchall", "string.prototype.padend", "string.prototype.padstart", @@ -72,7 +71,6 @@ export const allPackages = [ "string.prototype.replaceall", "string.prototype.split", "string.prototype.startswith", - "string.prototype.substr", "string.prototype.trim", "string.prototype.trimend", "string.prototype.trimleft", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 606e9ac9..62f49afc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,7 +68,6 @@ overrides: string.prototype.at: workspace:@nolyfill/string.prototype.at@* string.prototype.codepointat: workspace:@nolyfill/string.prototype.codepointat@* string.prototype.includes: workspace:@nolyfill/string.prototype.includes@* - string.prototype.lastindexof: workspace:@nolyfill/string.prototype.lastindexof@* string.prototype.matchall: workspace:@nolyfill/string.prototype.matchall@* string.prototype.padend: workspace:@nolyfill/string.prototype.padend@* string.prototype.padstart: workspace:@nolyfill/string.prototype.padstart@* @@ -76,7 +75,6 @@ overrides: string.prototype.replaceall: workspace:@nolyfill/string.prototype.replaceall@* string.prototype.split: workspace:@nolyfill/string.prototype.split@* string.prototype.startswith: workspace:@nolyfill/string.prototype.startswith@* - string.prototype.substr: workspace:@nolyfill/string.prototype.substr@* string.prototype.trim: workspace:@nolyfill/string.prototype.trim@* string.prototype.trimend: workspace:@nolyfill/string.prototype.trimend@* string.prototype.trimleft: workspace:@nolyfill/string.prototype.trimleft@*