@stonyx/oauth 0.1.1-beta.43 → 0.1.1-beta.44

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.
@@ -1,7 +1,12 @@
1
- export default {
2
- providers: {},
3
- sessionDuration: 86400,
4
- frontendCallbackUrl: null,
5
- logColor: 'magenta',
6
- logMethod: 'oauth',
7
- };
1
+ // project configuration, override-able by listed environment variables
2
+ const {
3
+ DEBUG,
4
+ NODE_ENV,
5
+ } = process.env;
6
+
7
+ const environment = NODE_ENV ?? 'development';
8
+
9
+ export default {
10
+ environment,
11
+ debug: DEBUG ?? environment === 'development',
12
+ }
@@ -0,0 +1,7 @@
1
+ export default {
2
+ providers: {} as Record<string, unknown>,
3
+ sessionDuration: 86400,
4
+ frontendCallbackUrl: null as string | null,
5
+ logColor: 'magenta',
6
+ logMethod: 'oauth',
7
+ };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "stonyx-async",
5
5
  "stonyx-module"
6
6
  ],
7
- "version": "0.1.1-beta.43",
7
+ "version": "0.1.1-beta.44",
8
8
  "description": "OAuth2 authentication module for the Stonyx framework",
9
9
  "repository": {
10
10
  "type": "git",
@@ -54,22 +54,26 @@
54
54
  "provenance": true
55
55
  },
56
56
  "dependencies": {
57
- "stonyx": "0.2.3-beta.11",
58
- "@stonyx/events": "0.1.1-beta.9"
57
+ "@stonyx/events": "0.1.1-beta.9",
58
+ "stonyx": "0.2.3-beta.53"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@stonyx/rest-server": ">=0.2.1-beta.11"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@stonyx/rest-server": "0.2.1-beta.30",
65
- "@stonyx/utils": "0.2.3-beta.7",
65
+ "@stonyx/utils": "0.2.3-beta.22",
66
+ "@stonyx/logs": "1.0.1-beta.16",
67
+ "@types/qunit": "^2.19.13",
68
+ "@types/sinon": "^21.0.1",
66
69
  "qunit": "^2.24.1",
67
70
  "sinon": "^21.0.0",
71
+ "tsx": "^4.21.0",
68
72
  "typescript": "^5.8.3"
69
73
  },
70
74
  "scripts": {
71
75
  "build": "tsc",
72
76
  "build:test": "tsc -p tsconfig.test.json",
73
- "test": "npm run build && npm run build:test && stonyx test 'dist-test/test/**/*-test.js'"
77
+ "test": "pnpm build && NODE_ENV=test node --import tsx/esm --import ./test/setup.ts node_modules/qunit/bin/qunit.js 'test/**/*-test.ts'"
74
78
  }
75
79
  }