@cedarjs/api 5.0.0-canary.2451 → 5.0.0-canary.2452

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.
@@ -8,8 +8,8 @@ export * from './cors.js';
8
8
  export * from './event.js';
9
9
  export declare const prismaVersion: string | undefined;
10
10
  /** @deprecated - use `cedarVersion` instead */
11
- export declare const redwoodVersion: string | undefined;
11
+ export declare const redwoodVersion: string;
12
12
  /** @deprecated - use `cedarVersion` instead */
13
- export declare const cedarjsVersion: string | undefined;
14
- export declare const cedarVersion: string | undefined;
13
+ export declare const cedarjsVersion: string;
14
+ export declare const cedarVersion: string;
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -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+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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,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;AAU1B,eAAO,MAAM,aAAa,EAAE,MAAM,GAAG,SAAqC,CAAA;AAC1E,+CAA+C;AAC/C,eAAO,MAAM,cAAc,QAAwB,CAAA;AACnD,+CAA+C;AAC/C,eAAO,MAAM,cAAc,QAAwB,CAAA;AACnD,eAAO,MAAM,YAAY,QAAwB,CAAA"}
package/dist/cjs/index.js CHANGED
@@ -25,8 +25,6 @@ __export(index_exports, {
25
25
  redwoodVersion: () => redwoodVersion
26
26
  });
27
27
  module.exports = __toCommonJS(index_exports);
28
- var import_node_module = require("node:module");
29
- var import_node_url = require("node:url");
30
28
  __reExport(index_exports, require("./auth/index.js"), module.exports);
31
29
  __reExport(index_exports, require("./errors.js"), module.exports);
32
30
  __reExport(index_exports, require("./validations/validations.js"), module.exports);
@@ -35,43 +33,10 @@ __reExport(index_exports, require("./types.js"), module.exports);
35
33
  __reExport(index_exports, require("./transforms.js"), module.exports);
36
34
  __reExport(index_exports, require("./cors.js"), module.exports);
37
35
  __reExport(index_exports, require("./event.js"), module.exports);
38
- const import_meta = {};
39
- let packageJson;
40
- let importMetaError;
41
- if (import_meta.resolve) {
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));
52
- }
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
- );
69
- }
70
- }
71
- const prismaVersion = packageJson?.dependencies?.["@prisma/client"];
72
- const redwoodVersion = packageJson?.version;
73
- const cedarjsVersion = packageJson?.version;
74
- const cedarVersion = packageJson?.version;
36
+ const prismaVersion = "7.8.0";
37
+ const redwoodVersion = "5.0.0-canary.2452";
38
+ const cedarjsVersion = "5.0.0-canary.2452";
39
+ const cedarVersion = "5.0.0-canary.2452";
75
40
  // Annotate the CommonJS export names for ESM import in node:
76
41
  0 && (module.exports = {
77
42
  cedarVersion,
package/dist/index.d.ts CHANGED
@@ -8,8 +8,8 @@ export * from './cors.js';
8
8
  export * from './event.js';
9
9
  export declare const prismaVersion: string | undefined;
10
10
  /** @deprecated - use `cedarVersion` instead */
11
- export declare const redwoodVersion: string | undefined;
11
+ export declare const redwoodVersion: string;
12
12
  /** @deprecated - use `cedarVersion` instead */
13
- export declare const cedarjsVersion: string | undefined;
14
- export declare const cedarVersion: string | undefined;
13
+ export declare const cedarjsVersion: string;
14
+ export declare const cedarVersion: string;
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -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+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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,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;AAU1B,eAAO,MAAM,aAAa,EAAE,MAAM,GAAG,SAAqC,CAAA;AAC1E,+CAA+C;AAC/C,eAAO,MAAM,cAAc,QAAwB,CAAA;AACnD,+CAA+C;AAC/C,eAAO,MAAM,cAAc,QAAwB,CAAA;AACnD,eAAO,MAAM,YAAY,QAAwB,CAAA"}
package/dist/index.js CHANGED
@@ -1,5 +1,3 @@
1
- import { createRequire } from "node:module";
2
- import { fileURLToPath } from "node:url";
3
1
  export * from "./auth/index.js";
4
2
  export * from "./errors.js";
5
3
  export * from "./validations/validations.js";
@@ -8,42 +6,10 @@ export * from "./types.js";
8
6
  export * from "./transforms.js";
9
7
  export * from "./cors.js";
10
8
  export * from "./event.js";
11
- let packageJson;
12
- let importMetaError;
13
- if (import.meta.resolve) {
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));
24
- }
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
- );
41
- }
42
- }
43
- const prismaVersion = packageJson?.dependencies?.["@prisma/client"];
44
- const redwoodVersion = packageJson?.version;
45
- const cedarjsVersion = packageJson?.version;
46
- const cedarVersion = packageJson?.version;
9
+ const prismaVersion = "7.8.0";
10
+ const redwoodVersion = "5.0.0-canary.2452";
11
+ const cedarjsVersion = "5.0.0-canary.2452";
12
+ const cedarVersion = "5.0.0-canary.2452";
47
13
  export {
48
14
  cedarVersion,
49
15
  cedarjsVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/api",
3
- "version": "5.0.0-canary.2451",
3
+ "version": "5.0.0-canary.2452",
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.2451",
111
+ "@cedarjs/framework-tools": "5.0.0-canary.2452",
112
112
  "@types/aws-lambda": "8.10.162",
113
113
  "@types/jsonwebtoken": "9.0.10",
114
114
  "@types/memjs": "1",