@privy-io/expo 0.77.0 → 0.78.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@privy-io/expo",
3
- "version": "0.77.0",
3
+ "version": "0.78.0",
4
4
  "description": "Expo client for the Privy Auth API",
5
5
  "keywords": [
6
6
  "authentication",
@@ -54,6 +54,11 @@
54
54
  "require": "./dist/connectors.js",
55
55
  "import": "./dist/esm/connectors.js",
56
56
  "types": "./dist/connectors.d.ts"
57
+ },
58
+ "./polyfills": {
59
+ "require": "./dist/polyfills.js",
60
+ "import": "./dist/esm/polyfills.js",
61
+ "types": "./dist/polyfills.d.ts"
57
62
  }
58
63
  },
59
64
  "main": "./dist/esm/index.js",
@@ -70,11 +75,12 @@
70
75
  "not op_mini all"
71
76
  ],
72
77
  "dependencies": {
78
+ "@noble/curves": "^1.9.7",
73
79
  "@privy-io/api-types": "0.24.0",
74
80
  "@privy-io/are-addresses-equal": "0.0.17",
75
81
  "@privy-io/encoding": "0.4.0",
76
- "@privy-io/js-sdk-core": "0.79.1",
77
- "@privy-io/routes": "0.4.5",
82
+ "@privy-io/js-sdk-core": "0.79.2",
83
+ "@privy-io/routes": "0.5.0",
78
84
  "@scure/base": "^1.2.4",
79
85
  "react-fast-compare": "^3.2.2",
80
86
  "tweetnacl": "^1.0.3",
@@ -84,6 +90,8 @@
84
90
  "oxlint": "1.57.0",
85
91
  "oxlint-tsgolint": "0.18.0",
86
92
  "@faker-js/faker": "^8.3.1",
93
+ "@hpke/chacha20poly1305": "^1.7.1",
94
+ "@hpke/core": "^1.7.5",
87
95
  "@privy-io/eslint-plugin-privy-rules": "1.0.1",
88
96
  "@privy-io/tsconfig": "0.0.0",
89
97
  "@simplewebauthn/types": "9.0.1",
@@ -99,7 +107,6 @@
99
107
  "expo-apple-authentication": "57.0.2",
100
108
  "expo-application": "57.0.3",
101
109
  "expo-clipboard": "57.0.2",
102
- "expo-crypto": "57.0.4",
103
110
  "expo-linking": "57.0.12",
104
111
  "expo-secure-store": "57.0.4",
105
112
  "expo-web-browser": "57.0.3",
@@ -108,6 +115,9 @@
108
115
  "lucide-react-native": "^0.474.0",
109
116
  "react": "19.2.3",
110
117
  "react-native": "0.86.3",
118
+ "react-native-nitro-modules": "0.37.1",
119
+ "react-native-quick-base64": "3.0.1",
120
+ "react-native-quick-crypto": "1.1.8",
111
121
  "react-native-webview": "13.16.1",
112
122
  "react-test-renderer": "19.2.3",
113
123
  "tsup": "^6.2.3",
@@ -118,7 +128,6 @@
118
128
  "expo-apple-authentication": "*",
119
129
  "expo-application": "*",
120
130
  "expo-clipboard": "*",
121
- "expo-crypto": "*",
122
131
  "expo-linking": "*",
123
132
  "expo-secure-store": "*",
124
133
  "expo-web-browser": "*",
@@ -127,10 +136,11 @@
127
136
  "react-native": "*",
128
137
  "react-native-passkeys": "^0.4.0",
129
138
  "react-native-qrcode-styled": "0.3.3",
139
+ "react-native-quick-crypto": "^1.0.0",
130
140
  "react-native-safe-area-context": "*",
131
141
  "react-native-svg": "*",
132
142
  "react-native-webview": "*",
133
- "viem": "2.57.8"
143
+ "viem": "^2.57.8"
134
144
  },
