conare 0.23.0 → 0.23.1
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/cli/scrub.js +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/scrub.js
CHANGED
|
@@ -39,7 +39,19 @@ const RULES = [
|
|
|
39
39
|
re: /\bsk-[A-Za-z0-9][A-Za-z0-9_-]{19,}/g,
|
|
40
40
|
accept: (s) => hasDigit(s) && (/[A-Z]/.test(s) || s.length >= 35),
|
|
41
41
|
},
|
|
42
|
+
// Stripe and WorkOS secret and restricted keys (sk_live_, sk_test_, rk_…), Stripe webhook secrets.
|
|
43
|
+
{ kind: "api_key", re: /\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{20,}/g, accept: hasDigit },
|
|
44
|
+
{ kind: "webhook_secret", re: /\bwhsec_[A-Za-z0-9+/=]{24,}/g, accept: hasDigit },
|
|
42
45
|
{ kind: "github_token", re: /\b(?:gh[pousr]_[A-Za-z0-9]{30,}|github_pat_[A-Za-z0-9_]{30,})/g },
|
|
46
|
+
{ kind: "gitlab_token", re: /\bglpat-[A-Za-z0-9_-]{20,}/g },
|
|
47
|
+
{ kind: "npm_token", re: /\bnpm_[A-Za-z0-9]{36}\b/g, accept: hasDigit },
|
|
48
|
+
{ kind: "pypi_token", re: /\bpypi-AgE[A-Za-z0-9_-]{50,}/g },
|
|
49
|
+
{ kind: "sendgrid_key", re: /\bSG\.[A-Za-z0-9_-]{20,24}\.[A-Za-z0-9_-]{40,46}/g },
|
|
50
|
+
// Google OAuth access tokens (ya29.…) and refresh tokens (1//0…).
|
|
51
|
+
{ kind: "google_oauth_token", re: /\bya29\.[A-Za-z0-9_-]{20,}/g },
|
|
52
|
+
{ kind: "google_oauth_token", re: /(?<![\w/])1\/\/0[A-Za-z0-9_-]{30,}/g },
|
|
53
|
+
// A GCP service-account key file's private_key_id (40 hex); its private_key is a PEM block.
|
|
54
|
+
{ kind: "private_key_id", re: /(\bprivate_key_id["']?\s*[:=]\s*["']?)([a-f0-9]{40})\b/g, label: true },
|
|
43
55
|
{ kind: "aws_access_key", re: /\b(?:AKIA|ASIA)[A-Z0-9]{16}\b/g },
|
|
44
56
|
{ kind: "slack_token", re: /\bxox[abposr]-[A-Za-z0-9-]{10,}/g },
|
|
45
57
|
{ kind: "google_api_key", re: /\bAIza[0-9A-Za-z_-]{35}/g },
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "0.23.
|
|
1
|
+
export declare const VERSION = "0.23.1";
|
|
2
2
|
/** A metadata value: string, number, boolean or an array of strings. */
|
|
3
3
|
export type MetadataValue = string | number | boolean | string[];
|
|
4
4
|
export type Metadata = Record<string, MetadataValue>;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// conare: TypeScript client for the Conare API. Zero dependencies; uses global fetch.
|
|
2
|
-
export const VERSION = "0.23.
|
|
2
|
+
export const VERSION = "0.23.1";
|
|
3
3
|
const DEFAULT_BASE_URL = "https://api.conare.ai";
|
|
4
4
|
const BATCH_SIZE = 100;
|
|
5
5
|
// A JSON body this long or longer goes gzip-encoded: past the first ~14 KB a new connection may send,
|