@cedarjs/api 4.2.1-next.0 → 4.2.1-next.258

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.
@@ -6,10 +6,10 @@ export * from './types.js';
6
6
  export * from './transforms.js';
7
7
  export * from './cors.js';
8
8
  export * from './event.js';
9
- export declare const prismaVersion: any;
9
+ export declare const prismaVersion: string | undefined;
10
10
  /** @deprecated - use `cedarVersion` instead */
11
- export declare const redwoodVersion: any;
11
+ export declare const redwoodVersion: string;
12
12
  /** @deprecated - use `cedarVersion` instead */
13
- export declare const cedarjsVersion: any;
14
- export declare const cedarVersion: any;
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":"AAEA,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;AA0B1B,eAAO,MAAM,aAAa,KAA8C,CAAA;AACxE,+CAA+C;AAC/C,eAAO,MAAM,cAAc,KAAuB,CAAA;AAClD,+CAA+C;AAC/C,eAAO,MAAM,cAAc,KAAuB,CAAA;AAClD,eAAO,MAAM,YAAY,KAAuB,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,7 +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
28
  __reExport(index_exports, require("./auth/index.js"), module.exports);
30
29
  __reExport(index_exports, require("./errors.js"), module.exports);
31
30
  __reExport(index_exports, require("./validations/validations.js"), module.exports);
@@ -34,25 +33,10 @@ __reExport(index_exports, require("./types.js"), module.exports);
34
33
  __reExport(index_exports, require("./transforms.js"), module.exports);
35
34
  __reExport(index_exports, require("./cors.js"), module.exports);
36
35
  __reExport(index_exports, require("./event.js"), module.exports);
37
- const import_meta = {};
38
- const customRequire = (
39
- // Look out for a stubbed require function (@rollup will stub it)
40
- // @ts-expect-error - Using `0, ` to work around bundler magic
41
- typeof require === "function" && !(0, require).toString().includes("@rollup") ? require : (0, import_node_module.createRequire)(import_meta.url)
42
- );
43
- const cedarApiPath = customRequire.resolve("@cedarjs/api");
44
- const cedarApiRequire = (0, import_node_module.createRequire)(cedarApiPath);
45
- let packageJson = cedarApiRequire("./package.json");
46
- if (packageJson?.name !== "@cedarjs/api") {
47
- packageJson = cedarApiRequire("../package.json");
48
- }
49
- if (packageJson?.name !== "@cedarjs/api") {
50
- packageJson = cedarApiRequire("../../package.json");
51
- }
52
- const prismaVersion = packageJson?.dependencies["@prisma/client"];
53
- const redwoodVersion = packageJson?.version;
54
- const cedarjsVersion = packageJson?.version;
55
- const cedarVersion = packageJson?.version;
36
+ const prismaVersion = "7.8.0";
37
+ const redwoodVersion = "4.2.1-next.258";
38
+ const cedarjsVersion = "4.2.1-next.258";
39
+ const cedarVersion = "4.2.1-next.258";
56
40
  // Annotate the CommonJS export names for ESM import in node:
57
41
  0 && (module.exports = {
58
42
  cedarVersion,
package/dist/index.d.ts CHANGED
@@ -6,10 +6,10 @@ export * from './types.js';
6
6
  export * from './transforms.js';
7
7
  export * from './cors.js';
8
8
  export * from './event.js';
9
- export declare const prismaVersion: any;
9
+ export declare const prismaVersion: string | undefined;
10
10
  /** @deprecated - use `cedarVersion` instead */
11
- export declare const redwoodVersion: any;
11
+ export declare const redwoodVersion: string;
12
12
  /** @deprecated - use `cedarVersion` instead */
13
- export declare const cedarjsVersion: any;
14
- export declare const cedarVersion: any;
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":"AAEA,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;AA0B1B,eAAO,MAAM,aAAa,KAA8C,CAAA;AACxE,+CAA+C;AAC/C,eAAO,MAAM,cAAc,KAAuB,CAAA;AAClD,+CAA+C;AAC/C,eAAO,MAAM,cAAc,KAAuB,CAAA;AAClD,eAAO,MAAM,YAAY,KAAuB,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,4 +1,3 @@
1
- import { createRequire } from "node:module";
2
1
  export * from "./auth/index.js";
3
2
  export * from "./errors.js";
4
3
  export * from "./validations/validations.js";
@@ -7,24 +6,10 @@ export * from "./types.js";
7
6
  export * from "./transforms.js";
8
7
  export * from "./cors.js";
9
8
  export * from "./event.js";
10
- const customRequire = (
11
- // Look out for a stubbed require function (@rollup will stub it)
12
- // @ts-expect-error - Using `0, ` to work around bundler magic
13
- typeof require === "function" && !(0, require).toString().includes("@rollup") ? require : createRequire(import.meta.url)
14
- );
15
- const cedarApiPath = customRequire.resolve("@cedarjs/api");
16
- const cedarApiRequire = createRequire(cedarApiPath);
17
- let packageJson = cedarApiRequire("./package.json");
18
- if (packageJson?.name !== "@cedarjs/api") {
19
- packageJson = cedarApiRequire("../package.json");
20
- }
21
- if (packageJson?.name !== "@cedarjs/api") {
22
- packageJson = cedarApiRequire("../../package.json");
23
- }
24
- const prismaVersion = packageJson?.dependencies["@prisma/client"];
25
- const redwoodVersion = packageJson?.version;
26
- const cedarjsVersion = packageJson?.version;
27
- const cedarVersion = packageJson?.version;
9
+ const prismaVersion = "7.8.0";
10
+ const redwoodVersion = "4.2.1-next.258";
11
+ const cedarjsVersion = "4.2.1-next.258";
12
+ const cedarVersion = "4.2.1-next.258";
28
13
  export {
29
14
  cedarVersion,
30
15
  cedarjsVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/api",
3
- "version": "4.2.1-next.0",
3
+ "version": "4.2.1-next.258",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -90,7 +90,7 @@
90
90
  "build:pack": "yarn pack -o cedarjs-api.tgz",
91
91
  "build:types": "tsc --build --verbose ./tsconfig.build.json ./tsconfig.cjs.json",
92
92
  "build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
93
- "check:attw": "yarn rw-fwtools-attw",
93
+ "check:attw": "yarn cedar-fwtools-attw",
94
94
  "check:package": "concurrently npm:check:attw yarn:publint",
95
95
  "prepublishOnly": "NODE_ENV=production yarn build",
96
96
  "test": "vitest run",
@@ -109,20 +109,20 @@
109
109
  },
110
110
  "devDependencies": {
111
111
  "@cedarjs/framework-tools": "4.2.0",
112
- "@types/aws-lambda": "8.10.161",
112
+ "@types/aws-lambda": "8.10.162",
113
113
  "@types/jsonwebtoken": "9.0.10",
114
114
  "@types/memjs": "1",
115
115
  "@types/pascalcase": "1.0.3",
116
116
  "@types/split2": "4.2.3",
117
117
  "concurrently": "9.2.1",
118
118
  "memjs": "1.3.2",
119
- "publint": "0.3.20",
119
+ "publint": "0.3.21",
120
120
  "redis": "5.12.1",
121
121
  "split2": "4.2.0",
122
122
  "ts-toolbelt": "9.6.0",
123
- "tsx": "4.21.0",
123
+ "tsx": "4.22.4",
124
124
  "typescript": "5.9.3",
125
- "vitest": "3.2.4"
125
+ "vitest": "3.2.6"
126
126
  },
127
127
  "peerDependencies": {
128
128
  "memjs": "1.3.2",