atomic-fns 0.3.5 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -12
- package/{core → dist}/collections/BTree.d.ts +6 -6
- package/{core → dist}/collections/BTree.js +17 -17
- package/{core → dist}/collections/Heap.d.ts +3 -3
- package/{core → dist}/collections/Heap.js +0 -0
- package/dist/collections/LRUCache.d.ts +80 -0
- package/dist/collections/LRUCache.js +126 -0
- package/{core → dist}/collections/SortedMap.d.ts +2 -2
- package/{core → dist}/collections/SortedMap.js +0 -0
- package/{core → dist}/collections/SortedSet.d.ts +3 -3
- package/{core → dist}/collections/SortedSet.js +1 -1
- package/{core → dist}/collections/SortedTree.d.ts +3 -3
- package/{core → dist}/collections/SortedTree.js +1 -1
- package/{core → dist}/collections/SplayTree.d.ts +5 -5
- package/{core → dist}/collections/SplayTree.js +0 -0
- package/{core → dist}/collections/abc.d.ts +0 -0
- package/{core → dist}/collections/abc.js +0 -0
- package/{core → dist}/collections/deque.d.ts +7 -7
- package/{core → dist}/collections/deque.js +6 -8
- package/{core → dist}/collections/frozenset.d.ts +0 -0
- package/{core → dist}/collections/frozenset.js +3 -6
- package/{core → dist}/collections/index.d.ts +207 -105
- package/{core → dist}/collections/index.js +179 -436
- package/{core → dist}/functools/index.d.ts +30 -16
- package/{core → dist}/functools/index.js +34 -12
- package/dist/globals/decimal.d.ts +142 -0
- package/dist/globals/decimal.js +371 -0
- package/{core → dist}/globals/index.d.ts +26 -25
- package/{core → dist}/globals/index.js +16 -37
- package/dist/i18n/currency.d.ts +24 -0
- package/dist/i18n/currency.js +85 -0
- package/dist/i18n/date/index.d.ts +204 -0
- package/dist/i18n/date/index.js +530 -0
- package/dist/i18n/date/utils.d.ts +65 -0
- package/dist/i18n/date/utils.js +290 -0
- package/dist/i18n/duration.d.ts +112 -0
- package/dist/i18n/duration.js +392 -0
- package/dist/i18n/format.d.ts +26 -0
- package/dist/i18n/format.js +495 -0
- package/{core → dist}/i18n/index.d.ts +2 -1
- package/{core → dist}/i18n/index.js +2 -1
- package/{core → dist}/index.d.ts +0 -0
- package/{core → dist}/index.js +0 -0
- package/{core → dist}/itertools/index.d.ts +74 -46
- package/{core → dist}/itertools/index.js +28 -56
- package/{core → dist}/math/index.d.ts +9 -10
- package/{core → dist}/math/index.js +3 -1
- package/{core → dist}/operators/index.d.ts +4 -4
- package/{core → dist}/operators/index.js +2 -8
- package/{core → dist}/random/index.d.ts +1 -1
- package/{core → dist}/random/index.js +5 -5
- package/package.json +28 -42
- package/.editorconfig +0 -12
- package/.esdoc.json +0 -27
- package/.eslintignore +0 -1
- package/.eslintrc.json +0 -35
- package/.firebaserc +0 -5
- package/.prettierrc +0 -19
- package/core/collections/BTree.ts +0 -1340
- package/core/collections/Heap.ts +0 -189
- package/core/collections/LRUCache.d.ts +0 -152
- package/core/collections/LRUCache.js +0 -409
- package/core/collections/LRUCache.ts +0 -486
- package/core/collections/SortedMap.ts +0 -146
- package/core/collections/SortedSet.ts +0 -110
- package/core/collections/SortedTree.ts +0 -160
- package/core/collections/SplayTree.ts +0 -354
- package/core/collections/abc.ts +0 -176
- package/core/collections/deque.ts +0 -338
- package/core/collections/frozenset.ts +0 -37
- package/core/collections/index.ts +0 -1024
- package/core/collections/test.html +0 -10
- package/core/collections/typedArrays.d.ts +0 -31
- package/core/collections/typedArrays.js +0 -143
- package/core/collections/typedArrays.ts +0 -163
- package/core/functools/index.ts +0 -260
- package/core/globals/index.ts +0 -481
- package/core/i18n/date/format.d.ts +0 -16
- package/core/i18n/date/format.js +0 -307
- package/core/i18n/date/format.ts +0 -343
- package/core/i18n/date/index.d.ts +0 -224
- package/core/i18n/date/index.js +0 -387
- package/core/i18n/date/index.ts +0 -471
- package/core/i18n/date/test.html +0 -67
- package/core/i18n/index.ts +0 -8
- package/core/index.ts +0 -8
- package/core/itertools/index.ts +0 -494
- package/core/math/index.ts +0 -152
- package/core/operators/index.ts +0 -310
- package/core/random/index.ts +0 -66
- package/firebase.json +0 -10
- package/jasmine.json +0 -14
- package/tests/BTree.spec.ts +0 -143
- package/tests/Cache.spec.ts +0 -161
- package/tests/Heap.spec.ts +0 -66
- package/tests/SortedMap.spec.ts +0 -144
- package/tests/SortedSet.spec.ts +0 -84
- package/tests/SortedTree.spec.ts +0 -164
- package/tests/SplayTree.spec.ts +0 -121
- package/tests/collections.spec.ts +0 -288
- package/tests/deque.spec.ts +0 -107
- package/tests/globals.spec.ts +0 -270
- package/tests/itertools.spec.ts +0 -266
- package/tests/math.spec.ts +0 -25
- package/tests/operators.spec.ts +0 -40
- package/tests/random.spec.ts +0 -46
- package/tsconfig.json +0 -126
- package/tsconfig.node.json +0 -18
- package/tsconfig.xo.json +0 -9
package/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atomic-fns",
|
|
3
3
|
"description": "Like Lodash, but for ESNext and with types. Stop shipping code built for browsers from 2015.",
|
|
4
|
-
"version": "0.3
|
|
5
|
-
"
|
|
4
|
+
"version": "0.4.3",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist/*"
|
|
7
|
+
],
|
|
6
8
|
"type": "module",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
+
"module": "dist/index.js",
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
9
12
|
"sideEffects": false,
|
|
10
13
|
"scripts": {
|
|
11
|
-
"prepublishOnly": "npm
|
|
14
|
+
"prepublishOnly": "npm run build",
|
|
12
15
|
"test": "NODE_OPTIONS=--loader=ts-node/esm jasmine --config=jasmine.json",
|
|
13
|
-
"tsc": "tsc -p
|
|
14
|
-
"tsc:w": "tsc -p
|
|
15
|
-
"lint": "eslint
|
|
16
|
-
"
|
|
17
|
-
"build": "npm run lint:fix && npm run tsc && npm run docs",
|
|
16
|
+
"tsc": "tsc -p . --declaration",
|
|
17
|
+
"tsc:w": "tsc -p . --declaration --watch",
|
|
18
|
+
"lint": "eslint src/**/*.ts --fix",
|
|
19
|
+
"build": "npm run lint && npm test && npm run tsc",
|
|
18
20
|
"docs": "typedoc"
|
|
19
21
|
},
|
|
20
22
|
"devDependencies": {
|
|
@@ -23,40 +25,29 @@
|
|
|
23
25
|
"eslint": "^8.25.0",
|
|
24
26
|
"eslint-config-prettier": "^8.5.0",
|
|
25
27
|
"eslint-config-standard-with-typescript": "^23.0.0",
|
|
26
|
-
"eslint-plugin-import": "^2.26.0",
|
|
27
28
|
"eslint-plugin-n": "^15.3.0",
|
|
28
29
|
"eslint-plugin-prettier": "^4.2.1",
|
|
29
|
-
"eslint-plugin-promise": "^6.0.1",
|
|
30
|
-
"husky": "^8.0.1",
|
|
31
30
|
"jasmine": "^4.4.0",
|
|
32
31
|
"jasmine-spec-reporter": "^7.0.0",
|
|
33
|
-
"lint-staged": "^13.0.3",
|
|
34
32
|
"prettier": "^2.7.1",
|
|
35
|
-
"
|
|
36
|
-
"ts-node": "^10.4.1",
|
|
33
|
+
"ts-node": "^10.9.1",
|
|
37
34
|
"typedoc": "^0.23.16",
|
|
38
35
|
"typescript": "^4.8.4"
|
|
39
36
|
},
|
|
40
|
-
"lint-staged": {
|
|
41
|
-
"*.ts": "eslint --fix"
|
|
42
|
-
},
|
|
43
|
-
"husky": {
|
|
44
|
-
"hooks": {
|
|
45
|
-
"precommit": "lint-staged && pretty-quick --staged"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
37
|
"repository": {
|
|
49
38
|
"type": "git",
|
|
50
39
|
"url": "https://github.com/adrian2x/atomic-fns.git"
|
|
51
40
|
},
|
|
52
41
|
"keywords": [
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
42
|
+
"modules",
|
|
43
|
+
"stdlib",
|
|
44
|
+
"util",
|
|
45
|
+
"fp",
|
|
46
|
+
"lazy",
|
|
47
|
+
"itertools",
|
|
48
|
+
"core-js",
|
|
49
|
+
"lodash",
|
|
50
|
+
"lodash-es",
|
|
60
51
|
"es6",
|
|
61
52
|
"es7",
|
|
62
53
|
"es8",
|
|
@@ -64,17 +55,12 @@
|
|
|
64
55
|
"es2020",
|
|
65
56
|
"es2021",
|
|
66
57
|
"es2022",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"modules",
|
|
74
|
-
"stdlib",
|
|
75
|
-
"core-js",
|
|
76
|
-
"util",
|
|
77
|
-
"fp"
|
|
58
|
+
"esnext",
|
|
59
|
+
"es-next",
|
|
60
|
+
"@esnext",
|
|
61
|
+
"@es-next",
|
|
62
|
+
"atomicfns",
|
|
63
|
+
"atomic-fns"
|
|
78
64
|
],
|
|
79
65
|
"author": "Adrian Cruz <kangoonie@gmail.com>",
|
|
80
66
|
"license": "Apache-2.0",
|
package/.editorconfig
DELETED
package/.esdoc.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "./lib",
|
|
3
|
-
"destination": "./docs",
|
|
4
|
-
"plugins": [
|
|
5
|
-
{
|
|
6
|
-
"name": "esdoc-standard-plugin",
|
|
7
|
-
"option": {
|
|
8
|
-
"test": {
|
|
9
|
-
"source": "./tests/",
|
|
10
|
-
"interfaces": [
|
|
11
|
-
"describe",
|
|
12
|
-
"it",
|
|
13
|
-
"context",
|
|
14
|
-
"suite",
|
|
15
|
-
"test"
|
|
16
|
-
],
|
|
17
|
-
"includes": [
|
|
18
|
-
"(spec|Spec|test|Test)\\.ts$"
|
|
19
|
-
],
|
|
20
|
-
"excludes": [
|
|
21
|
-
"\\.config\\.js$"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
package/.eslintignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*.d.ts
|
package/.eslintrc.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es2021": true
|
|
5
|
-
},
|
|
6
|
-
"extends": [
|
|
7
|
-
"standard-with-typescript",
|
|
8
|
-
"plugin:prettier/recommended"
|
|
9
|
-
],
|
|
10
|
-
"overrides": [
|
|
11
|
-
{
|
|
12
|
-
"files": [
|
|
13
|
-
"*.ts",
|
|
14
|
-
"*.tsx"
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"parserOptions": {
|
|
19
|
-
"project": [
|
|
20
|
-
"./tsconfig.xo.json"
|
|
21
|
-
],
|
|
22
|
-
"ecmaVersion": "latest",
|
|
23
|
-
"sourceType": "module"
|
|
24
|
-
},
|
|
25
|
-
"rules": {
|
|
26
|
-
"@typescript-eslint/explicit-function-return-type": "off",
|
|
27
|
-
"@typescript-eslint/no-dynamic-delete": "off",
|
|
28
|
-
"@typescript-eslint/no-unused-vars": "off",
|
|
29
|
-
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
30
|
-
"@typescript-eslint/restrict-plus-operands": "off",
|
|
31
|
-
"@typescript-eslint/space-before-function-paren": "off",
|
|
32
|
-
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
33
|
-
"@typescript-eslint/triple-slash-reference": "off"
|
|
34
|
-
}
|
|
35
|
-
}
|
package/.firebaserc
DELETED
package/.prettierrc
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"arrowParens": "always",
|
|
3
|
-
"bracketSameLine": true,
|
|
4
|
-
"bracketSpacing": true,
|
|
5
|
-
"embeddedLanguageFormatting": "auto",
|
|
6
|
-
"endOfLine": "lf",
|
|
7
|
-
"htmlWhitespaceSensitivity": "css",
|
|
8
|
-
"insertPragma": false,
|
|
9
|
-
"printWidth": 100,
|
|
10
|
-
"proseWrap": "preserve",
|
|
11
|
-
"quoteProps": "as-needed",
|
|
12
|
-
"requirePragma": false,
|
|
13
|
-
"semi": false,
|
|
14
|
-
"singleQuote": true,
|
|
15
|
-
"jsxSingleQuote": true,
|
|
16
|
-
"trailingComma": "none",
|
|
17
|
-
"tabWidth": 2,
|
|
18
|
-
"useTabs": false
|
|
19
|
-
}
|