@cedarjs/auth-dbauth-setup 1.1.1-next.21 → 1.1.1-rc.3
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/shared.d.ts.map +1 -1
- package/dist/shared.js +4 -7
- package/dist/webAuthn.setupData.js +2 -2
- package/package.json +6 -6
package/dist/shared.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,OAAO,QAAkD,CAAA;AACtE,eAAO,MAAM,aAAa,QAGzB,CAAA;AAED,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,OAAO,QAAkD,CAAA;AACtE,eAAO,MAAM,aAAa,QAGzB,CAAA;AAED,eAAO,MAAM,aAAa,yBAKzB,CAAA;AAED,eAAO,MAAM,QAAQ,GAAU,MAAM,MAAM,qBAe1C,CAAA;AAED,wBAAsB,SAAS,CAAC,MAAM,EAAE,MAAM,iBAQ7C;AAED,wBAAgB,YAAY,YAuB3B;AAED,wBAAgB,qBAAqB,CAAC,mBAAmB,EAAE,OAAO;;;EAwBjE"}
|
package/dist/shared.js
CHANGED
|
@@ -25,9 +25,7 @@ const libPath = exports.libPath = (0, _cliHelpers.getPaths)().api.lib.replace((0
|
|
|
25
25
|
const functionsPath = exports.functionsPath = (0, _cliHelpers.getPaths)().api.functions.replace((0, _cliHelpers.getPaths)().base, '');
|
|
26
26
|
const getModelNames = async () => {
|
|
27
27
|
var _context;
|
|
28
|
-
const
|
|
29
|
-
const result = await (0, _internals.getSchemaWithPath)(schemaPath);
|
|
30
|
-
const datamodel = result.schemas;
|
|
28
|
+
const datamodel = await (0, _internals.getSchema)((0, _cliHelpers.getPaths)().api.dbSchema);
|
|
31
29
|
const schema = await (0, _internals.getDMMF)({
|
|
32
30
|
datamodel
|
|
33
31
|
});
|
|
@@ -51,12 +49,11 @@ const hasModel = async name => {
|
|
|
51
49
|
};
|
|
52
50
|
exports.hasModel = hasModel;
|
|
53
51
|
async function addModels(models) {
|
|
54
|
-
const
|
|
55
|
-
const isDirectory = _nodeFs.default.statSync(schemaPath).isDirectory();
|
|
52
|
+
const isDirectory = _nodeFs.default.statSync((0, _cliHelpers.getPaths)().api.dbSchema).isDirectory();
|
|
56
53
|
if (isDirectory) {
|
|
57
|
-
_nodeFs.default.writeFileSync(_nodePath.default.join(
|
|
54
|
+
_nodeFs.default.writeFileSync(_nodePath.default.join((0, _cliHelpers.getPaths)().api.dbSchema, 'user.prisma'), models);
|
|
58
55
|
} else {
|
|
59
|
-
_nodeFs.default.appendFileSync(
|
|
56
|
+
_nodeFs.default.appendFileSync((0, _cliHelpers.getPaths)().api.dbSchema, models);
|
|
60
57
|
}
|
|
61
58
|
}
|
|
62
59
|
function hasAuthPages() {
|
|
@@ -20,10 +20,10 @@ var _setupData = require("./setupData");
|
|
|
20
20
|
// copy some identical values from dbAuth provider
|
|
21
21
|
|
|
22
22
|
// required packages to install on the web side
|
|
23
|
-
const webPackages = exports.webPackages = ['@simplewebauthn/browser@^
|
|
23
|
+
const webPackages = exports.webPackages = ['@simplewebauthn/browser@^7'];
|
|
24
24
|
|
|
25
25
|
// required packages to install on the api side
|
|
26
|
-
const apiPackages = exports.apiPackages = ['@simplewebauthn/server@^
|
|
26
|
+
const apiPackages = exports.apiPackages = ['@simplewebauthn/server@^7'];
|
|
27
27
|
const createUserModelTask = exports.createUserModelTask = {
|
|
28
28
|
title: 'Creating model `User`...',
|
|
29
29
|
task: async ctx => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/auth-dbauth-setup",
|
|
3
|
-
"version": "1.1.1-
|
|
3
|
+
"version": "1.1.1-rc.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime-corejs3": "7.27.6",
|
|
28
|
-
"@cedarjs/cli-helpers": "1.1.1-
|
|
29
|
-
"@prisma/internals": "
|
|
30
|
-
"@simplewebauthn/browser": "
|
|
28
|
+
"@cedarjs/cli-helpers": "1.1.1-rc.3",
|
|
29
|
+
"@prisma/internals": "5.20.0",
|
|
30
|
+
"@simplewebauthn/browser": "7.4.0",
|
|
31
31
|
"core-js": "3.42.0",
|
|
32
32
|
"prompts": "2.4.2",
|
|
33
33
|
"termi-link": "1.1.0"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/cli": "7.27.2",
|
|
37
37
|
"@babel/core": "^7.26.10",
|
|
38
|
-
"@simplewebauthn/types": "
|
|
38
|
+
"@simplewebauthn/typescript-types": "7.4.0",
|
|
39
39
|
"@types/yargs": "17.0.33",
|
|
40
40
|
"ts-dedent": "2.2.0",
|
|
41
41
|
"typescript": "5.9.2",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "1332c50070b0ab7f2cfc0d7bc802c60cd8a664a9"
|
|
48
48
|
}
|