Skip to content

Commit

Permalink
Add compiled assets
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattMufson committed Aug 26, 2024
1 parent 9dc783b commit 7725a9b
Show file tree
Hide file tree
Showing 24 changed files with 315 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.idea

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down Expand Up @@ -82,7 +81,7 @@ web_modules/

# Nuxt.js build / generate output
.nuxt
dist
# dist

# Gatsby files
.cache/
Expand Down Expand Up @@ -115,8 +114,8 @@ dist
.yarn/build-state.yml
.pnp.*

build
prebuilds
# build
# prebuilds

# Mac storage
.DS_Store
7 changes: 4 additions & 3 deletions .gitignore.prebuild → .gitignore.main
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.idea

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down Expand Up @@ -81,7 +82,7 @@ web_modules/

# Nuxt.js build / generate output
.nuxt
# dist
dist

# Gatsby files
.cache/
Expand Down Expand Up @@ -114,8 +115,8 @@ web_modules/
.yarn/build-state.yml
.pnp.*

# build
# prebuilds
build
prebuilds

# Mac storage
.DS_Store
2 changes: 2 additions & 0 deletions dist/demo/electron-demo.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=electron-demo.d.ts.map
1 change: 1 addition & 0 deletions dist/demo/electron-demo.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions dist/demo/electron-demo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/demo/electron-demo.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/demo/preload.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=preload.d.ts.map
1 change: 1 addition & 0 deletions dist/demo/preload.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions dist/demo/preload.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/demo/preload.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { IpcMain, IpcRenderer } from 'electron';
declare class Passkey {
private static instance;
private handler;
private platform;
private domain;
private constructor();
static getInstance(): Passkey;
private handlePasskeyCreate;
private handlePasskeyGet;
attachCreateToRenderer(ipcRenderer: IpcRenderer, options: any): Promise<PublicKeyCredential>;
attachGetToRenderer(ipcRenderer: IpcRenderer, options: any): Promise<PublicKeyCredential>;
attachHandlersToMain(domain: string, ipcMain: IpcMain): void;
static getPackageName(): string;
}
export = Passkey;
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions dist/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
export interface PublicKeyCredentialCreationOptions {
rp: {
id: string;
name: string;
};
user: {
id: ArrayBuffer | string;
name: string;
displayName: string;
};
challenge: ArrayBuffer | string;
pubKeyCredParams: Array<{
type: string;
alg: number;
}>;
timeout?: number;
authenticatorSelection?: {
authenticatorAttachment?: 'platform' | 'cross-platform';
requireResidentKey?: boolean;
userVerification?: 'required' | 'preferred' | 'discouraged';
};
attestation?: 'none' | 'indirect' | 'direct' | 'enterprise';
extensions?: AuthenticationExtensionsClientInputs;
}
type ExtendedAuthenticatorTransport = AuthenticatorTransport | 'smart-card';
interface CredentialDescriptor {
id: string;
transports: ExtendedAuthenticatorTransport[];
}
export interface PublicKeyCredentialRequestOptions {
rpId?: string;
challenge: Buffer;
allowCredentials?: Array<CredentialDescriptor>;
userVerification?: 'required' | 'preferred' | 'discouraged';
timeout?: number;
extensions?: AuthenticationExtensionsClientInputs;
}
export interface PasskeyOptions {
publicKey: PublicKeyCredentialCreationOptions | PublicKeyCredentialRequestOptions;
mediation?: 'conditional';
signal?: AbortSignal;
}
export interface PasskeyHandler {
HandlePasskeyCreate(options: string): Promise<string>;
HandlePasskeyGet(options: string): Promise<string>;
}
export interface PasskeyInterface {
PasskeyHandler: new () => PasskeyHandler;
}
export {};
//# sourceMappingURL=types.d.ts.map
1 change: 1 addition & 0 deletions dist/types.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/types.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/types.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dist/utils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export declare function arrayBufferToBase64(buffer: ArrayBuffer): string;
export declare function base64ToArrayBuffer(base64: string): ArrayBuffer;
export declare function mapPublicKey(rawString: string, isCreate: boolean): PublicKeyCredential;
export declare enum PassKeyMethods {
createPasskey = "create-passkey",
getPasskey = "get-passkey"
}
//# sourceMappingURL=utils.d.ts.map
1 change: 1 addition & 0 deletions dist/utils.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7725a9b

Please sign in to comment.