@cedarjs/api 0.5.0 → 0.5.1-next.38
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 +8 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -16
- package/package.json +4 -4
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
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,eAAO,MAAM,cAAc,KAAuB,CAAA;AAClD,eAAO,MAAM,cAAc,KAAuB,CAAA"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -18,14 +16,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
18
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
20
|
var index_exports = {};
|
|
31
21
|
__export(index_exports, {
|
|
@@ -35,7 +25,6 @@ __export(index_exports, {
|
|
|
35
25
|
});
|
|
36
26
|
module.exports = __toCommonJS(index_exports);
|
|
37
27
|
var import_node_module = require("node:module");
|
|
38
|
-
var import_node_path = __toESM(require("node:path"), 1);
|
|
39
28
|
__reExport(index_exports, require("./auth/index.js"), module.exports);
|
|
40
29
|
__reExport(index_exports, require("./errors.js"), module.exports);
|
|
41
30
|
__reExport(index_exports, require("./validations/validations.js"), module.exports);
|
|
@@ -44,27 +33,20 @@ __reExport(index_exports, require("./types.js"), module.exports);
|
|
|
44
33
|
__reExport(index_exports, require("./transforms.js"), module.exports);
|
|
45
34
|
__reExport(index_exports, require("./cors.js"), module.exports);
|
|
46
35
|
__reExport(index_exports, require("./event.js"), module.exports);
|
|
36
|
+
const import_meta = {};
|
|
47
37
|
const customRequire = (
|
|
48
|
-
// Look out for a stubbed require function
|
|
38
|
+
// Look out for a stubbed require function (@rollup will stub it)
|
|
49
39
|
// @ts-expect-error - Using `0, ` to work around bundler magic
|
|
50
|
-
typeof require === "function" && !(0, require).toString().includes("@rollup") ? require : (
|
|
51
|
-
// The argument to `createRequire` should be a file and node will strip
|
|
52
|
-
// the last segment (the file name) to get to a base path. By appending a
|
|
53
|
-
// fake "foo" file we get the base path we want.
|
|
54
|
-
// If I knew this was only going to be run as an ESM I'd use
|
|
55
|
-
// `import.meta.url`, but for dual bundling I can't do that (without a
|
|
56
|
-
// bunch of warnings at build time at least)
|
|
57
|
-
(0, import_node_module.createRequire)(import_node_path.default.join(process.env.RWJS_CWD || process.cwd(), "foo"))
|
|
58
|
-
)
|
|
40
|
+
typeof require === "function" && !(0, require).toString().includes("@rollup") ? require : (0, import_node_module.createRequire)(import_meta.url)
|
|
59
41
|
);
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
let packageJson =
|
|
42
|
+
const cedarApiPath = customRequire.resolve("@cedarjs/api");
|
|
43
|
+
const cedarApiRequire = (0, import_node_module.createRequire)(cedarApiPath);
|
|
44
|
+
let packageJson = cedarApiRequire("./package.json");
|
|
63
45
|
if (packageJson?.name !== "@cedarjs/api") {
|
|
64
|
-
packageJson =
|
|
46
|
+
packageJson = cedarApiRequire("../package.json");
|
|
65
47
|
}
|
|
66
48
|
if (packageJson?.name !== "@cedarjs/api") {
|
|
67
|
-
packageJson =
|
|
49
|
+
packageJson = cedarApiRequire("../../package.json");
|
|
68
50
|
}
|
|
69
51
|
const prismaVersion = packageJson?.dependencies["@prisma/client"];
|
|
70
52
|
const redwoodVersion = packageJson?.version;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
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,eAAO,MAAM,cAAc,KAAuB,CAAA;AAClD,eAAO,MAAM,cAAc,KAAuB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
import path from "node:path";
|
|
3
2
|
export * from "./auth/index.js";
|
|
4
3
|
export * from "./errors.js";
|
|
5
4
|
export * from "./validations/validations.js";
|
|
@@ -9,26 +8,18 @@ export * from "./transforms.js";
|
|
|
9
8
|
export * from "./cors.js";
|
|
10
9
|
export * from "./event.js";
|
|
11
10
|
const customRequire = (
|
|
12
|
-
// Look out for a stubbed require function
|
|
11
|
+
// Look out for a stubbed require function (@rollup will stub it)
|
|
13
12
|
// @ts-expect-error - Using `0, ` to work around bundler magic
|
|
14
|
-
typeof require === "function" && !(0, require).toString().includes("@rollup") ? require : (
|
|
15
|
-
// The argument to `createRequire` should be a file and node will strip
|
|
16
|
-
// the last segment (the file name) to get to a base path. By appending a
|
|
17
|
-
// fake "foo" file we get the base path we want.
|
|
18
|
-
// If I knew this was only going to be run as an ESM I'd use
|
|
19
|
-
// `import.meta.url`, but for dual bundling I can't do that (without a
|
|
20
|
-
// bunch of warnings at build time at least)
|
|
21
|
-
createRequire(path.join(process.env.RWJS_CWD || process.cwd(), "foo"))
|
|
22
|
-
)
|
|
13
|
+
typeof require === "function" && !(0, require).toString().includes("@rollup") ? require : createRequire(import.meta.url)
|
|
23
14
|
);
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
let packageJson =
|
|
15
|
+
const cedarApiPath = customRequire.resolve("@cedarjs/api");
|
|
16
|
+
const cedarApiRequire = createRequire(cedarApiPath);
|
|
17
|
+
let packageJson = cedarApiRequire("./package.json");
|
|
27
18
|
if (packageJson?.name !== "@cedarjs/api") {
|
|
28
|
-
packageJson =
|
|
19
|
+
packageJson = cedarApiRequire("../package.json");
|
|
29
20
|
}
|
|
30
21
|
if (packageJson?.name !== "@cedarjs/api") {
|
|
31
|
-
packageJson =
|
|
22
|
+
packageJson = cedarApiRequire("../../package.json");
|
|
32
23
|
}
|
|
33
24
|
const prismaVersion = packageJson?.dependencies["@prisma/client"];
|
|
34
25
|
const redwoodVersion = packageJson?.version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/api",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1-next.38+78d2119a5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"title-case": "3.0.3"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@cedarjs/framework-tools": "0.5.
|
|
101
|
-
"@types/aws-lambda": "8.10.
|
|
100
|
+
"@cedarjs/framework-tools": "0.5.1-next.38",
|
|
101
|
+
"@types/aws-lambda": "8.10.152",
|
|
102
102
|
"@types/jsonwebtoken": "9.0.10",
|
|
103
103
|
"@types/memjs": "1",
|
|
104
104
|
"@types/pascalcase": "1.0.3",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"publishConfig": {
|
|
129
129
|
"access": "public"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "78d2119a507ed80faa9adb94b78d92662f134c4b"
|
|
132
132
|
}
|