@drawbridge/drawbridge-utils 0.0.176 → 0.0.178
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/admin-B9ZaLvan.d.cts +697 -0
- package/dist/admin-C3HtEM6h.d.ts +697 -0
- package/dist/billing-Bc4yo9XG.d.cts +175 -0
- package/dist/billing-mNsKflmQ.d.ts +175 -0
- package/dist/billing.d.cts +1 -1
- package/dist/billing.d.ts +1 -1
- package/dist/connections/index.cjs +3391 -271
- package/dist/connections/index.d.cts +13 -4
- package/dist/connections/index.d.ts +13 -4
- package/dist/connections/index.js +3388 -270
- package/dist/features.cjs +3080 -241
- package/dist/features.d.cts +13 -4
- package/dist/features.d.ts +13 -4
- package/dist/features.js +3120 -275
- package/dist/http.cjs +10 -1
- package/dist/http.d.cts +10 -1
- package/dist/http.d.ts +10 -1
- package/dist/http.js +10 -1
- package/dist/{index-qY18QITf.d.cts → index-C2rxasGZ.d.cts} +2670 -354
- package/dist/{index-B8JhYfvU.d.ts → index-DOYCXtd7.d.ts} +2670 -354
- package/dist/oauth/index.d.cts +1 -1
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth-BJDh0sdM.d.cts +527 -0
- package/dist/oauth-DveZMLHx.d.ts +527 -0
- package/dist/partner-BOZltuh2.d.ts +94 -0
- package/dist/partner-ed2OfW1J.d.cts +94 -0
- package/dist/plans.cjs +3079 -240
- package/dist/plans.d.cts +13 -4
- package/dist/plans.d.ts +13 -4
- package/dist/plans.js +3120 -275
- package/dist/pricing.cjs +3112 -273
- package/dist/pricing.d.cts +13 -4
- package/dist/pricing.d.ts +13 -4
- package/dist/pricing.js +3117 -272
- package/dist/providers.cjs +3082 -262
- package/dist/providers.d.cts +12 -3
- package/dist/providers.d.ts +12 -3
- package/dist/providers.js +3086 -260
- package/dist/sendgrid.cjs +10 -1
- package/dist/sendgrid.js +10 -1
- package/dist/shopify/admin.cjs +562 -0
- package/dist/shopify/admin.d.cts +3 -0
- package/dist/shopify/admin.d.ts +3 -0
- package/dist/shopify/admin.js +528 -0
- package/dist/shopify/billing.cjs +166 -0
- package/dist/shopify/billing.d.cts +3 -0
- package/dist/shopify/billing.d.ts +3 -0
- package/dist/shopify/billing.js +140 -0
- package/dist/shopify/constants.cjs +63 -0
- package/dist/shopify/constants.d.cts +58 -0
- package/dist/shopify/constants.d.ts +58 -0
- package/dist/shopify/constants.js +32 -0
- package/dist/shopify/oauth.cjs +509 -0
- package/dist/shopify/oauth.d.cts +7 -0
- package/dist/shopify/oauth.d.ts +7 -0
- package/dist/shopify/oauth.js +466 -0
- package/dist/shopify/partner.cjs +156 -0
- package/dist/shopify/partner.d.cts +3 -0
- package/dist/shopify/partner.d.ts +3 -0
- package/dist/shopify/partner.js +130 -0
- package/dist/shopify/storefront.cjs +611 -0
- package/dist/shopify/storefront.d.cts +3 -0
- package/dist/shopify/storefront.d.ts +3 -0
- package/dist/shopify/storefront.js +576 -0
- package/dist/storefront-C8FKOGeD.d.cts +659 -0
- package/dist/storefront-DJFGLqPl.d.ts +659 -0
- package/dist/twilio.cjs +10 -1
- package/dist/twilio.js +10 -1
- package/package.json +98 -68
package/dist/http.cjs
CHANGED
|
@@ -25,6 +25,15 @@ module.exports = __toCommonJS(http_exports);
|
|
|
25
25
|
var DEFAULT_TIMEOUT_MS = 15e3;
|
|
26
26
|
var request = async ({
|
|
27
27
|
body,
|
|
28
|
+
// THE TRANSPORT, injectable and defaulted to the real one.
|
|
29
|
+
//
|
|
30
|
+
// Every other vendor client in this package takes a `fetcher` — it is how
|
|
31
|
+
// klaviyo, mailchimp and attentive are tested without a network, and it is a
|
|
32
|
+
// declared HOOK_OPTION. The Shopify client had no seam at all, so the only way
|
|
33
|
+
// to test a hook that used it was to inject the whole SDK namespace; that
|
|
34
|
+
// injection existed to work around an import cycle, and when the cycle went
|
|
35
|
+
// the tests lost their only hold. This is the seam they should have had.
|
|
36
|
+
fetcher = fetch,
|
|
28
37
|
headers = {},
|
|
29
38
|
method = "GET",
|
|
30
39
|
query,
|
|
@@ -38,7 +47,7 @@ var request = async ({
|
|
|
38
47
|
}
|
|
39
48
|
;
|
|
40
49
|
const isForm = type === "form";
|
|
41
|
-
const response = await
|
|
50
|
+
const response = await fetcher(fullUrl.toString(), {
|
|
42
51
|
method,
|
|
43
52
|
headers: {
|
|
44
53
|
"Content-Type": isForm ? "application/x-www-form-urlencoded" : "application/json",
|
package/dist/http.d.cts
CHANGED
|
@@ -13,6 +13,15 @@ const DEFAULT_TIMEOUT_MS = 15000;
|
|
|
13
13
|
|
|
14
14
|
const request = async ({
|
|
15
15
|
body,
|
|
16
|
+
// THE TRANSPORT, injectable and defaulted to the real one.
|
|
17
|
+
//
|
|
18
|
+
// Every other vendor client in this package takes a `fetcher` — it is how
|
|
19
|
+
// klaviyo, mailchimp and attentive are tested without a network, and it is a
|
|
20
|
+
// declared HOOK_OPTION. The Shopify client had no seam at all, so the only way
|
|
21
|
+
// to test a hook that used it was to inject the whole SDK namespace; that
|
|
22
|
+
// injection existed to work around an import cycle, and when the cycle went
|
|
23
|
+
// the tests lost their only hold. This is the seam they should have had.
|
|
24
|
+
fetcher = fetch,
|
|
16
25
|
headers = {},
|
|
17
26
|
method = 'GET',
|
|
18
27
|
query,
|
|
@@ -30,7 +39,7 @@ const request = async ({
|
|
|
30
39
|
}
|
|
31
40
|
const isForm = type === 'form';
|
|
32
41
|
|
|
33
|
-
const response = await
|
|
42
|
+
const response = await fetcher( fullUrl.toString(), {
|
|
34
43
|
method,
|
|
35
44
|
headers : {
|
|
36
45
|
'Content-Type' : isForm
|
package/dist/http.d.ts
CHANGED
|
@@ -13,6 +13,15 @@ const DEFAULT_TIMEOUT_MS = 15000;
|
|
|
13
13
|
|
|
14
14
|
const request = async ({
|
|
15
15
|
body,
|
|
16
|
+
// THE TRANSPORT, injectable and defaulted to the real one.
|
|
17
|
+
//
|
|
18
|
+
// Every other vendor client in this package takes a `fetcher` — it is how
|
|
19
|
+
// klaviyo, mailchimp and attentive are tested without a network, and it is a
|
|
20
|
+
// declared HOOK_OPTION. The Shopify client had no seam at all, so the only way
|
|
21
|
+
// to test a hook that used it was to inject the whole SDK namespace; that
|
|
22
|
+
// injection existed to work around an import cycle, and when the cycle went
|
|
23
|
+
// the tests lost their only hold. This is the seam they should have had.
|
|
24
|
+
fetcher = fetch,
|
|
16
25
|
headers = {},
|
|
17
26
|
method = 'GET',
|
|
18
27
|
query,
|
|
@@ -30,7 +39,7 @@ const request = async ({
|
|
|
30
39
|
}
|
|
31
40
|
const isForm = type === 'form';
|
|
32
41
|
|
|
33
|
-
const response = await
|
|
42
|
+
const response = await fetcher( fullUrl.toString(), {
|
|
34
43
|
method,
|
|
35
44
|
headers : {
|
|
36
45
|
'Content-Type' : isForm
|
package/dist/http.js
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
var DEFAULT_TIMEOUT_MS = 15e3;
|
|
3
3
|
var request = async ({
|
|
4
4
|
body,
|
|
5
|
+
// THE TRANSPORT, injectable and defaulted to the real one.
|
|
6
|
+
//
|
|
7
|
+
// Every other vendor client in this package takes a `fetcher` — it is how
|
|
8
|
+
// klaviyo, mailchimp and attentive are tested without a network, and it is a
|
|
9
|
+
// declared HOOK_OPTION. The Shopify client had no seam at all, so the only way
|
|
10
|
+
// to test a hook that used it was to inject the whole SDK namespace; that
|
|
11
|
+
// injection existed to work around an import cycle, and when the cycle went
|
|
12
|
+
// the tests lost their only hold. This is the seam they should have had.
|
|
13
|
+
fetcher = fetch,
|
|
5
14
|
headers = {},
|
|
6
15
|
method = "GET",
|
|
7
16
|
query,
|
|
@@ -15,7 +24,7 @@ var request = async ({
|
|
|
15
24
|
}
|
|
16
25
|
;
|
|
17
26
|
const isForm = type === "form";
|
|
18
|
-
const response = await
|
|
27
|
+
const response = await fetcher(fullUrl.toString(), {
|
|
19
28
|
method,
|
|
20
29
|
headers: {
|
|
21
30
|
"Content-Type": isForm ? "application/x-www-form-urlencoded" : "application/json",
|