@stripe/extensibility-eslint-plugin 0.15.4 → 0.15.5

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.
Files changed (32) hide show
  1. package/dist/configs/async-with-egress.cjs +11 -0
  2. package/dist/configs/async-with-egress.js +11 -0
  3. package/dist/configs/billing.bill.discount_calculation.cjs +11 -0
  4. package/dist/configs/billing.bill.discount_calculation.js +11 -0
  5. package/dist/configs/billing.customer_balance_application.cjs +11 -0
  6. package/dist/configs/billing.customer_balance_application.js +11 -0
  7. package/dist/configs/billing.invoice_collection_setting.cjs +11 -0
  8. package/dist/configs/billing.invoice_collection_setting.js +11 -0
  9. package/dist/configs/billing.prorations.cjs +11 -0
  10. package/dist/configs/billing.prorations.js +11 -0
  11. package/dist/configs/billing.recurring_billing_item_handling.cjs +11 -0
  12. package/dist/configs/billing.recurring_billing_item_handling.js +11 -0
  13. package/dist/configs/core.workflows.custom_action.cjs +11 -0
  14. package/dist/configs/core.workflows.custom_action.js +11 -0
  15. package/dist/configs/custom-objects.cjs +11 -0
  16. package/dist/configs/custom-objects.js +11 -0
  17. package/dist/configs/extend.objects.custom_objects.cjs +11 -0
  18. package/dist/configs/extend.objects.custom_objects.js +11 -0
  19. package/dist/configs/extend.workflows.custom_action.cjs +11 -0
  20. package/dist/configs/extend.workflows.custom_action.js +11 -0
  21. package/dist/configs/runtime-core.cjs +11 -0
  22. package/dist/configs/runtime-core.js +11 -0
  23. package/dist/configs/sync-no-egress.cjs +11 -0
  24. package/dist/configs/sync-no-egress.js +11 -0
  25. package/dist/index.cjs +11 -0
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +11 -0
  28. package/dist/rule-config.d.ts.map +1 -1
  29. package/dist/security-rules/no-secrets.d.ts +13 -0
  30. package/dist/security-rules/no-secrets.d.ts.map +1 -1
  31. package/dist/tsconfig.build.tsbuildinfo +1 -1
  32. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -36860,6 +36860,16 @@ var originalRule = noSecrets.rules["no-secrets"];
36860
36860
  if (!originalRule) {
36861
36861
  throw new Error("Expected rule 'no-secrets' not found in eslint-plugin-no-secrets");
36862
36862
  }
36863
+ var noSecretsOptions = {
36864
+ tolerance: 5,
36865
+ // High enough to avoid false-positives on normal identifiers.
36866
+ ignoreModules: true,
36867
+ additionalRegexes: {
36868
+ "Stripe Secret Key": "sk_(live|test)_[a-zA-Z0-9]{20,}",
36869
+ "Stripe Restricted Key": "rk_(live|test)_[a-zA-Z0-9]{20,}",
36870
+ "Stripe Webhook Secret": "whsec_[a-zA-Z0-9+/=]{20,}"
36871
+ }
36872
+ };
36863
36873
  var rule16 = {
36864
36874
  ...originalRule,
36865
36875
  meta: {
@@ -37262,6 +37272,7 @@ var _requiredRules = {
37262
37272
  "no-unmodified-loop-condition": "warn",
37263
37273
  "no-constant-condition": "warn",
37264
37274
  "for-direction": "warn",
37275
+ [`${_PLUGIN_NAME}/no-secrets`]: ["error", noSecretsOptions],
37265
37276
  [`${_PLUGIN_NAME}/valid-extension-interface`]: "warn"
37266
37277
  };
37267
37278
  var _recommendedRules = {
@@ -1 +1 @@
1
- {"version":3,"file":"rule-config.d.ts","sourceRoot":"","sources":["../src/rule-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAG7C;;;GAGG;AACH,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAE9C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAcnC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,WAetC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,WAMjC,CAAC"}
1
+ {"version":3,"file":"rule-config.d.ts","sourceRoot":"","sources":["../src/rule-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAI7C;;;GAGG;AACH,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAE9C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAenC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,WAetC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,WAMjC,CAAC"}
@@ -1,4 +1,17 @@
1
1
  import type { Rule } from 'eslint';
2
+ /**
3
+ * Options for the no-secrets rule. Secrets must go through the secrets injection system.
4
+ * @internal
5
+ */
6
+ export declare const noSecretsOptions: {
7
+ tolerance: number;
8
+ ignoreModules: boolean;
9
+ additionalRegexes: {
10
+ 'Stripe Secret Key': string;
11
+ 'Stripe Restricted Key': string;
12
+ 'Stripe Webhook Secret': string;
13
+ };
14
+ };
2
15
  /**
3
16
  * A wrapper around the community no-secrets ESLint rule that redacts
4
17
  * secret values from error messages. The original rule includes the
@@ -1 +1 @@
1
- {"version":3,"file":"no-secrets.d.ts","sourceRoot":"","sources":["../../src/security-rules/no-secrets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAYnC;;;;GAIG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAShB,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"no-secrets.d.ts","sourceRoot":"","sources":["../../src/security-rules/no-secrets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAYnC;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;CAQ5B,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAShB,CAAC;AAEF,eAAe,IAAI,CAAC"}