@drawbridge/drawbridge-utils 0.0.174 → 0.0.176
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/connections/index.cjs +3202 -1831
- package/dist/connections/index.d.cts +11 -8866
- package/dist/connections/index.d.ts +11 -8866
- package/dist/connections/index.js +3183 -1827
- package/dist/connections/oauth.cjs +4 -4
- package/dist/connections/oauth.d.cts +10 -8
- package/dist/connections/oauth.d.ts +10 -8
- package/dist/connections/oauth.js +4 -4
- package/dist/features.cjs +7546 -42
- package/dist/features.d.cts +46 -42
- package/dist/features.d.ts +46 -42
- package/dist/features.js +7534 -42
- package/dist/index-B8JhYfvU.d.ts +11928 -0
- package/dist/index-qY18QITf.d.cts +11928 -0
- package/dist/plans.cjs +7542 -51
- package/dist/plans.d.cts +28 -10
- package/dist/plans.d.ts +28 -10
- package/dist/plans.js +7542 -51
- package/dist/pricing.cjs +7687 -209
- package/dist/pricing.d.cts +25 -17
- package/dist/pricing.d.ts +25 -17
- package/dist/pricing.js +7687 -209
- package/dist/providers.cjs +3084 -1891
- package/dist/providers.d.cts +8 -19
- package/dist/providers.d.ts +8 -19
- package/dist/providers.js +3081 -1888
- package/package.json +1 -1
package/dist/plans.d.cts
CHANGED
|
@@ -1,11 +1,30 @@
|
|
|
1
|
-
import { organization, page,
|
|
1
|
+
import { organization, page, fields, field, connection } from './features.cjs';
|
|
2
2
|
import { infinite, gigabyte } from './index.cjs';
|
|
3
|
+
import './index-qY18QITf.cjs';
|
|
4
|
+
import './usage.cjs';
|
|
5
|
+
import './connections/oauth.cjs';
|
|
6
|
+
import 'node:crypto';
|
|
7
|
+
import './phone.cjs';
|
|
8
|
+
import 'libphonenumber-js';
|
|
9
|
+
import './http.cjs';
|
|
10
|
+
import 'nanoid';
|
|
11
|
+
import './email.cjs';
|
|
12
|
+
import './encrypt.cjs';
|
|
13
|
+
import 'crypto';
|
|
14
|
+
import './token.cjs';
|
|
15
|
+
import './slugify.cjs';
|
|
16
|
+
import 'slugify';
|
|
17
|
+
import './safe-http.cjs';
|
|
18
|
+
import 'dns';
|
|
19
|
+
import 'node:http';
|
|
20
|
+
import 'node:https';
|
|
21
|
+
import './axios.cjs';
|
|
22
|
+
import 'axios';
|
|
23
|
+
import 'net';
|
|
3
24
|
import 'currency-codes';
|
|
4
25
|
import './color.cjs';
|
|
5
26
|
import 'tinycolor2';
|
|
6
27
|
import './nanoid.cjs';
|
|
7
|
-
import 'nanoid';
|
|
8
|
-
import './usage.cjs';
|
|
9
28
|
|
|
10
29
|
const featuresFor = ( array = [] ) => Object.values({
|
|
11
30
|
...connection,
|
|
@@ -59,13 +78,12 @@ const unitAmountDecimal = ( cents ) => {
|
|
|
59
78
|
|
|
60
79
|
const all = {
|
|
61
80
|
features : ( array = [] ) => featuresFor([
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
connection.
|
|
68
|
-
connection.webhook.key,
|
|
81
|
+
// EVERY CONNECTION, DERIVED. It was seven names typed out, and two of them
|
|
82
|
+
// — sendgrid and twilio — are VENDORS with no manifest, so the top plan
|
|
83
|
+
// granted access to two connections that do not exist. The list had also
|
|
84
|
+
// been short in the other direction: Klaviyo shipped with no entry, so no
|
|
85
|
+
// plan granted its key and the gate denied every non-admin request.
|
|
86
|
+
...Object.values( connection ).map( ( entry ) => entry.key ),
|
|
69
87
|
organization.affiliates.key,
|
|
70
88
|
organization.brands.key,
|
|
71
89
|
fields.additional.key,
|
package/dist/plans.d.ts
CHANGED
|
@@ -1,11 +1,30 @@
|
|
|
1
|
-
import { organization, page,
|
|
1
|
+
import { organization, page, fields, field, connection } from './features.js';
|
|
2
2
|
import { infinite, gigabyte } from './index.js';
|
|
3
|
+
import './index-B8JhYfvU.js';
|
|
4
|
+
import './usage.js';
|
|
5
|
+
import './connections/oauth.js';
|
|
6
|
+
import 'node:crypto';
|
|
7
|
+
import './phone.js';
|
|
8
|
+
import 'libphonenumber-js';
|
|
9
|
+
import './http.js';
|
|
10
|
+
import 'nanoid';
|
|
11
|
+
import './email.js';
|
|
12
|
+
import './encrypt.js';
|
|
13
|
+
import 'crypto';
|
|
14
|
+
import './token.js';
|
|
15
|
+
import './slugify.js';
|
|
16
|
+
import 'slugify';
|
|
17
|
+
import './safe-http.js';
|
|
18
|
+
import 'dns';
|
|
19
|
+
import 'node:http';
|
|
20
|
+
import 'node:https';
|
|
21
|
+
import './axios.js';
|
|
22
|
+
import 'axios';
|
|
23
|
+
import 'net';
|
|
3
24
|
import 'currency-codes';
|
|
4
25
|
import './color.js';
|
|
5
26
|
import 'tinycolor2';
|
|
6
27
|
import './nanoid.js';
|
|
7
|
-
import 'nanoid';
|
|
8
|
-
import './usage.js';
|
|
9
28
|
|
|
10
29
|
const featuresFor = ( array = [] ) => Object.values({
|
|
11
30
|
...connection,
|
|
@@ -59,13 +78,12 @@ const unitAmountDecimal = ( cents ) => {
|
|
|
59
78
|
|
|
60
79
|
const all = {
|
|
61
80
|
features : ( array = [] ) => featuresFor([
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
connection.
|
|
68
|
-
connection.webhook.key,
|
|
81
|
+
// EVERY CONNECTION, DERIVED. It was seven names typed out, and two of them
|
|
82
|
+
// — sendgrid and twilio — are VENDORS with no manifest, so the top plan
|
|
83
|
+
// granted access to two connections that do not exist. The list had also
|
|
84
|
+
// been short in the other direction: Klaviyo shipped with no entry, so no
|
|
85
|
+
// plan granted its key and the gate denied every non-admin request.
|
|
86
|
+
...Object.values( connection ).map( ( entry ) => entry.key ),
|
|
69
87
|
organization.affiliates.key,
|
|
70
88
|
organization.brands.key,
|
|
71
89
|
fields.additional.key,
|