@cedarjs/auth-dbauth-api 4.0.0-canary.13752 → 4.0.0-canary.13754
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/dist/DbAuthHandler.js +2 -2
- package/dist/decoder.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/shared.js +1 -1
- package/package.json +5 -5
package/dist/DbAuthHandler.js
CHANGED
|
@@ -34,8 +34,8 @@ module.exports = __toCommonJS(DbAuthHandler_exports);
|
|
|
34
34
|
var import_md5 = __toESM(require("md5"));
|
|
35
35
|
var import_uuid = require("uuid");
|
|
36
36
|
var import_api = require("@cedarjs/api");
|
|
37
|
-
var DbAuthError = __toESM(require("./errors"));
|
|
38
|
-
var import_shared = require("./shared");
|
|
37
|
+
var DbAuthError = __toESM(require("./errors.js"));
|
|
38
|
+
var import_shared = require("./shared.js");
|
|
39
39
|
const DEFAULT_ALLOWED_USER_FIELDS = ["id", "email"];
|
|
40
40
|
class DbAuthHandler {
|
|
41
41
|
event;
|
package/dist/decoder.js
CHANGED
|
@@ -22,7 +22,7 @@ __export(decoder_exports, {
|
|
|
22
22
|
createAuthDecoder: () => createAuthDecoder
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(decoder_exports);
|
|
25
|
-
var import_shared = require("./shared");
|
|
25
|
+
var import_shared = require("./shared.js");
|
|
26
26
|
const createAuthDecoder = (cookieNameTemplate) => {
|
|
27
27
|
return async (_token, type, req) => {
|
|
28
28
|
if (type !== "dbAuth") {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './DbAuthHandler';
|
|
2
|
-
export { PasswordValidationError } from './errors';
|
|
3
|
-
export * from './shared';
|
|
4
|
-
export { authDecoder, createAuthDecoder } from './decoder';
|
|
1
|
+
export * from './DbAuthHandler.js';
|
|
2
|
+
export { PasswordValidationError } from './errors.js';
|
|
3
|
+
export * from './shared.js';
|
|
4
|
+
export { authDecoder, createAuthDecoder } from './decoder.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -24,15 +24,15 @@ __export(index_exports, {
|
|
|
24
24
|
createAuthDecoder: () => import_decoder.createAuthDecoder
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(index_exports);
|
|
27
|
-
__reExport(index_exports, require("./DbAuthHandler"), module.exports);
|
|
28
|
-
var import_errors = require("./errors");
|
|
29
|
-
__reExport(index_exports, require("./shared"), module.exports);
|
|
30
|
-
var import_decoder = require("./decoder");
|
|
27
|
+
__reExport(index_exports, require("./DbAuthHandler.js"), module.exports);
|
|
28
|
+
var import_errors = require("./errors.js");
|
|
29
|
+
__reExport(index_exports, require("./shared.js"), module.exports);
|
|
30
|
+
var import_decoder = require("./decoder.js");
|
|
31
31
|
// Annotate the CommonJS export names for ESM import in node:
|
|
32
32
|
0 && (module.exports = {
|
|
33
33
|
PasswordValidationError,
|
|
34
34
|
authDecoder,
|
|
35
35
|
createAuthDecoder,
|
|
36
|
-
...require("./DbAuthHandler"),
|
|
37
|
-
...require("./shared")
|
|
36
|
+
...require("./DbAuthHandler.js"),
|
|
37
|
+
...require("./shared.js")
|
|
38
38
|
});
|
package/dist/shared.js
CHANGED
|
@@ -46,7 +46,7 @@ module.exports = __toCommonJS(shared_exports);
|
|
|
46
46
|
var import_node_crypto = __toESM(require("node:crypto"));
|
|
47
47
|
var import_api = require("@cedarjs/api");
|
|
48
48
|
var import_project_config = require("@cedarjs/project-config");
|
|
49
|
-
var DbAuthError = __toESM(require("./errors"));
|
|
49
|
+
var DbAuthError = __toESM(require("./errors.js"));
|
|
50
50
|
const DEFAULT_SCRYPT_OPTIONS = {
|
|
51
51
|
cost: 2 ** 14,
|
|
52
52
|
blockSize: 8,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/auth-dbauth-api",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.13754+cb1b67d15",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"test:watch": "vitest watch"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@cedarjs/project-config": "4.0.0-canary.
|
|
60
|
+
"@cedarjs/project-config": "4.0.0-canary.13754",
|
|
61
61
|
"md5": "2.3.0",
|
|
62
62
|
"uuid": "11.1.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@arethetypeswrong/cli": "0.18.2",
|
|
66
|
-
"@cedarjs/api": "4.0.0-canary.
|
|
67
|
-
"@cedarjs/framework-tools": "4.0.0-canary.
|
|
66
|
+
"@cedarjs/api": "4.0.0-canary.13754",
|
|
67
|
+
"@cedarjs/framework-tools": "4.0.0-canary.13754",
|
|
68
68
|
"@simplewebauthn/server": "10.0.1",
|
|
69
69
|
"@types/md5": "2.3.6",
|
|
70
70
|
"concurrently": "9.2.1",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "cb1b67d1502911b3b770e61e0a8ae9c9d8142cc0"
|
|
83
83
|
}
|