Skip to content

Commit

Permalink
feat: add array.prototype and typedarray (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
asukaminato0721 authored Nov 13, 2023
1 parent ce46ca4 commit 31177b7
Show file tree
Hide file tree
Showing 120 changed files with 674 additions and 2 deletions.
5 changes: 5 additions & 0 deletions DOWNLOAD_STATS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
| `@nolyfill/array-buffer-byte-length` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array-buffer-byte-length.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array-buffer-byte-length) |
| `@nolyfill/array-includes` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array-includes.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array-includes) |
| `@nolyfill/array.from` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.from.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.from) |
| `@nolyfill/array.of` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.of.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.of) |
| `@nolyfill/array.prototype.at` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.prototype.at.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.prototype.at) |
| `@nolyfill/array.prototype.every` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.prototype.every.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.prototype.every) |
| `@nolyfill/array.prototype.find` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.prototype.find.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.prototype.find) |
| `@nolyfill/array.prototype.findlast` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.prototype.findlast.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.prototype.findlast) |
| `@nolyfill/array.prototype.findlastindex` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.prototype.findlastindex.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.prototype.findlastindex) |
| `@nolyfill/array.prototype.flat` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.prototype.flat.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.prototype.flat) |
| `@nolyfill/array.prototype.flatmap` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.prototype.flatmap.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.prototype.flatmap) |
| `@nolyfill/array.prototype.flatmap` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.prototype.flatmap.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.prototype.flatmap) |
| `@nolyfill/array.prototype.foreach` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.prototype.foreach.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.prototype.foreach) |
| `@nolyfill/array.prototype.reduce` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.prototype.reduce.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.prototype.reduce) |
| `@nolyfill/array.prototype.tosorted` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array.prototype.tosorted.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array.prototype.tosorted) |
| `@nolyfill/arraybuffer.prototype.slice` | [![npm](https://img.shields.io/npm/dt/@nolyfill/arraybuffer.prototype.slice.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/arraybuffer.prototype.slice) |
Expand Down Expand Up @@ -76,6 +80,7 @@
| `@nolyfill/typed-array-byte-length` | [![npm](https://img.shields.io/npm/dt/@nolyfill/typed-array-byte-length.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/typed-array-byte-length) |
| `@nolyfill/typed-array-byte-offset` | [![npm](https://img.shields.io/npm/dt/@nolyfill/typed-array-byte-offset.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/typed-array-byte-offset) |
| `@nolyfill/typed-array-length` | [![npm](https://img.shields.io/npm/dt/@nolyfill/typed-array-length.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/typed-array-length) |
| `@nolyfill/typedarray` | [![npm](https://img.shields.io/npm/dt/@nolyfill/typedarray.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/typedarray) |
| `@nolyfill/unbox-primitive` | [![npm](https://img.shields.io/npm/dt/@nolyfill/unbox-primitive.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/unbox-primitive) |
| `@nolyfill/which-boxed-primitive` | [![npm](https://img.shields.io/npm/dt/@nolyfill/which-boxed-primitive.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/which-boxed-primitive) |
| `@nolyfill/which-typed-array` | [![npm](https://img.shields.io/npm/dt/@nolyfill/which-typed-array.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/which-typed-array) |
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ Print the help message.

----

## Development

Add the definition in `packages/data/es-shim-like/src/` and `create.ts` , then `npm run codegen`. Notice that rarely used package will not be added, and some packages which are just sub-deps also won't be added.

----

**nolyfill** © [Sukka](https://github.com/SukkaW), Released under the [MIT](./LICENSE) License.
Authored and maintained by Sukka with help from contributors ([list](https://github.com/SukkaW/nolyfill/graphs/contributors)).

Expand Down
9 changes: 7 additions & 2 deletions create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ const autoGeneratedPackagesList = [
['array.prototype.at'],
['string.prototype.at'],
['array.prototype.flat'],
['array.prototype.every'],
['array.prototype.flatmap'],
['array.prototype.foreach'],
['array.prototype.flatmap'],
['arraybuffer.prototype.slice'],
['function.prototype.name'],
Expand All @@ -64,6 +67,7 @@ const autoGeneratedPackagesList = [
['object.groupby'],
['array.prototype.find'],
['array.from'],
['array.of'],
['string.prototype.padend'],
['string.prototype.padstart'],
['object.getownpropertydescriptors'],
Expand All @@ -77,7 +81,7 @@ const autoGeneratedPackagesList = [
// ['object.getprototypeof'],
['es-aggregate-error'],
['promise.any', { '@nolyfill/es-aggregate-error': 'workspace:*' }, '>=12.4.0'],
['promise.allsettled']
['promise.allsettled'],
] as const;

const singleFilePackagesList = [
Expand Down Expand Up @@ -114,7 +118,8 @@ const singleFilePackagesList = [
['is-generator-function'],
// ['is-negative-zero', 'module.exports = (n) => n === 0 && (1 / n) === -Infinity;'],
['side-channel'],
['internal-slot']
['internal-slot'],
['typedarray'] // although https://github.com/es-shims/typedarray, but it only has one file, so here.
] as const;

const manualPackagesList = [
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@
"array-buffer-byte-length": "workspace:@nolyfill/array-buffer-byte-length@*",
"array-includes": "workspace:@nolyfill/array-includes@*",
"array.from": "workspace:@nolyfill/array.from@*",
"array.of": "workspace:@nolyfill/array.of@*",
"array.prototype.at": "workspace:@nolyfill/array.prototype.at@*",
"array.prototype.every": "workspace:@nolyfill/array.prototype.every@*",
"array.prototype.find": "workspace:@nolyfill/array.prototype.find@*",
"array.prototype.findlast": "workspace:@nolyfill/array.prototype.findlast@*",
"array.prototype.findlastindex": "workspace:@nolyfill/array.prototype.findlastindex@*",
"array.prototype.flat": "workspace:@nolyfill/array.prototype.flat@*",
"array.prototype.flatmap": "workspace:@nolyfill/array.prototype.flatmap@*",
"array.prototype.foreach": "workspace:@nolyfill/array.prototype.foreach@*",
"array.prototype.reduce": "workspace:@nolyfill/array.prototype.reduce@*",
"array.prototype.tosorted": "workspace:@nolyfill/array.prototype.tosorted@*",
"arraybuffer.prototype.slice": "workspace:@nolyfill/arraybuffer.prototype.slice@*",
Expand Down Expand Up @@ -114,6 +117,7 @@
"typed-array-byte-length": "workspace:@nolyfill/typed-array-byte-length@*",
"typed-array-byte-offset": "workspace:@nolyfill/typed-array-byte-offset@*",
"typed-array-length": "workspace:@nolyfill/typed-array-length@*",
"typedarray": "workspace:@nolyfill/typedarray@*",
"unbox-primitive": "workspace:@nolyfill/unbox-primitive@*",
"which-boxed-primitive": "workspace:@nolyfill/which-boxed-primitive@*",
"which-typed-array": "workspace:@nolyfill/which-typed-array@*"
Expand All @@ -129,12 +133,15 @@
"array-buffer-byte-length": "npm:@nolyfill/array-buffer-byte-length@latest",
"array-includes": "npm:@nolyfill/array-includes@latest",
"array.from": "npm:@nolyfill/array.from@latest",
"array.of": "npm:@nolyfill/array.of@latest",
"array.prototype.at": "npm:@nolyfill/array.prototype.at@latest",
"array.prototype.every": "npm:@nolyfill/array.prototype.every@latest",
"array.prototype.find": "npm:@nolyfill/array.prototype.find@latest",
"array.prototype.findlast": "npm:@nolyfill/array.prototype.findlast@latest",
"array.prototype.findlastindex": "npm:@nolyfill/array.prototype.findlastindex@latest",
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@latest",
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@latest",
"array.prototype.foreach": "npm:@nolyfill/array.prototype.foreach@latest",
"array.prototype.reduce": "npm:@nolyfill/array.prototype.reduce@latest",
"array.prototype.tosorted": "npm:@nolyfill/array.prototype.tosorted@latest",
"arraybuffer.prototype.slice": "npm:@nolyfill/arraybuffer.prototype.slice@latest",
Expand Down Expand Up @@ -200,6 +207,7 @@
"typed-array-byte-length": "npm:@nolyfill/typed-array-byte-length@latest",
"typed-array-byte-offset": "npm:@nolyfill/typed-array-byte-offset@latest",
"typed-array-length": "npm:@nolyfill/typed-array-length@latest",
"typedarray": "npm:@nolyfill/typedarray@latest",
"unbox-primitive": "npm:@nolyfill/unbox-primitive@latest",
"which-boxed-primitive": "npm:@nolyfill/which-boxed-primitive@latest",
"which-typed-array": "npm:@nolyfill/which-typed-array@latest"
Expand Down
3 changes: 3 additions & 0 deletions packages/data/es-shim-like/src/array.of.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineEsShim } from '@nolyfill/shared';

export default defineEsShim(Array.of, true);
3 changes: 3 additions & 0 deletions packages/data/es-shim-like/src/array.prototype.every.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineEsShim } from '@nolyfill/shared';

export default defineEsShim(Array.prototype.every);
3 changes: 3 additions & 0 deletions packages/data/es-shim-like/src/array.prototype.findindex.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineEsShim } from '@nolyfill/shared';

export default defineEsShim(Array.prototype.findIndex);
3 changes: 3 additions & 0 deletions packages/data/es-shim-like/src/array.prototype.foreach.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineEsShim } from '@nolyfill/shared';

export default defineEsShim(Array.prototype.forEach);
3 changes: 3 additions & 0 deletions packages/data/es-shim-like/src/array.prototype.includes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineEsShim } from '@nolyfill/shared';

export default defineEsShim(Array.prototype.includes);
3 changes: 3 additions & 0 deletions packages/data/es-shim-like/src/array.prototype.lastindexof.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineEsShim } from '@nolyfill/shared';

export default defineEsShim(Array.prototype.lastIndexOf);
13 changes: 13 additions & 0 deletions packages/data/single-file/src/typedarray.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default {
ArrayBuffer,
DataView,
Float32Array,
Float64Array,
Int8Array,
Int16Array,
Int32Array,
Uint8Array,
Uint8ClampedArray,
Uint16Array,
Uint32Array
};
2 changes: 2 additions & 0 deletions packages/generated/array.of/auto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
/* noop */
2 changes: 2 additions & 0 deletions packages/generated/array.of/entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return r}});const e=require("@nolyfill/shared"),r=(0,e.defineEsShim)(Array.of,!0);
Object.assign(exports.default, exports); module.exports = exports.default;
2 changes: 2 additions & 0 deletions packages/generated/array.of/implementation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').implementation;
2 changes: 2 additions & 0 deletions packages/generated/array.of/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').index();
21 changes: 21 additions & 0 deletions packages/generated/array.of/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@nolyfill/array.of",
"version": "1.0.25",
"repository": {
"type": "git",
"url": "https://github.com/SukkaW/nolyfill",
"directory": "packages/generated/array.of"
},
"main": "./index.js",
"license": "MIT",
"files": [
"*.js"
],
"scripts": {},
"dependencies": {
"@nolyfill/shared": "workspace:*"
},
"engines": {
"node": ">=12.4.0"
}
}
2 changes: 2 additions & 0 deletions packages/generated/array.of/polyfill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').polyfill;
2 changes: 2 additions & 0 deletions packages/generated/array.of/shim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').shim;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.concat/auto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
/* noop */
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.concat/entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return r}});const e=require("@nolyfill/shared"),r=(0,e.defineEsShim)(Array.prototype.concat);
Object.assign(exports.default, exports); module.exports = exports.default;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.concat/implementation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').implementation;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.concat/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').index();
21 changes: 21 additions & 0 deletions packages/generated/array.prototype.concat/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@nolyfill/array.prototype.concat",
"version": "1.0.25",
"repository": {
"type": "git",
"url": "https://github.com/SukkaW/nolyfill",
"directory": "packages/generated/array.prototype.concat"
},
"main": "./index.js",
"license": "MIT",
"files": [
"*.js"
],
"scripts": {},
"dependencies": {
"@nolyfill/shared": "workspace:*"
},
"engines": {
"node": ">=12.4.0"
}
}
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.concat/polyfill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').polyfill;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.concat/shim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').shim;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.copywithin/auto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
/* noop */
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.copywithin/entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return r}});const e=require("@nolyfill/shared"),r=(0,e.defineEsShim)(Array.prototype.copyWithin);
Object.assign(exports.default, exports); module.exports = exports.default;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').implementation;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.copywithin/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').index();
21 changes: 21 additions & 0 deletions packages/generated/array.prototype.copywithin/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@nolyfill/array.prototype.copywithin",
"version": "1.0.25",
"repository": {
"type": "git",
"url": "https://github.com/SukkaW/nolyfill",
"directory": "packages/generated/array.prototype.copywithin"
},
"main": "./index.js",
"license": "MIT",
"files": [
"*.js"
],
"scripts": {},
"dependencies": {
"@nolyfill/shared": "workspace:*"
},
"engines": {
"node": ">=12.4.0"
}
}
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.copywithin/polyfill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').polyfill;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.copywithin/shim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').shim;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.entries/auto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
/* noop */
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.entries/entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return r}});const e=require("@nolyfill/shared"),r=(0,e.defineEsShim)(Array.prototype.entries);
Object.assign(exports.default, exports); module.exports = exports.default;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.entries/implementation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').implementation;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.entries/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').index();
21 changes: 21 additions & 0 deletions packages/generated/array.prototype.entries/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@nolyfill/array.prototype.entries",
"version": "1.0.25",
"repository": {
"type": "git",
"url": "https://github.com/SukkaW/nolyfill",
"directory": "packages/generated/array.prototype.entries"
},
"main": "./index.js",
"license": "MIT",
"files": [
"*.js"
],
"scripts": {},
"dependencies": {
"@nolyfill/shared": "workspace:*"
},
"engines": {
"node": ">=12.4.0"
}
}
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.entries/polyfill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').polyfill;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.entries/shim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').shim;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.every/auto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
/* noop */
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.every/entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return r}});const e=require("@nolyfill/shared"),r=(0,e.defineEsShim)(Array.prototype.every);
Object.assign(exports.default, exports); module.exports = exports.default;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.every/implementation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').implementation;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.every/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').index();
21 changes: 21 additions & 0 deletions packages/generated/array.prototype.every/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@nolyfill/array.prototype.every",
"version": "1.0.25",
"repository": {
"type": "git",
"url": "https://github.com/SukkaW/nolyfill",
"directory": "packages/generated/array.prototype.every"
},
"main": "./index.js",
"license": "MIT",
"files": [
"*.js"
],
"scripts": {},
"dependencies": {
"@nolyfill/shared": "workspace:*"
},
"engines": {
"node": ">=12.4.0"
}
}
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.every/polyfill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').polyfill;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.every/shim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').shim;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.foreach/auto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
/* noop */
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.foreach/entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return r}});const e=require("@nolyfill/shared"),r=(0,e.defineEsShim)(Array.prototype.forEach);
Object.assign(exports.default, exports); module.exports = exports.default;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.foreach/implementation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').implementation;
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.foreach/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').index();
21 changes: 21 additions & 0 deletions packages/generated/array.prototype.foreach/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@nolyfill/array.prototype.foreach",
"version": "1.0.25",
"repository": {
"type": "git",
"url": "https://github.com/SukkaW/nolyfill",
"directory": "packages/generated/array.prototype.foreach"
},
"main": "./index.js",
"license": "MIT",
"files": [
"*.js"
],
"scripts": {},
"dependencies": {
"@nolyfill/shared": "workspace:*"
},
"engines": {
"node": ">=12.4.0"
}
}
2 changes: 2 additions & 0 deletions packages/generated/array.prototype.foreach/polyfill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./entry.js').polyfill;
Loading

0 comments on commit 31177b7

Please sign in to comment.