@drawbridge/drawbridge-utils 0.0.175 → 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/plans.d.cts CHANGED
@@ -1,11 +1,30 @@
1
- import { organization, page, connection, fields, field } from './features.cjs';
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
- connection.attentive.key,
63
- connection.klaviyo.key,
64
- connection.mailchimp.key,
65
- connection.sendgrid.key,
66
- connection.shopify.key,
67
- connection.twilio.key,
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, connection, fields, field } from './features.js';
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
- connection.attentive.key,
63
- connection.klaviyo.key,
64
- connection.mailchimp.key,
65
- connection.sendgrid.key,
66
- connection.shopify.key,
67
- connection.twilio.key,
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,