135
145
  "peerDependenciesMeta": {
136
146
  "permissionless": {
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var y=Object.defineProperty,m=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var C=Math.pow,u=(e,r,t)=>r in e?y(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,L= exports.b =(e,r)=>{for(var t in r||(r={}))d.call(r,t)&&u(e,t,r[t]);if(i)for(var t of i(r))_.call(r,t)&&u(e,t,r[t]);return e},R= exports.c =(e,r)=>m(e,E(r));var f=(e,r)=>{var t={};for(var o in e)d.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&i)for(var o of i(e))r.indexOf(o)<0&&_.call(e,o)&&(t[o]=e[o]);return t};var s=(e,r,t)=>new Promise((o,l)=>{var I=n=>{try{c(t.next(n))}catch(p){l(p)}},g=n=>{try{c(t.throw(n))}catch(p){l(p)}},c=n=>n.done?o(n.value):Promise.resolve(n.value).then(I,g);c((t=t.apply(e,r)).next())});var _expoapplication = require('expo-application');var _exposecurestore = require('expo-secure-store'); var a = _interopRequireWildcard(_exposecurestore);var _jssdkcore = require('@privy-io/js-sdk-core');var k=()=>{if(typeof _expoapplication.applicationId!="string")throw new (0, _jssdkcore.PrivyClientError)({error:"Cannot determine native application ID. Please make sure `expo-application` is installed as a dependency and that `ios.bundleId` or `android.package` is set.",code:"invalid_native_app_id"});return _expoapplication.applicationId},S=/[:/]/g;function v(e){return{get(r){return e.get(r.replaceAll(S,"-"))},put(r,t){return e.put(r.replaceAll(S,"-"),t)},del(r){return e.del(r.replaceAll(S,"-"))},getKeys:()=>s(this,null,function*(){return[]})}}var K={get(e){return a.getItemAsync(e,{keychainAccessible:a.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY})},put(e,r){return a.setItemAsync(e,r,{keychainAccessible:a.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY})},del(e){return a.deleteItemAsync(e,{keychainAccessible:a.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY})},getKeys:()=>s(void 0,null,function*(){return[]})};exports.a = C; exports.b = L; exports.c = R; exports.d = f; exports.e = s; exports.f = k; exports.g = v; exports.h = K;
@@ -1 +0,0 @@
1
- var y=Object.defineProperty,m=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var C=Math.pow,u=(e,r,t)=>r in e?y(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,L=(e,r)=>{for(var t in r||(r={}))d.call(r,t)&&u(e,t,r[t]);if(i)for(var t of i(r))_.call(r,t)&&u(e,t,r[t]);return e},R=(e,r)=>m(e,E(r));var f=(e,r)=>{var t={};for(var o in e)d.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&i)for(var o of i(e))r.indexOf(o)<0&&_.call(e,o)&&(t[o]=e[o]);return t};var s=(e,r,t)=>new Promise((o,l)=>{var I=n=>{try{c(t.next(n))}catch(p){l(p)}},g=n=>{try{c(t.throw(n))}catch(p){l(p)}},c=n=>n.done?o(n.value):Promise.resolve(n.value).then(I,g);c((t=t.apply(e,r)).next())});import{applicationId as A}from"expo-application";import*as a from"expo-secure-store";import{PrivyClientError as T}from"@privy-io/js-sdk-core";var k=()=>{if(typeof A!="string")throw new T({error:"Cannot determine native application ID. Please make sure `expo-application` is installed as a dependency and that `ios.bundleId` or `android.package` is set.",code:"invalid_native_app_id"});return A},S=/[:/]/g;function v(e){return{get(r){return e.get(r.replaceAll(S,"-"))},put(r,t){return e.put(r.replaceAll(S,"-"),t)},del(r){return e.del(r.replaceAll(S,"-"))},getKeys:()=>s(this,null,function*(){return[]})}}var K={get(e){return a.getItemAsync(e,{keychainAccessible:a.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY})},put(e,r){return a.setItemAsync(e,r,{keychainAccessible:a.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY})},del(e){return a.deleteItemAsync(e,{keychainAccessible:a.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY})},getKeys:()=>s(void 0,null,function*(){return[]})};export{C as a,L as b,R as c,f as d,s as e,k as f,v as g,K as h};