@ctx-core/session 9.0.21 → 9.0.26

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,50 @@
1
1
  # @ctx-core/session
2
2
 
3
+ ## 9.0.26
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/env@13.0.49
12
+
13
+ ## 9.0.25
14
+
15
+ ### Patch Changes
16
+
17
+ - @swc/core: ^1.2.110 -> ^1.2.111
18
+ - Updated dependencies
19
+ - Updated dependencies
20
+ - @ctx-core/env@13.0.48
21
+
22
+ ## 9.0.24
23
+
24
+ ### Patch Changes
25
+
26
+ - typescript: ^4.4.4 -> ^4.5.2
27
+ - @swc/core: ^1.2.108 -> ^1.2.110
28
+ - Updated dependencies
29
+ - Updated dependencies
30
+ - @ctx-core/env@13.0.47
31
+
32
+ ## 9.0.23
33
+
34
+ ### Patch Changes
35
+
36
+ - @swc/core: ^1.2.107 -> ^1.2.108
37
+ - Updated dependencies
38
+ - @ctx-core/env@13.0.46
39
+
40
+ ## 9.0.22
41
+
42
+ ### Patch Changes
43
+
44
+ - compile using swc
45
+ - Updated dependencies
46
+ - @ctx-core/env@13.0.45
47
+
3
48
  ## 9.0.21
4
49
 
5
50
  ### Patch Changes
package/dist/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { throw_missing_env } from '@ctx-core/env';
2
- const SESSION_KEY = process.env.SESSION_KEY
3
- || throw_missing_env('SESSION_KEY');
2
+ const SESSION_KEY = process.env.SESSION_KEY || throw_missing_env('SESSION_KEY');
4
3
  export { SESSION_KEY };
4
+
5
5
  //# sourceMappingURL=env.js.map
package/dist/env.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjD,MAAM,WAAW,GAChB,OAAO,CAAC,GAAG,CAAC,WAAW;OACpB,iBAAiB,CAAC,aAAa,CAAC,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,CAAA"}
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,MAAM,GAAGA,iBAAiB,QAAQ,CAAe;AACjD,KAAK,CAACC,WAAW,GAAGC,OAAO,CAACC,GAAG,CAACF,WAAW,IAAID,iBAAiB,CAAC,CAAa;AAC9E,MAAM,GAAGC,WAAW"}
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './env.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,UAAU,CAAA"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './env.js'\n"],"names":[],"mappings":"cAAc,CAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/session",
3
- "version": "9.0.21",
3
+ "version": "9.0.26",
4
4
  "description": "ctx-core session",
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/env": "^13.0.44",
32
- "esm": "^3.2.25"
31
+ "@ctx-core/env": "^13.0.49"
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/src/env.ts CHANGED
@@ -1,5 +1,3 @@
1
1
  import { throw_missing_env } from '@ctx-core/env'
2
- const SESSION_KEY =
3
- process.env.SESSION_KEY
4
- || throw_missing_env('SESSION_KEY')
2
+ const SESSION_KEY = process.env.SESSION_KEY || throw_missing_env('SESSION_KEY')
5
3
  export { SESSION_KEY }
package/COMMIT_EDITMSG DELETED
@@ -1,2 +0,0 @@
1
-
2
-
package/dist/env.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const SESSION_KEY: string | void;
2
- export { SESSION_KEY };
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 './env.js';