@unchainedshop/cockpit-api 1.0.0 → 1.0.1

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/index.js CHANGED
@@ -14,12 +14,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.makeCockpitSchema = void 0;
16
16
  const wrap_1 = require("@graphql-tools/wrap");
17
- const api_1 = __importDefault(require("./api"));
17
+ const api_js_1 = __importDefault(require("./api.js"));
18
18
  function remoteExecutor(_a) {
19
19
  return __awaiter(this, arguments, void 0, function* ({ document, variables, context }) {
20
20
  var _b, _c;
21
21
  const cockpitSpace = (_c = (_b = context === null || context === void 0 ? void 0 : context.req) === null || _b === void 0 ? void 0 : _b.headers) === null || _c === void 0 ? void 0 : _c["x-cockpit-space"];
22
- const getCockpit = yield (0, api_1.default)(cockpitSpace);
22
+ const getCockpit = yield (0, api_js_1.default)(cockpitSpace);
23
23
  return getCockpit.graphQL(document, variables);
24
24
  });
25
25
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAI6B;AAC7B,gDAA+B;AAE/B,SAAe,cAAc;yDAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAO;;QAC/D,MAAM,YAAY,GAAG,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAE,OAAO,0CAAG,iBAAiB,CAAC,CAAC;QAChE,MAAM,UAAU,GAAG,MAAM,IAAA,aAAU,EAAC,YAAY,CAAC,CAAC;QAClD,OAAO,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACnD,CAAC;CAAA;AAEM,MAAM,iBAAiB,GAAG,GAAS,EAAE;IACxC,MAAM,gBAAgB,GAAG,IAAA,iBAAU,EAAC;QAChC,MAAM,EAAE,MAAM,IAAA,yBAAkB,EAAC,cAAc,CAAC;QAChD,QAAQ,EAAE,cAAc;QACxB,UAAU,EAAE;YACR,IAAI,uBAAgB,CAAC,CAAC,aAAa,EAAE,EAAE;gBACnC,OAAO,aAAa,KAAK,UAAU,CAAC;YACxC,CAAC,CAAC;SACL;KACJ,CAAC,CAAC;IACH,OAAO,gBAAgB,CAAC;AAC5B,CAAC,CAAA,CAAC;AAXW,QAAA,iBAAiB,qBAW5B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAI6B;AAC7B,sDAAkC;AAElC,SAAe,cAAc;yDAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAO;;QAC/D,MAAM,YAAY,GAAG,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAE,OAAO,0CAAG,iBAAiB,CAAC,CAAC;QAChE,MAAM,UAAU,GAAG,MAAM,IAAA,gBAAU,EAAC,YAAY,CAAC,CAAC;QAClD,OAAO,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACnD,CAAC;CAAA;AAEM,MAAM,iBAAiB,GAAG,GAAS,EAAE;IACxC,MAAM,gBAAgB,GAAG,IAAA,iBAAU,EAAC;QAChC,MAAM,EAAE,MAAM,IAAA,yBAAkB,EAAC,cAAc,CAAC;QAChD,QAAQ,EAAE,cAAc;QACxB,UAAU,EAAE;YACR,IAAI,uBAAgB,CAAC,CAAC,aAAa,EAAE,EAAE;gBACnC,OAAO,aAAa,KAAK,UAAU,CAAC;YACxC,CAAC,CAAC;SACL;KACJ,CAAC,CAAC;IACH,OAAO,gBAAgB,CAAC;AAC5B,CAAC,CAAA,CAAC;AAXW,QAAA,iBAAiB,qBAW5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unchainedshop/cockpit-api",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Cokpit api endpoints",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  schemaFromExecutor,
4
4
  wrapSchema,
5
5
  } from "@graphql-tools/wrap";
6
- import CockpitAPI from "./api";
6
+ import CockpitAPI from "./api.js";
7
7
 
8
8
  async function remoteExecutor({ document, variables, context }: any) {
9
9
  const cockpitSpace = context?.req?.headers?.["x-cockpit-space"];