@ctx-core/security 7.0.66 → 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 CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## 7.0.66
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/security",
3
- "version": "7.0.66",
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": "./lib/index.d.ts",
20
+ "types": "./src/index.d.ts",
21
+ "svelte": "./src/index.js",
21
22
  "exports": {
22
- ".": "./lib/index.js",
23
+ ".": "./src/index.js",
23
24
  "./package.json": "./package.json"
24
25
  },
25
26
  "dependencies": {
26
27
  "@ctx-core/object": "^24.1.4"
27
28
  },
28
29
  "devDependencies": {
29
- "@swc/cli": "^0.1.61",
30
- "@swc/core": "^1.3.32",
31
- "rimraf": "^4.1.2",
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": "npm run compile",
42
- "clean": "rimraf lib && npm run clean:tsbuildinfo",
43
- "clean:tsbuildinfo": "rimraf tsconfig.tsbuildinfo && rimraf lib/**/*.d.ts",
44
- "compile": "npm run compile:source && npm run compile:declaration",
45
- "compile:source": "swc src --out-dir lib --copy-files --source-maps --config-file .swcrc",
46
- "compile:declaration": "npm run clean:tsbuildinfo && tsc --declaration --emitDeclarationOnly --declarationDir lib",
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,7 @@
1
+ export declare function whitelist__pick<
2
+ I extends object = object
3
+ >(whitelist_o:I, ...keys:string[]):Partial<I>
4
+ export {
5
+ whitelist__pick as pick_whitelist,
6
+ whitelist__pick as pick__whitelist,
7
+ }
@@ -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
@@ -1,10 +0,0 @@
1
- {
2
- "jsc": {
3
- "target": "es2020",
4
- "parser": {
5
- "syntax": "typescript",
6
- "tsx": true,
7
- "dynamicImport": true
8
- }
9
- }
10
- }
package/lib/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './pick_whitelist.js';
package/lib/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './pick_whitelist.js';
2
-
3
- //# sourceMappingURL=index.js.map
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"}
@@ -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 };
@@ -1,7 +0,0 @@
1
- import { pick } from '@ctx-core/object';
2
- export function pick_whitelist(ctx, ...keys) {
3
- return pick(ctx, ...keys);
4
- }
5
- export { pick_whitelist as pick__whitelist };
6
-
7
- //# sourceMappingURL=pick_whitelist.js.map
@@ -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'
@@ -1,7 +0,0 @@
1
- import { pick } from '@ctx-core/object'
2
- export function pick_whitelist<I extends object = object>(ctx:I, ...keys:string[]) {
3
- return pick<I>(ctx, ...keys)
4
- }
5
- export {
6
- pick_whitelist as pick__whitelist
7
- }