Skip to content

Commit 286c9de

Browse files
feat: add array-flatten & number-is-nan (#91)
1 parent 48c3170 commit 286c9de

File tree

11 files changed

+61
-1
lines changed

11 files changed

+61
-1
lines changed

DOWNLOAD_STATS.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
| `@nolyfill/shared` | [![npm](https://img.shields.io/npm/dt/@nolyfill/shared.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/shared) |
55
| `@nolyfill/abab` | [![npm](https://img.shields.io/npm/dt/@nolyfill/abab.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/abab) |
66
| `@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) |
7+
| `@nolyfill/array-flatten` | [![npm](https://img.shields.io/npm/dt/@nolyfill/array-flatten.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/array-flatten) |
78
| `@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) |
89
| `@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) |
910
| `@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) |
@@ -59,6 +60,7 @@
5960
| `@nolyfill/iterator.prototype` | [![npm](https://img.shields.io/npm/dt/@nolyfill/iterator.prototype.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/iterator.prototype) |
6061
| `@nolyfill/json-stable-stringify` | [![npm](https://img.shields.io/npm/dt/@nolyfill/json-stable-stringify.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/json-stable-stringify) |
6162
| `@nolyfill/jsonify` | [![npm](https://img.shields.io/npm/dt/@nolyfill/jsonify.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/jsonify) |
63+
| `@nolyfill/number-is-nan` | [![npm](https://img.shields.io/npm/dt/@nolyfill/number-is-nan.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/number-is-nan) |
6264
| `@nolyfill/object-is` | [![npm](https://img.shields.io/npm/dt/@nolyfill/object-is.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/object-is) |
6365
| `@nolyfill/object-keys` | [![npm](https://img.shields.io/npm/dt/@nolyfill/object-keys.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/object-keys) |
6466
| `@nolyfill/object.assign` | [![npm](https://img.shields.io/npm/dt/@nolyfill/object.assign.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/object.assign) |

create.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ const singleFilePackagesList = [
136136
['is-typed-array', { '@nolyfill/which-typed-array': 'workspace:*' }],
137137
['json-stable-stringify'],
138138
['safe-buffer'],
139-
['safer-buffer']
139+
['safer-buffer'],
140+
['array-flatten'],
141+
['number-is-nan']
140142
] as const;
141143

142144
const manualPackagesList = [

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"overrides": {
4343
"abab": "workspace:@nolyfill/abab@*",
4444
"array-buffer-byte-length": "workspace:@nolyfill/array-buffer-byte-length@*",
45+
"array-flatten": "workspace:@nolyfill/array-flatten@*",
4546
"array-includes": "workspace:@nolyfill/array-includes@*",
4647
"array.from": "workspace:@nolyfill/array.from@*",
4748
"array.of": "workspace:@nolyfill/array.of@*",
@@ -96,6 +97,7 @@
9697
"iterator.prototype": "workspace:@nolyfill/iterator.prototype@*",
9798
"json-stable-stringify": "workspace:@nolyfill/json-stable-stringify@*",
9899
"jsonify": "workspace:@nolyfill/jsonify@*",
100+
"number-is-nan": "workspace:@nolyfill/number-is-nan@*",
99101
"object-is": "workspace:@nolyfill/object-is@*",
100102
"object-keys": "workspace:@nolyfill/object-keys@*",
101103
"object.assign": "workspace:@nolyfill/object.assign@*",
@@ -155,6 +157,7 @@
155157
"overrides": {
156158
"abab": "npm:@nolyfill/abab@^1.0",
157159
"array-buffer-byte-length": "npm:@nolyfill/array-buffer-byte-length@^1.0",
160+
"array-flatten": "npm:@nolyfill/array-flatten@^1.0",
158161
"array-includes": "npm:@nolyfill/array-includes@^1.0",
159162
"array.from": "npm:@nolyfill/array.from@^1.0",
160163
"array.of": "npm:@nolyfill/array.of@^1.0",
@@ -209,6 +212,7 @@
209212
"iterator.prototype": "npm:@nolyfill/iterator.prototype@^1.0",
210213
"json-stable-stringify": "npm:@nolyfill/json-stable-stringify@^1.0",
211214
"jsonify": "npm:@nolyfill/jsonify@^1.0",
215+
"number-is-nan": "npm:@nolyfill/number-is-nan@^1.0",
212216
"object-is": "npm:@nolyfill/object-is@^1.0",
213217
"object-keys": "npm:@nolyfill/object-keys@^1.0",
214218
"object.assign": "npm:@nolyfill/object.assign@^1.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const flatten = (x: any[]) => x.flat(Infinity);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default Number.isNaN;

packages/generated/array-flatten/index.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "@nolyfill/array-flatten",
3+
"version": "1.0.40",
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/SukkaW/nolyfill",
7+
"directory": "packages/generated/array-flatten"
8+
},
9+
"main": "./index.js",
10+
"license": "MIT",
11+
"files": [
12+
"*.js"
13+
],
14+
"scripts": {},
15+
"dependencies": {},
16+
"engines": {
17+
"node": ">=12.4.0"
18+
}
19+
}

packages/generated/number-is-nan/index.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "@nolyfill/number-is-nan",
3+
"version": "1.0.40",
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/SukkaW/nolyfill",
7+
"directory": "packages/generated/number-is-nan"
8+
},
9+
"main": "./index.js",
10+
"license": "MIT",
11+
"files": [
12+
"*.js"
13+
],
14+
"scripts": {},
15+
"dependencies": {},
16+
"engines": {
17+
"node": ">=12.4.0"
18+
}
19+
}

packages/tools/cli/src/all-packages.ts

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
export const allPackages = [
44
"abab",
55
"array-buffer-byte-length",
6+
"array-flatten",
67
"array-includes",
78
"array.from",
89
"array.of",
@@ -58,6 +59,7 @@ export const allPackages = [
5859
"iterator.prototype",
5960
"json-stable-stringify",
6061
"jsonify",
62+
"number-is-nan",
6163
"object-is",
6264
"object-keys",
6365
"object.assign",

pnpm-lock.yaml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)