@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 ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "jsc": {
3
+ "target": "es2020",
4
+ "parser": {
5
+ "syntax": "typescript",
6
+ "tsx": true,
7
+ "dynamicImport": true
8
+ }
9
+ }
10
+ }
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
@@ -1,2 +1,3 @@
1
1
  export * from './pick_whitelist.js';
2
+
2
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './pick_whitelist.js'\n"],"names":[],"mappings":"cAAc,CAAqB"}
@@ -3,4 +3,5 @@ export function pick_whitelist(ctx, ...keys) {
3
3
  return pick(ctx, ...keys);
4
4
  }
5
5
  export { pick_whitelist as pick__whitelist };
6
+
6
7
  //# sourceMappingURL=pick_whitelist.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pick_whitelist.js","sourceRoot":"","sources":["../src/pick_whitelist.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACvC,MAAM,UAAU,cAAc,CAA4B,GAAK,EAAE,GAAG,IAAa;IAChF,OAAO,IAAI,CAAI,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;AAC7B,CAAC;AACD,OAAO,EACN,cAAc,IAAI,eAAe,EACjC,CAAA"}
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.15",
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.cjs",
20
+ "main": "./dist/index.js",
21
21
  "module": "./dist/index.js",
22
- "types": "./dist/index.d.ts",
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.21",
32
- "esm": "^3.2.25"
31
+ "@ctx-core/object": "^21.0.26"
33
32
  },
34
33
  "devDependencies": {
35
- "typescript": "^4.4.4"
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 clean && npm run copy-mjs && npm run compile",
43
- "clean": "rm -f tsconfig.tsbuildinfo && rm -f src/**/*.js && rm -f src/**/*.d.ts && rm -f src/**/*.map",
44
- "compile": "./node_modules/.bin/tsc -b .",
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
@@ -1,2 +0,0 @@
1
-
2
-
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';
@@ -1,2 +0,0 @@
1
- export declare function pick_whitelist<I extends object = object>(ctx: I, ...keys: string[]): Partial<I>;
2
- export { pick_whitelist as pick__whitelist };