@cedarjs/api 5.0.0-canary.2447 → 5.0.0-canary.2449
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/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +27 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -14
- package/package.json +2 -2
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,yBAAyB,CAAA;AACvC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AA+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,yBAAyB,CAAA;AACvC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AA+D1B,eAAO,MAAM,aAAa,oBAAgD,CAAA;AAC1E,+CAA+C;AAC/C,eAAO,MAAM,cAAc,oBAAuB,CAAA;AAClD,+CAA+C;AAC/C,eAAO,MAAM,cAAc,oBAAuB,CAAA;AAClD,eAAO,MAAM,YAAY,oBAAuB,CAAA"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -37,22 +37,35 @@ __reExport(index_exports, require("./cors.js"), module.exports);
|
|
|
37
37
|
__reExport(index_exports, require("./event.js"), module.exports);
|
|
38
38
|
const import_meta = {};
|
|
39
39
|
let packageJson;
|
|
40
|
+
let importMetaError;
|
|
40
41
|
if (import_meta.resolve) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
packageJson
|
|
42
|
+
try {
|
|
43
|
+
const cedarApiEntryUrl = import_meta.resolve("@cedarjs/api");
|
|
44
|
+
const cedarApiDir = (0, import_node_url.fileURLToPath)(new URL(".", cedarApiEntryUrl));
|
|
45
|
+
const cedarApiRequire = (0, import_node_module.createRequire)(cedarApiEntryUrl);
|
|
46
|
+
packageJson = cedarApiRequire(`${cedarApiDir}/package.json`);
|
|
47
|
+
if (packageJson?.name !== "@cedarjs/api") {
|
|
48
|
+
packageJson = cedarApiRequire(`${cedarApiDir}../package.json`);
|
|
49
|
+
}
|
|
50
|
+
} catch (error) {
|
|
51
|
+
importMetaError = error instanceof Error ? error : new Error(String(error));
|
|
47
52
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
packageJson = cedarApiRequire(`${__dirname}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
}
|
|
54
|
+
if (!packageJson) {
|
|
55
|
+
try {
|
|
56
|
+
const cedarApiRequire = (0, import_node_module.createRequire)(__filename);
|
|
57
|
+
packageJson = cedarApiRequire(`${__dirname}/package.json`);
|
|
58
|
+
if (packageJson?.name !== "@cedarjs/api") {
|
|
59
|
+
packageJson = cedarApiRequire(`${__dirname}/../package.json`);
|
|
60
|
+
}
|
|
61
|
+
if (packageJson?.name !== "@cedarjs/api") {
|
|
62
|
+
packageJson = cedarApiRequire(`${__dirname}/../../package.json`);
|
|
63
|
+
}
|
|
64
|
+
} catch (error) {
|
|
65
|
+
throw new Error(
|
|
66
|
+
"Could not read package.json to determine package version",
|
|
67
|
+
{ cause: importMetaError ?? error }
|
|
68
|
+
);
|
|
56
69
|
}
|
|
57
70
|
}
|
|
58
71
|
const prismaVersion = packageJson?.dependencies?.["@prisma/client"];
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,yBAAyB,CAAA;AACvC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AA+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,yBAAyB,CAAA;AACvC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AA+D1B,eAAO,MAAM,aAAa,oBAAgD,CAAA;AAC1E,+CAA+C;AAC/C,eAAO,MAAM,cAAc,oBAAuB,CAAA;AAClD,+CAA+C;AAC/C,eAAO,MAAM,cAAc,oBAAuB,CAAA;AAClD,eAAO,MAAM,YAAY,oBAAuB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -9,22 +9,35 @@ export * from "./transforms.js";
|
|
|
9
9
|
export * from "./cors.js";
|
|
10
10
|
export * from "./event.js";
|
|
11
11
|
let packageJson;
|
|
12
|
+
let importMetaError;
|
|
12
13
|
if (import.meta.resolve) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
packageJson
|
|
14
|
+
try {
|
|
15
|
+
const cedarApiEntryUrl = import.meta.resolve("@cedarjs/api");
|
|
16
|
+
const cedarApiDir = fileURLToPath(new URL(".", cedarApiEntryUrl));
|
|
17
|
+
const cedarApiRequire = createRequire(cedarApiEntryUrl);
|
|
18
|
+
packageJson = cedarApiRequire(`${cedarApiDir}/package.json`);
|
|
19
|
+
if (packageJson?.name !== "@cedarjs/api") {
|
|
20
|
+
packageJson = cedarApiRequire(`${cedarApiDir}../package.json`);
|
|
21
|
+
}
|
|
22
|
+
} catch (error) {
|
|
23
|
+
importMetaError = error instanceof Error ? error : new Error(String(error));
|
|
19
24
|
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
packageJson = cedarApiRequire(`${__dirname}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
}
|
|
26
|
+
if (!packageJson) {
|
|
27
|
+
try {
|
|
28
|
+
const cedarApiRequire = createRequire(__filename);
|
|
29
|
+
packageJson = cedarApiRequire(`${__dirname}/package.json`);
|
|
30
|
+
if (packageJson?.name !== "@cedarjs/api") {
|
|
31
|
+
packageJson = cedarApiRequire(`${__dirname}/../package.json`);
|
|
32
|
+
}
|
|
33
|
+
if (packageJson?.name !== "@cedarjs/api") {
|
|
34
|
+
packageJson = cedarApiRequire(`${__dirname}/../../package.json`);
|
|
35
|
+
}
|
|
36
|
+
} catch (error) {
|
|
37
|
+
throw new Error(
|
|
38
|
+
"Could not read package.json to determine package version",
|
|
39
|
+
{ cause: importMetaError ?? error }
|
|
40
|
+
);
|
|
28
41
|
}
|
|
29
42
|
}
|
|
30
43
|
const prismaVersion = packageJson?.dependencies?.["@prisma/client"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/api",
|
|
3
|
-
"version": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.2449",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"title-case": "3.0.3"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@cedarjs/framework-tools": "5.0.0-canary.
|
|
111
|
+
"@cedarjs/framework-tools": "5.0.0-canary.2449",
|
|
112
112
|
"@types/aws-lambda": "8.10.161",
|
|
113
113
|
"@types/jsonwebtoken": "9.0.10",
|
|
114
114
|
"@types/memjs": "1",
|