@hellocoop/constants
Advanced tools
+6
-5
| { | ||
| "name": "@hellocoop/constants", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Constants for Hellō https://hello.dev", | ||
@@ -11,5 +11,5 @@ "repository": { | ||
| "exports": { | ||
| ".": "./constants.js" | ||
| ".": "./dist/constants.js" | ||
| }, | ||
| "types": "./constants.d.ts", | ||
| "types": "./dist/constants.d.ts", | ||
| "files": [ | ||
@@ -36,3 +36,3 @@ "constants.d.ts", | ||
| "watch": "tsc --watch --declaration", | ||
| "build": "tsc --declaration" | ||
| "build": "rimraf dist/ && tsc --declaration" | ||
| }, | ||
@@ -43,4 +43,5 @@ "engines": { | ||
| "devDependencies": { | ||
| "@hellocoop/types": "latest" | ||
| "@hellocoop/types": "*", | ||
| "rimraf": "^5.0.1" | ||
| } | ||
| } |
| import { Auth, AuthResponseMode, AuthResponseType, Scope } from "@hellocoop/types"; | ||
| export declare const PRODUCTION_WALLET: string; | ||
| export declare const DEFAULT_SCOPE: Scope[]; | ||
| export declare const DEFAULT_RESPONSE_TYPE: AuthResponseType; | ||
| export declare const DEFAULT_RESPONSE_MODE: AuthResponseMode; | ||
| export declare const DEFAULT_PATH: string; | ||
| export declare const VALID_IDENTITY_CLAIMS: readonly ["name", "nickname", "preferred_username", "given_name", "family_name", "email", "phone", "picture", "ethereum", "discord", "twitter", "github", "gitlab"]; | ||
| export declare const VALID_SCOPES: readonly ["name", "nickname", "preferred_username", "given_name", "family_name", "email", "phone", "picture", "ethereum", "discord", "twitter", "github", "gitlab", "openid", "profile_update"]; | ||
| export declare const VALID_RESPONSE_TYPE: readonly ["id_token", "code"]; | ||
| export declare const VALID_RESPONSE_MODE: string[]; | ||
| export declare const VALID_PROVIDER_HINT: readonly ["apple", "discord", "facebook", "github", "gitlab", "google", "twitch", "twitter", "tumblr", "mastodon", "microsoft", "line", "wordpress", "yahoo", "phone", "ethereum", "qrcode", "apple--", "microsoft--", "google--", "email--", "passkey--"]; | ||
| export declare const CLASS_MAPPING: { | ||
| black: { | ||
| "ignore-light": string; | ||
| "ignore-dark": string; | ||
| "aware-invert": string; | ||
| "aware-static": string; | ||
| }; | ||
| white: { | ||
| "ignore-light": string; | ||
| "ignore-dark": string; | ||
| "aware-invert": string; | ||
| "aware-static": string; | ||
| }; | ||
| }; | ||
| export declare namespace Button { | ||
| type Color = "black" | "white"; | ||
| type Theme = "ignore-light" | "ignore-dark" | "aware-invert" | "aware-static"; | ||
| type Hover = "pop" | "glow" | "flare" | "none"; | ||
| type UpdateScope = "email" | "picture" | "twitter" | "discord" | "github" | "gitlab"; | ||
| const STYLES_URL = "https://cdn.hello.coop/css/hello-btn.css"; | ||
| const HOVER_MAPPING: { | ||
| pop: string; | ||
| glow: string; | ||
| flare: string; | ||
| none: string; | ||
| }; | ||
| } | ||
| export declare const NotLoggedIn: Auth; | ||
| //# sourceMappingURL=constants.d.ts.map |
-85
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.NotLoggedIn = exports.Button = exports.CLASS_MAPPING = exports.VALID_PROVIDER_HINT = exports.VALID_RESPONSE_MODE = exports.VALID_RESPONSE_TYPE = exports.VALID_SCOPES = exports.VALID_IDENTITY_CLAIMS = exports.DEFAULT_PATH = exports.DEFAULT_RESPONSE_MODE = exports.DEFAULT_RESPONSE_TYPE = exports.DEFAULT_SCOPE = exports.PRODUCTION_WALLET = void 0; | ||
| exports.PRODUCTION_WALLET = 'https://wallet.hello.coop'; | ||
| exports.DEFAULT_SCOPE = ['openid', 'name', 'email', 'picture']; | ||
| exports.DEFAULT_RESPONSE_TYPE = 'code'; | ||
| exports.DEFAULT_RESPONSE_MODE = 'query'; | ||
| exports.DEFAULT_PATH = '/authorize?'; | ||
| exports.VALID_IDENTITY_CLAIMS = [ | ||
| 'name', | ||
| 'nickname', | ||
| 'preferred_username', | ||
| 'given_name', | ||
| 'family_name', | ||
| 'email', | ||
| 'phone', | ||
| 'picture', | ||
| // Hellō extensions -- non-standard claims | ||
| 'ethereum', | ||
| 'discord', | ||
| 'twitter', | ||
| 'github', | ||
| 'gitlab' | ||
| ]; | ||
| exports.VALID_SCOPES = [ | ||
| ...exports.VALID_IDENTITY_CLAIMS, | ||
| 'openid', | ||
| // Hellō extensions -- non-standard scopes | ||
| 'profile_update', | ||
| ]; | ||
| exports.VALID_RESPONSE_TYPE = ['id_token', 'code']; // Default: 'code' | ||
| exports.VALID_RESPONSE_MODE = ['fragment', 'query', 'form_post']; // Default: 'query' | ||
| exports.VALID_PROVIDER_HINT = [ | ||
| // 'google' and 'email' are always in default | ||
| // 'apple' added if on Apple OS | ||
| // 'microsoft' added if on Microsoft OS | ||
| 'apple', | ||
| 'discord', | ||
| 'facebook', | ||
| 'github', | ||
| 'gitlab', | ||
| 'google', | ||
| 'twitch', | ||
| 'twitter', | ||
| 'tumblr', | ||
| 'mastodon', | ||
| 'microsoft', | ||
| 'line', | ||
| 'wordpress', | ||
| 'yahoo', | ||
| 'phone', | ||
| 'ethereum', | ||
| 'qrcode', | ||
| // the following will remove provider from recommended list | ||
| 'apple--', | ||
| 'microsoft--', | ||
| 'google--', | ||
| 'email--', | ||
| 'passkey--', | ||
| ]; | ||
| exports.CLASS_MAPPING = { | ||
| black: { | ||
| "ignore-light": "", | ||
| "ignore-dark": "hello-btn-black-on-dark", | ||
| "aware-invert": "hello-btn-black-and-invert", | ||
| "aware-static": "hello-btn-black-and-static" | ||
| }, | ||
| white: { | ||
| "ignore-light": "hello-btn-white-on-light", | ||
| "ignore-dark": "hello-btn-white-on-dark", | ||
| "aware-invert": "hello-btn-white-and-invert", | ||
| "aware-static": "hello-btn-white-and-static" | ||
| }, | ||
| }; | ||
| var Button; | ||
| (function (Button) { | ||
| Button.STYLES_URL = 'https://cdn.hello.coop/css/hello-btn.css'; | ||
| Button.HOVER_MAPPING = { | ||
| "pop": "", | ||
| "glow": "hello-btn-hover-glow", | ||
| "flare": "hello-btn-hover-flare", | ||
| "none": "hello-btn-hover-none" | ||
| }; | ||
| })(Button || (exports.Button = Button = {})); | ||
| exports.NotLoggedIn = { isLoggedIn: false }; |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
0
-100%981
-82.77%2
100%2
-50%0
-100%1
Infinity%