@ctx-core/security 7.0.15 → 7.0.20
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/.swcrc +10 -0
- package/CHANGELOG.md +44 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/pick_whitelist.js +1 -0
- package/dist/pick_whitelist.js.map +1 -1
- package/package.json +10 -10
- package/COMMIT_EDITMSG +0 -2
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/pick_whitelist.d.ts +0 -2
package/.swcrc
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @ctx-core/security
|
|
2
2
|
|
|
3
|
+
## 7.0.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @swc/cli: ^0.1.51 -> ^0.1.52
|
|
8
|
+
- @swc/core: ^1.2.111 -> ^1.2.113
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @ctx-core/object@21.0.26
|
|
12
|
+
|
|
13
|
+
## 7.0.19
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- @swc/core: ^1.2.110 -> ^1.2.111
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @ctx-core/object@21.0.25
|
|
20
|
+
|
|
21
|
+
## 7.0.18
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- typescript: ^4.4.4 -> ^4.5.2
|
|
26
|
+
- @swc/core: ^1.2.108 -> ^1.2.110
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
- @ctx-core/object@21.0.24
|
|
30
|
+
|
|
31
|
+
## 7.0.17
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- @swc/core: ^1.2.107 -> ^1.2.108
|
|
36
|
+
- Updated dependencies
|
|
37
|
+
- @ctx-core/object@21.0.23
|
|
38
|
+
|
|
39
|
+
## 7.0.16
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- compile using swc
|
|
44
|
+
- Updated dependencies
|
|
45
|
+
- @ctx-core/object@21.0.22
|
|
46
|
+
|
|
3
47
|
## 7.0.15
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './pick_whitelist.js'\n"],"names":[],"mappings":"cAAc,CAAqB"}
|
package/dist/pick_whitelist.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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,MAAM,GAAGA,IAAI,QAAQ,CAAkB;AACvC,MAAM,UAAUC,cAAc,CAA4BC,GAAK,KAAKC,IAAI,EAAW,CAAC;IACnF,MAAM,CAACH,IAAI,CAAIE,GAAG,KAAKC,IAAI;AAC5B,CAAC;AACD,MAAM,GACLF,cAAc,IAAIG,eAAe"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctx-core/security",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.20",
|
|
4
4
|
"description": "ctx-core security",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"author": "Brian Takita",
|
|
19
19
|
"type": "module",
|
|
20
|
-
"main": "./dist/index.
|
|
20
|
+
"main": "./dist/index.js",
|
|
21
21
|
"module": "./dist/index.js",
|
|
22
|
-
"types": "./
|
|
22
|
+
"types": "./src/index.ts",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
25
|
"require": "./dist/index.cjs",
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
"./package.json": "./package.json"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ctx-core/object": "^21.0.
|
|
32
|
-
"esm": "^3.2.25"
|
|
31
|
+
"@ctx-core/object": "^21.0.26"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
35
|
-
"
|
|
34
|
+
"@swc/cli": "^0.1.52",
|
|
35
|
+
"@swc/core": "^1.2.113",
|
|
36
|
+
"typescript": "next"
|
|
36
37
|
},
|
|
37
38
|
"publishConfig": {
|
|
38
39
|
"access": "public",
|
|
39
40
|
"cache": "~/.npm"
|
|
40
41
|
},
|
|
41
42
|
"scripts": {
|
|
42
|
-
"build": "npm run
|
|
43
|
-
"clean": "rm -
|
|
44
|
-
"compile": "
|
|
45
|
-
"copy-mjs": "cd dist && echo \"module.exports = (async () => import('./index.js'))()\" > index.cjs",
|
|
43
|
+
"build": "npm run compile",
|
|
44
|
+
"clean": "rm -rf dist",
|
|
45
|
+
"compile": "swc src --out-dir dist --copy-files --source-maps --config-file .swcrc",
|
|
46
46
|
"exec": "$@"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/COMMIT_EDITMSG
DELETED
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = (async () => import('./index.js'))()
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './pick_whitelist.js';
|
package/dist/pick_whitelist.d.ts
DELETED