noxon
Version:
Better JSON parsing and manipulation in TypeScript.
201 lines (200 loc) • 2.85 kB
JavaScript
const prohibitedKeysAdvanced = /* @__PURE__ */ new Set([
"2fa",
"access",
"access-token",
"access_key",
"access_key_id",
"account-number",
"address",
"admin",
"admin-password",
"admin_token",
"age",
"api-key",
"api_secret",
"api_secret_key",
"apikey",
"application-id",
"auth",
"auth-code",
"auth_token",
"authentication",
"avatar",
"bank",
"bank-account",
"bic",
"billing",
"birth-date",
"birthdate",
"birthyear",
"biometric",
"blob",
"body",
"card-number",
"cc",
"ccn",
"city",
"client_id",
"client_secret",
"cloud_key",
"cloud_secret",
"config",
"configuration",
"constant",
"contact",
"cookie",
"country",
"credentials",
"credit-card",
"cvc",
"cvv",
"data",
"debug",
"device_id",
"device_token",
"dir",
"directory",
"display-name",
"dob",
"dump",
"e-mail",
"email",
"env",
"environment",
"error",
"exception",
"fax",
"file-path",
"filename",
"fingerprint",
"first-name",
"fullname",
"gender",
"geo",
"grant_type",
"handle",
"hardware_id",
"home-address",
"iban",
"id",
"ip",
"ip_address",
"jwt",
"key",
"key_id",
"lat",
"license",
"lng",
"location",
"log",
"logs",
"login",
"mac",
"mac_address",
"mail",
"message",
"meta",
"metadata",
"mfa",
"mobile",
"mother-maiden-name",
"msg",
"multi-factor",
"national-id",
"nickname",
"oauth_token",
"openid",
"otp",
"parent-name",
"passport",
"path",
"payment",
"payload",
"paypal",
"personal-id",
"phone",
"phone-number",
"pin",
"postal-code",
"private",
"private-key",
"private_token",
"profile",
"profile_image",
"public-id",
"public-key",
"pwd",
"realname",
"recovery-email",
"refresh-token",
"refresh_token_expiry",
"residence",
"reset-code",
"routing-number",
"secret",
"secret-key",
"security",
"security-question",
"security_answer",
"serial_number",
"session",
"session-id",
"signing_key",
"skin",
"social-security-number",
"social_token",
"source_ip",
"ssn",
"ssn_last4",
"stack",
"state",
"subnet",
"swift",
"tax_id",
"tel",
"tenant_id",
"theme",
"timezone",
"token",
"user",
"user-agent",
"user-id",
"user_email",
"user_password",
"userid",
"username",
"uuid",
"variable",
"var",
"verification_code",
"voiceprint",
"wallet",
"webhook",
"webhook_secret",
"zip",
"zip_code"
]);
const prohibitedKeysBasic = /* @__PURE__ */ new Set([
"password",
"token",
"secret",
"secret-key",
"private",
"private-key",
"private_token",
"pin",
"ssn",
"social-security-number",
"ip",
"ip_address",
"cookie",
"admin-password",
"admin_token",
"card-number",
"cc",
"ccn"
]);
export {
prohibitedKeysAdvanced,
prohibitedKeysBasic
};