@ctx-core/security 7.0.65 → 7.1.0
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/CHANGELOG.md +13 -0
- package/package.json +16 -16
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/whitelist__pick/index.d.ts +7 -0
- package/src/whitelist__pick/index.js +13 -0
- package/.swcrc +0 -10
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -3
- package/lib/index.js.map +0 -1
- package/lib/pick_whitelist.d.ts +0 -2
- package/lib/pick_whitelist.js +0 -7
- package/lib/pick_whitelist.js.map +0 -1
- package/src/index.ts +0 -1
- package/src/pick_whitelist.ts +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ctx-core/security
|
|
2
2
|
|
|
3
|
+
## 7.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- extract _.js & _.d.ts into directories
|
|
8
|
+
- - whitelist\_\_pick: aliased by pick_whitelist
|
|
9
|
+
|
|
10
|
+
## 7.0.66
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- @ctx-core/object: ^24.1.3 -> ^24.1.4
|
|
15
|
+
|
|
3
16
|
## 7.0.65
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctx-core/security",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "ctx-core security",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -17,33 +17,33 @@
|
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"author": "Brian Takita",
|
|
19
19
|
"type": "module",
|
|
20
|
-
"types": "./
|
|
20
|
+
"types": "./src/index.d.ts",
|
|
21
|
+
"svelte": "./src/index.js",
|
|
21
22
|
"exports": {
|
|
22
|
-
".": "./
|
|
23
|
+
".": "./src/index.js",
|
|
23
24
|
"./package.json": "./package.json"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"@ctx-core/object": "^24.1.
|
|
27
|
+
"@ctx-core/object": "^24.1.4"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"typescript": "next"
|
|
30
|
+
"c8": "^7.13.0",
|
|
31
|
+
"check-dts": "^0.7.0",
|
|
32
|
+
"tsx": "^3.12.3",
|
|
33
|
+
"typescript": "next",
|
|
34
|
+
"uvu": "^0.5.6"
|
|
33
35
|
},
|
|
34
36
|
"publishConfig": {
|
|
35
37
|
"access": "public",
|
|
36
38
|
"cache": "~/.npm"
|
|
37
39
|
},
|
|
38
|
-
"svelte": "./lib/index.js",
|
|
39
40
|
"sideEffects": false,
|
|
40
41
|
"scripts": {
|
|
41
|
-
"build": "
|
|
42
|
-
"clean": "
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"exec": "$@"
|
|
42
|
+
"build": ":",
|
|
43
|
+
"clean": ":",
|
|
44
|
+
"exec": "$@",
|
|
45
|
+
"test": "pnpm test-unit && check-dts",
|
|
46
|
+
"test-unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
|
|
47
|
+
"test-unit-coverage": "c8 pnpm test-unit"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './whitelist__pick'
|
package/src/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './whitelist__pick/index.js'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { pick } from '@ctx-core/object'
|
|
2
|
+
/**
|
|
3
|
+
* @param whitelist_o{object}
|
|
4
|
+
* @param keys{string}
|
|
5
|
+
* @returns {Partial<*>}
|
|
6
|
+
*/
|
|
7
|
+
export function whitelist__pick(whitelist_o, ...keys) {
|
|
8
|
+
return pick(whitelist_o, ...keys)
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
whitelist__pick as pick_whitelist,
|
|
12
|
+
whitelist__pick as pick__whitelist,
|
|
13
|
+
}
|
package/.swcrc
DELETED
package/lib/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './pick_whitelist.js';
|
package/lib/index.js
DELETED
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './pick_whitelist.js'\n"],"names":[],"mappings":"AAAA,cAAc,sBAAqB"}
|
package/lib/pick_whitelist.d.ts
DELETED
package/lib/pick_whitelist.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/pick_whitelist.ts"],"sourcesContent":["import { pick } from '@ctx-core/object'\nexport function pick_whitelist<I extends object = object>(ctx:I, ...keys:string[]) {\n\treturn pick<I>(ctx, ...keys)\n}\nexport {\n\tpick_whitelist as pick__whitelist\n}\n"],"names":["pick","pick_whitelist","ctx","keys","pick__whitelist"],"mappings":"AAAA,SAASA,IAAI,QAAQ,mBAAkB;AACvC,OAAO,SAASC,eAA0CC,GAAK,EAAE,GAAGC,IAAa,EAAE;IAClF,OAAOH,KAAQE,QAAQC;AACxB,CAAC;AACD,SACCF,kBAAkBG,eAAe,GACjC"}
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './pick_whitelist.js'
|