@ctx-core/session 9.0.97 → 9.1.1

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,22 @@
1
1
  # @ctx-core/session
2
2
 
3
+ ## 9.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @ctx-core/env: ^17.2.0 -> ^17.2.1
8
+
9
+ ## 9.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - extract _.js & _.d.ts into directories
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+ - @ctx-core/env@17.2.0
19
+
3
20
  ## 9.0.97
4
21
 
5
22
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/session",
3
- "version": "9.0.97",
3
+ "version": "9.1.1",
4
4
  "description": "ctx-core session",
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
- "@ctx-core/env": "^17.1.0"
27
+ "@ctx-core/env": "^17.2.1"
27
28
  },
28
29
  "devDependencies": {
29
- "@swc/cli": "^0.1.61",
30
- "@swc/core": "^1.3.35",
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
  }
@@ -0,0 +1 @@
1
+ export declare const SESSION_KEY:string|void
@@ -0,0 +1,4 @@
1
+ import { import_meta_env_, missing_env__throw } from '@ctx-core/env'
2
+ export const SESSION_KEY =
3
+ import_meta_env_().SESSION_KEY
4
+ || missing_env__throw('SESSION_KEY')
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './env'
package/src/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './env/index.js'
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/env.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const SESSION_KEY: string | void;
2
- export { SESSION_KEY };
package/lib/env.js DELETED
@@ -1,5 +0,0 @@
1
- import { throw_missing_env } from '@ctx-core/env';
2
- const SESSION_KEY = process.env.SESSION_KEY || throw_missing_env('SESSION_KEY');
3
- export { SESSION_KEY };
4
-
5
- //# sourceMappingURL=env.js.map
package/lib/env.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/env.ts"],"sourcesContent":["import { throw_missing_env } from '@ctx-core/env'\nconst SESSION_KEY = process.env.SESSION_KEY || throw_missing_env('SESSION_KEY')\nexport { SESSION_KEY }\n"],"names":["throw_missing_env","SESSION_KEY","process","env"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,gBAAe;AACjD,MAAMC,cAAcC,QAAQC,GAAG,CAACF,WAAW,IAAID,kBAAkB;AACjE,SAASC,WAAW,GAAE"}
package/lib/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './env.js';
package/lib/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './env.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 './env.js'\n"],"names":[],"mappings":"AAAA,cAAc,WAAU"}
package/src/env.ts DELETED
@@ -1,3 +0,0 @@
1
- import { throw_missing_env } from '@ctx-core/env'
2
- const SESSION_KEY = process.env.SESSION_KEY || throw_missing_env('SESSION_KEY')
3
- export { SESSION_KEY }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './env.js'