@agnostack/next-shopify 1.14.1-beta.12 → 1.14.1-beta.14

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.14.1-beta.14](https://github.com/agnostack/next-shopify/compare/v1.14.1-beta.13...v1.14.1-beta.14) (2023-12-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * wip ([a30ccc5](https://github.com/agnostack/next-shopify/commit/a30ccc5fc2a2973aebc7c350a6e552e7f2033a0c))
7
+
8
+ ## [1.14.1-beta.13](https://github.com/agnostack/next-shopify/compare/v1.14.1-beta.12...v1.14.1-beta.13) (2023-12-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * wip ([65cb793](https://github.com/agnostack/next-shopify/commit/65cb793b99613677cf52aed2b5f3f754fc17559e))
14
+
1
15
  ## [1.14.1-beta.12](https://github.com/agnostack/next-shopify/compare/v1.14.1-beta.11...v1.14.1-beta.12) (2023-12-06)
2
16
 
3
17
 
@@ -2,7 +2,7 @@ export * from "./billing";
2
2
  export * from "./crypto";
3
3
  export * from "./firebase";
4
4
  export * from "./headers";
5
- export * from "./request";
5
+ export * from "./rawbody";
6
6
  export * from "./session";
7
7
  export * from "./shopify";
8
8
  export * from "./shopify-api-js/oauth";
@@ -5,7 +5,7 @@ tslib_1.__exportStar(require("./billing"), exports);
5
5
  tslib_1.__exportStar(require("./crypto"), exports);
6
6
  tslib_1.__exportStar(require("./firebase"), exports);
7
7
  tslib_1.__exportStar(require("./headers"), exports);
8
- tslib_1.__exportStar(require("./request"), exports);
8
+ tslib_1.__exportStar(require("./rawbody"), exports);
9
9
  tslib_1.__exportStar(require("./session"), exports);
10
10
  tslib_1.__exportStar(require("./shopify"), exports);
11
11
  tslib_1.__exportStar(require("./shopify-api-js/oauth"), exports);
@@ -1,2 +1,2 @@
1
1
  export function ensureRawBody(req: any): Promise<any>;
2
- //# sourceMappingURL=request.d.ts.map
2
+ //# sourceMappingURL=rawbody.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rawbody.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/rawbody.js"],"names":[],"mappings":"AAEO,sDAoBN"}
@@ -5,8 +5,11 @@ const tslib_1 = require("tslib");
5
5
  const raw_body_1 = tslib_1.__importDefault(require("raw-body"));
6
6
  const ensureRawBody = (req) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
7
7
  if (req.text) {
8
- console.log(`>>> > ensureRawBody > req.text:`, { textFunc: yield req.text() });
9
- console.log(`>>> > ensureRawBody > req.text2:`, { textFunc2: yield req.text() });
8
+ console.log(`>>> > ensureRawBody > req.text:`, { text1: yield req.text() });
9
+ console.log(`>>> > ensureRawBody > req.text2:`, { text2: yield req.text() });
10
+ }
11
+ else {
12
+ console.log(`>>> > ensureRawBody > req.text3:`, { textFunc: req.text });
10
13
  }
11
14
  return (0, raw_body_1.default)(req)
12
15
  .then((_rawBody) => _rawBody.toString())
@@ -21,4 +24,4 @@ const ensureRawBody = (req) => tslib_1.__awaiter(void 0, void 0, void 0, functio
21
24
  });
22
25
  });
23
26
  exports.ensureRawBody = ensureRawBody;
24
- //# sourceMappingURL=request.js.map
27
+ //# sourceMappingURL=rawbody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rawbody.js","sourceRoot":"","sources":["../../../src/lib/utils/rawbody.js"],"names":[],"mappings":";;;;AAAA,gEAAiC;AAE1B,MAAM,aAAa,GAAG,CAAO,GAAG,EAAE,EAAE;IACzC,IAAI,GAAG,CAAC,IAAI,EAAE;QACZ,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;QAC3E,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;KAC7E;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,QAAQ,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;KACxE;IAED,OAAO,IAAA,kBAAU,EAAC,GAAG,CAAC;SACnB,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;SACvC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,qHAAqH;QACrH,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAK,qBAAqB,CAAC,EAAE;YAC3C,OAAO,CAAC,KAAK,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,EAAE,CAAC,CAAA;YACvE,OAAO,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,CAAA;SACjB;QAED,OAAO,CAAC,KAAK,CAAC,+BAA+B,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,GAAG,GAAG,EAAE,KAAK,CAAC,CAAA;QAChE,MAAM,KAAK,CAAA;IACb,CAAC,CAAC,CAAA;AACN,CAAC,CAAA,CAAA;AApBY,QAAA,aAAa,iBAoBzB"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getVerificationHelpers = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const shared_1 = require("../../shared");
6
- const request_1 = require("./request");
6
+ const rawbody_1 = require("./rawbody");
7
7
  const getVerificationHelpers = (serverRuntimeConfig) => {
8
8
  const { keyPairs } = serverRuntimeConfig;
9
9
  return (req, params) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
@@ -24,7 +24,7 @@ const getVerificationHelpers = (serverRuntimeConfig) => {
24
24
  (authProtocol === 'HMAC-SHA256'));
25
25
  console.log(`>>> > getVerificationHelpers > isVerifiable: '${uri}'`, { isVerifiable });
26
26
  let verificationKeys;
27
- const rawBody = yield (0, request_1.ensureRawBody)(req);
27
+ const rawBody = yield (0, rawbody_1.ensureRawBody)(req);
28
28
  console.log(`>>> > getVerificationHelpers > rawBody: '${uri}'`, { rawBody });
29
29
  // NOTE: requestBody should be wind up decrypted when isVerifiable (unless disableRecryption, then will pass through)
30
30
  let requestBody = (0, shared_1.safeParse)(rawBody);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agnostack/next-shopify",
3
- "version": "1.14.1-beta.12",
3
+ "version": "1.14.1-beta.14",
4
4
  "author": "agnoStack Dev <developers@agnostack.com> (https://agnostack.com)",
5
5
  "owner": "agnoStack",
6
6
  "description": "Please contact agnoStack via info@agnostack.com for any questions",
@@ -1 +0,0 @@
1
- {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/request.js"],"names":[],"mappings":"AAEO,sDAkBN"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/lib/utils/request.js"],"names":[],"mappings":";;;;AAAA,gEAAiC;AAE1B,MAAM,aAAa,GAAG,CAAO,GAAG,EAAE,EAAE;IACzC,IAAI,GAAG,CAAC,IAAI,EAAE;QACZ,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;QAC9E,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;KACjF;IAED,OAAO,IAAA,kBAAU,EAAC,GAAG,CAAC;SACnB,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;SACvC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,qHAAqH;QACrH,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAK,qBAAqB,CAAC,EAAE;YAC3C,OAAO,CAAC,KAAK,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,EAAE,CAAC,CAAA;YACvE,OAAO,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,CAAA;SACjB;QAED,OAAO,CAAC,KAAK,CAAC,+BAA+B,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,GAAG,GAAG,EAAE,KAAK,CAAC,CAAA;QAChE,MAAM,KAAK,CAAA;IACb,CAAC,CAAC,CAAA;AACN,CAAC,CAAA,CAAA;AAlBY,QAAA,aAAa,iBAkBzB"}