Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onefootprint/footprint-js

Package Overview
Dependencies
Maintainers
3
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onefootprint/footprint-js - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

dist/@types/global.d.ts

54

dist/index.d.ts

@@ -1,51 +0,5 @@

declare type Footprint = {
init(options?: {
publicKey?: string;
}): void;
show(callback?: {
onAuthenticated?: (vtok: string) => void;
onCompleted?: (validationToken: string) => void;
onUserCanceled?: () => void;
}): Promise<void>;
createButton(container: HTMLElement): HTMLButtonElement;
declare const footprint: {
show: ({ publicKey, onCompleted, onCanceled }: import("./footprint-types").ShowFootprint) => Promise<void>;
};
declare enum FootprintEvents {
authenticated = "authenticated",
closed = "closed",
completed = "completed",
userCanceled = "userCanceled"
}
declare type FootprintEvent = FootprintEvents;
declare type OpenOptions = {
url: string;
};
declare type UIManager = {
createButton(container: HTMLElement): HTMLButtonElement;
on(eventName: FootprintEvent, callback: (data?: any) => void): void;
show(option?: OpenOptions): Promise<void>;
hide(option?: OpenOptions): void;
};
declare class export_default implements Footprint {
private url;
private uiManager;
private publicKey;
private flow;
constructor(url: string, uiManager: UIManager);
init(options?: {
publicKey?: string;
}): void;
private onAuthenticated;
private onCompleted;
private onUserCanceled;
show(callback?: {
onAuthenticated?: (vtok: string) => void;
onCompleted?: (validationToken: string) => void;
onUserCanceled?: () => void;
}): Promise<void>;
createButton(container: HTMLElement): HTMLButtonElement;
}
declare const footprint: export_default;
export { footprint as default };
export default footprint;
//# sourceMappingURL=index.d.ts.map
{
"name": "@onefootprint/footprint-js",
"private": false,
"version": "0.0.3",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"type": "module",
"version": "0.0.4",
"main": "./dist/footprint-js.umd.cjs",
"module": "./dist/footprint-js.js",
"types": "./dist/footprint-js.d.ts",
"exports": {
".": {
"import": "./dist/footprint-js.js",
"require": "./dist/footprint-js.umd.cjs",
"types": "./dist/footprint-js.d.ts"
},
"./dist/style.css": {
"import": "./dist/style.css",
"require": "./dist/style.css"
}
},
"sideEffects": false,
"license": "MIT",
"files": [
"dist/**"
"dist"
],
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts --minify",
"dev": "tsup src/index.ts --format esm,cjs --watch --dts",
"dev": "vite",
"build": "yarn typecheck && vite build",
"lint": "eslint src --fix",

@@ -21,10 +33,11 @@ "typecheck": "yarn tsc --noEmit",

"devDependencies": {
"@onefootprint/jest-presets": "*",
"@onefootprint/types": "*",
"@types/postmate": "^1.5.2",
"eslint-config-footprint": "*",
"jest-presets": "*",
"postmate": "^1.5.2",
"tsconfig": "*",
"tsup": "^6.2.2",
"types": "*",
"typescript": "^4.7.4"
"typescript": "4.8.4",
"vite": "^3.1.7",
"vite-plugin-dts": "^1.6.5"
},

@@ -35,4 +48,4 @@ "publishConfig": {

"jest": {
"preset": "jest-presets/jest/web"
"preset": "@onefootprint/jest-presets/jest/web"
}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc