@lowerdeck/unique 1.0.3 → 1.0.4
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/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.module.js +2 -0
- package/dist/index.module.js.map +1 -0
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +9 -3
- package/.turbo/turbo-build.log +0 -11
- package/.turbo/turbo-test.log +0 -26
- package/CHANGELOG.md +0 -19
- package/tsconfig.json +0 -13
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["export let unique = <T>(arr: T[]) => [...new Set(arr)];\n"],"names":["arr","concat","Set"],"mappings":"eAAoB,SAAIA,GAAQC,MAAAA,GAAAA,OAAS,IAAIC,IAAIF,GAAK"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,IAAI,MAAM,GAAI,CAAC,EAAE,KAAK,CAAC,EAAE,QAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.js","sources":["../src/index.ts"],"sourcesContent":["export let unique = <T>(arr: T[]) => [...new Set(arr)];\n"],"names":["unique","arr","concat","Set"],"mappings":"AAAW,IAAAA,EAAS,SAAIC,GAAQC,MAAAA,GAAAA,OAAS,IAAIC,IAAIF,GAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["export let unique = <T>(arr: T[]) => [...new Set(arr)];\n"],"names":["arr","concat","Set"],"mappings":"yOAAoB,SAAIA,GAAQC,MAAAA,GAAAA,OAAS,IAAIC,IAAIF,GAAK"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowerdeck/unique",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
+
"files": [
|
|
8
|
+
"src/**",
|
|
9
|
+
"dist/**",
|
|
10
|
+
"README.md",
|
|
11
|
+
"package.json"
|
|
12
|
+
],
|
|
7
13
|
"author": "Tobias Herber",
|
|
8
14
|
"license": "Apache 2",
|
|
9
15
|
"type": "module",
|
|
@@ -21,12 +27,12 @@
|
|
|
21
27
|
"scripts": {
|
|
22
28
|
"test": "vitest run --passWithNoTests",
|
|
23
29
|
"lint": "prettier src/**/*.ts --check",
|
|
24
|
-
"build": "microbundle"
|
|
30
|
+
"build": "rm -rf ./dist && microbundle"
|
|
25
31
|
},
|
|
26
32
|
"dependencies": {},
|
|
27
33
|
"devDependencies": {
|
|
28
34
|
"microbundle": "^0.15.1",
|
|
29
|
-
"@lowerdeck/tsconfig": "^1.0.
|
|
35
|
+
"@lowerdeck/tsconfig": "^1.0.1",
|
|
30
36
|
"typescript": "^5.8.3",
|
|
31
37
|
"vitest": "^3.1.2"
|
|
32
38
|
}
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
[0m[2m[35m$[0m [2m[1mmicrobundle[0m
|
|
3
|
-
[34mBuild "@lowerdeck/unique" to dist:[39m
|
|
4
|
-
[32m77 B[39m: [37mindex.cjs[39m.gz
|
|
5
|
-
[32m58 B[39m: [37mindex.cjs[39m.br
|
|
6
|
-
[32m66 B[39m: [37mindex.module.js[39m.gz
|
|
7
|
-
[32m50 B[39m: [37mindex.module.js[39m.br
|
|
8
|
-
[32m88 B[39m: [37mindex.module.js[39m.gz
|
|
9
|
-
[32m72 B[39m: [37mindex.module.js[39m.br
|
|
10
|
-
[32m170 B[39m: [37mindex.umd.js[39m.gz
|
|
11
|
-
[32m137 B[39m: [37mindex.umd.js[39m.br
|
package/.turbo/turbo-test.log
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
[0m[2m[35m$[0m [2m[1mvitest run --passWithNoTests[0m
|
|
3
|
-
[?25l
|
|
4
|
-
[1m[46m RUN [49m[22m [36mv3.2.4 [39m[90m/Users/tobias/code/metorial/metorial-enterprise/oss/src/packages/shared/unique[39m
|
|
5
|
-
|
|
6
|
-
[?2026h
|
|
7
|
-
[1m[33m ❯ [39m[22msrc/index.test.ts[2m [queued][22m
|
|
8
|
-
|
|
9
|
-
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (1)[39m
|
|
10
|
-
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (0)[39m
|
|
11
|
-
[2m Start at [22m10:23:39
|
|
12
|
-
[2m Duration [22m101ms
|
|
13
|
-
[?2026l[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/index.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
14
|
-
[32m✓[39m unique[2m > [22mshould return an array with unique elements[32m 1[2mms[22m[39m
|
|
15
|
-
[32m✓[39m unique[2m > [22mshould handle an empty array[32m 0[2mms[22m[39m
|
|
16
|
-
[32m✓[39m unique[2m > [22mshould handle an array with all unique elements[32m 0[2mms[22m[39m
|
|
17
|
-
[32m✓[39m unique[2m > [22mshould handle an array with all duplicate elements[32m 0[2mms[22m[39m
|
|
18
|
-
[32m✓[39m unique[2m > [22mshould work with strings[32m 0[2mms[22m[39m
|
|
19
|
-
[32m✓[39m unique[2m > [22mshould work with mixed types[32m 0[2mms[22m[39m
|
|
20
|
-
|
|
21
|
-
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
22
|
-
[2m Tests [22m [1m[32m6 passed[39m[22m[90m (6)[39m
|
|
23
|
-
[2m Start at [22m 10:23:39
|
|
24
|
-
[2m Duration [22m 218ms[2m (transform 29ms, setup 0ms, collect 28ms, tests 2ms, environment 0ms, prepare 40ms)[22m
|
|
25
|
-
|
|
26
|
-
[?25h
|
package/CHANGELOG.md
DELETED