@redmix/api 9.0.0-canary.615 → 9.0.0-canary.617

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.
@@ -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;AAsB1B,eAAO,MAAM,aAAa,KAA8C,CAAA;AACxE,eAAO,MAAM,cAAc,KAAuB,CAAA"}
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;AA6B1B,eAAO,MAAM,aAAa,KAA8C,CAAA;AACxE,eAAO,MAAM,cAAc,KAAuB,CAAA"}
package/dist/cjs/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -16,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
16
18
  return to;
17
19
  };
18
20
  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
+ ));
19
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
30
  var index_exports = {};
21
31
  __export(index_exports, {
@@ -24,6 +34,7 @@ __export(index_exports, {
24
34
  });
25
35
  module.exports = __toCommonJS(index_exports);
26
36
  var import_node_module = require("node:module");
37
+ var import_node_path = __toESM(require("node:path"), 1);
27
38
  __reExport(index_exports, require("./auth/index.js"), module.exports);
28
39
  __reExport(index_exports, require("./errors.js"), module.exports);
29
40
  __reExport(index_exports, require("./validations/validations.js"), module.exports);
@@ -32,7 +43,18 @@ __reExport(index_exports, require("./types.js"), module.exports);
32
43
  __reExport(index_exports, require("./transforms.js"), module.exports);
33
44
  __reExport(index_exports, require("./cors.js"), module.exports);
34
45
  __reExport(index_exports, require("./event.js"), module.exports);
35
- const customRequire = typeof require === "function" ? require : (0, import_node_module.createRequire)(process.env.RWJS_CWD || process.cwd());
46
+ const customRequire = (
47
+ // Look out for a stubbed require function
48
+ typeof require === "function" && !require.toString().includes("@rollup") ? require : (
49
+ // The argument to `createRequire` should be a file and node will strip
50
+ // the last segment (the file name) to get to a base path. By appending a
51
+ // fake "foo" file we get the base path we want.
52
+ // If I knew this was only going to be run as an ESM I'd use
53
+ // `import.meta.url`, but for dual bundling I can't do that (without a
54
+ // bunch of warnings at build time at least)
55
+ (0, import_node_module.createRequire)(import_node_path.default.join(process.env.RWJS_CWD || process.cwd(), "foo"))
56
+ )
57
+ );
36
58
  const rxApiPath = customRequire.resolve("@redmix/api");
37
59
  const rxApiRequire = (0, import_node_module.createRequire)(rxApiPath);
38
60
  let packageJson = rxApiRequire("./package.json");
@@ -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;AAsB1B,eAAO,MAAM,aAAa,KAA8C,CAAA;AACxE,eAAO,MAAM,cAAc,KAAuB,CAAA"}
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;AA6B1B,eAAO,MAAM,aAAa,KAA8C,CAAA;AACxE,eAAO,MAAM,cAAc,KAAuB,CAAA"}
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
+ import path from "node:path";
2
3
  export * from "./auth/index.js";
3
4
  export * from "./errors.js";
4
5
  export * from "./validations/validations.js";
@@ -7,7 +8,18 @@ export * from "./types.js";
7
8
  export * from "./transforms.js";
8
9
  export * from "./cors.js";
9
10
  export * from "./event.js";
10
- const customRequire = typeof require === "function" ? require : createRequire(process.env.RWJS_CWD || process.cwd());
11
+ const customRequire = (
12
+ // Look out for a stubbed require function
13
+ typeof require === "function" && !require.toString().includes("@rollup") ? require : (
14
+ // The argument to `createRequire` should be a file and node will strip
15
+ // the last segment (the file name) to get to a base path. By appending a
16
+ // fake "foo" file we get the base path we want.
17
+ // If I knew this was only going to be run as an ESM I'd use
18
+ // `import.meta.url`, but for dual bundling I can't do that (without a
19
+ // bunch of warnings at build time at least)
20
+ createRequire(path.join(process.env.RWJS_CWD || process.cwd(), "foo"))
21
+ )
22
+ );
11
23
  const rxApiPath = customRequire.resolve("@redmix/api");
12
24
  const rxApiRequire = createRequire(rxApiPath);
13
25
  let packageJson = rxApiRequire("./package.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redmix/api",
3
- "version": "9.0.0-canary.615+efbd3b238",
3
+ "version": "9.0.0-canary.617+ce2ccbdd7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/redmix-run/redmix.git",
@@ -95,7 +95,7 @@
95
95
  "title-case": "3.0.3"
96
96
  },
97
97
  "devDependencies": {
98
- "@redmix/framework-tools": "9.0.0-canary.615",
98
+ "@redmix/framework-tools": "9.0.0-canary.617",
99
99
  "@types/aws-lambda": "8.10.145",
100
100
  "@types/jsonwebtoken": "9.0.8",
101
101
  "@types/memjs": "1",
@@ -123,5 +123,5 @@
123
123
  "optional": true
124
124
  }
125
125
  },
126
- "gitHead": "efbd3b2381f9bda07bfc694f201cc669c816bc1b"
126
+ "gitHead": "ce2ccbdd73c80615b34677d9b77c957d108a16fd"
127
127
  }