@extension.dev/deploy 0.2.2 → 0.2.4

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/module.js CHANGED
@@ -703,31 +703,21 @@ async function verifyEdgeCredentials(params) {
703
703
  message: "Credentials verified. Provide a Product ID to also verify extension ownership."
704
704
  };
705
705
  }
706
- const res = await fetch(`${EDGE_API_BASE}/${encodeURIComponent(params.productId)}/submissions/draft`, {
706
+ const SENTINEL_OP = "00000000-0000-0000-0000-000000000000";
707
+ const res = await fetch(`${EDGE_API_BASE}/${encodeURIComponent(params.productId)}/submissions/draft/package/operations/${SENTINEL_OP}`, {
707
708
  headers
708
709
  });
709
710
  if (401 === res.status) return {
710
711
  ok: false,
711
- message: "Unauthorized. Verify your API credentials are correct."
712
+ message: "Unauthorized. Verify your Client ID and API Key are correct (Partner Center \u2192 Publish API)."
712
713
  };
713
- if (403 === res.status) {
714
- const body = await res.text().catch(()=>"");
715
- if (/product not found|not found/i.test(body)) return {
716
- ok: false,
717
- message: "Product ID not found or not owned by this account. Verify the GUID matches your Partner Center extension."
718
- };
719
- return {
720
- ok: false,
721
- message: "Invalid credentials. Verify your Client ID and API Key are correct."
722
- };
723
- }
724
- if (200 === res.status) return {
725
- ok: true,
726
- message: "Credentials and Product ID verified. Draft submission exists."
714
+ if (403 === res.status) return {
715
+ ok: false,
716
+ message: "Forbidden. The Product ID may not be owned by this account, or these credentials lack access to it."
727
717
  };
728
- if (404 === res.status) return {
718
+ if (404 === res.status || 200 === res.status) return {
729
719
  ok: true,
730
- message: "Credentials and Product ID verified. Ready to submit."
720
+ message: "Credentials verified. Ready to submit."
731
721
  };
732
722
  return {
733
723
  ok: false,
package/dist/module.mjs CHANGED
@@ -646,31 +646,21 @@ async function verifyEdgeCredentials(params) {
646
646
  message: "Credentials verified. Provide a Product ID to also verify extension ownership."
647
647
  };
648
648
  }
649
- const res = await fetch(`${EDGE_API_BASE}/${encodeURIComponent(params.productId)}/submissions/draft`, {
649
+ const SENTINEL_OP = "00000000-0000-0000-0000-000000000000";
650
+ const res = await fetch(`${EDGE_API_BASE}/${encodeURIComponent(params.productId)}/submissions/draft/package/operations/${SENTINEL_OP}`, {
650
651
  headers
651
652
  });
652
653
  if (401 === res.status) return {
653
654
  ok: false,
654
- message: "Unauthorized. Verify your API credentials are correct."
655
+ message: "Unauthorized. Verify your Client ID and API Key are correct (Partner Center \u2192 Publish API)."
655
656
  };
656
- if (403 === res.status) {
657
- const body = await res.text().catch(()=>"");
658
- if (/product not found|not found/i.test(body)) return {
659
- ok: false,
660
- message: "Product ID not found or not owned by this account. Verify the GUID matches your Partner Center extension."
661
- };
662
- return {
663
- ok: false,
664
- message: "Invalid credentials. Verify your Client ID and API Key are correct."
665
- };
666
- }
667
- if (200 === res.status) return {
668
- ok: true,
669
- message: "Credentials and Product ID verified. Draft submission exists."
657
+ if (403 === res.status) return {
658
+ ok: false,
659
+ message: "Forbidden. The Product ID may not be owned by this account, or these credentials lack access to it."
670
660
  };
671
- if (404 === res.status) return {
661
+ if (404 === res.status || 200 === res.status) return {
672
662
  ok: true,
673
- message: "Credentials and Product ID verified. Ready to submit."
663
+ message: "Credentials verified. Ready to submit."
674
664
  };
675
665
  return {
676
666
  ok: false,
@@ -1 +1 @@
1
- {"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../src/edge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAW3C,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEtD;AAID,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC9C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,C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8D5B"}
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "ci",
14
14
  "automation"
15
15
  ],
16
- "version": "0.2.2",
16
+ "version": "0.2.4",
17
17
  "repository": {
18
18
  "type": "git",
19
19
  "url": "git+https://github.com/extensiondev/deploy.git"
@@ -24,7 +24,7 @@
24
24
  "homepage": "https://github.com/extensiondev/deploy#readme",
25
25
  "license": "MIT",
26
26
  "engines": {
27
- "node": ">=18"
27
+ "node": ">=20.18"
28
28
  },
29
29
  "packageManager": "pnpm@10.19.0",
30
30
  "exports": {