signway 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -18
  2. package/package.json +3 -1
package/dist/index.js CHANGED
@@ -1,18 +1 @@
1
- export const SignIn = Object.freeze({
2
- withMagicLink: (email) => ({ method: "magic-link", email }),
3
- withPasskey: () => ({ method: "passkey" }),
4
- });
5
- export const SignUp = Object.freeze({
6
- withMagicLink: (email) => ({ method: "magic-link", email }),
7
- withPasskey: () => ({ method: "passkey" }),
8
- });
9
- export const Account = Object.freeze({
10
- create: (account) => Object.freeze({ ...account }),
11
- });
12
- export const Session = Object.freeze({
13
- create: (session) => Object.freeze({ ...session, methods: Object.freeze([...session.methods]) }),
14
- });
15
- export const Passkey = Object.freeze({
16
- signIn: () => ({ method: "passkey" }),
17
- register: () => ({ method: "passkey" }),
18
- });
1
+ const t=Object.freeze({withMagicLink:e=>({method:"magic-link",email:e}),withPasskey:()=>({method:"passkey"})}),s=Object.freeze({withMagicLink:e=>({method:"magic-link",email:e}),withPasskey:()=>({method:"passkey"})}),c=Object.freeze({create:e=>Object.freeze({...e})}),o=Object.freeze({create:e=>Object.freeze({...e,methods:Object.freeze([...e.methods])})}),r=Object.freeze({signIn:()=>({method:"passkey"}),register:()=>({method:"passkey"})});export{c as Account,r as Passkey,o as Session,t as SignIn,s as SignUp};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signway",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Small, framework-neutral primitives for application authentication handoffs.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,6 +19,8 @@
19
19
  "sideEffects": false,
20
20
  "scripts": {
21
21
  "build": "tsc --project tsconfig.json",
22
+ "postbuild": "npm run dist --prefix \"$npm_config_local_prefix\" -- \"$PWD\"",
23
+ "prepack": "npm run build",
22
24
  "prepublishOnly": "npm run build"
23
25
  },
24
26
  "keywords": [