@portal-hq/passkey-storage 4.1.0 → 4.1.2
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": "@portal-hq/passkey-storage",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "Portal's Passkey storage adapter",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Portal Labs, Inc.",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"test": "jest --pass-with-no-tests"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@portal-hq/core": "^4.1.
|
|
26
|
-
"@portal-hq/utils": "^4.1.
|
|
25
|
+
"@portal-hq/core": "^4.1.2",
|
|
26
|
+
"@portal-hq/utils": "^4.1.2",
|
|
27
27
|
"react-native-passkey": "^2.1.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react-native-passkey": "^2.1.1"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "4504ed5bdfde36df2b9c1acab9916ad412ba6fd9"
|
|
41
41
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const React = __importStar(require("react"));
|
|
27
|
-
const react_native_1 = require("react-native");
|
|
28
|
-
const passkey_storage_1 = require("@portal-hq/passkey-storage");
|
|
29
|
-
function App() {
|
|
30
|
-
const [result, setResult] = React.useState();
|
|
31
|
-
React.useEffect(() => {
|
|
32
|
-
(0, passkey_storage_1.multiply)(3, 7).then(setResult);
|
|
33
|
-
}, []);
|
|
34
|
-
return (React.createElement(react_native_1.View, { style: styles.container },
|
|
35
|
-
React.createElement(react_native_1.Text, null,
|
|
36
|
-
"Result: ",
|
|
37
|
-
result)));
|
|
38
|
-
}
|
|
39
|
-
exports.default = App;
|
|
40
|
-
const styles = react_native_1.StyleSheet.create({
|
|
41
|
-
container: {
|
|
42
|
-
flex: 1,
|
|
43
|
-
alignItems: 'center',
|
|
44
|
-
justifyContent: 'center',
|
|
45
|
-
},
|
|
46
|
-
box: {
|
|
47
|
-
width: 60,
|
|
48
|
-
height: 60,
|
|
49
|
-
marginVertical: 20,
|
|
50
|
-
},
|
|
51
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.multiply = void 0;
|
|
4
|
-
const react_native_1 = require("react-native");
|
|
5
|
-
const LINKING_ERROR = `The package '@portal-hq/passkey-storage' doesn't seem to be linked. Make sure: \n\n` +
|
|
6
|
-
react_native_1.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
7
|
-
'- You rebuilt the app after installing the package\n' +
|
|
8
|
-
'- You are not using Expo Go\n';
|
|
9
|
-
const PasskeyStorage = react_native_1.NativeModules.PasskeyStorage
|
|
10
|
-
? react_native_1.NativeModules.PasskeyStorage
|
|
11
|
-
: new Proxy({}, {
|
|
12
|
-
get() {
|
|
13
|
-
throw new Error(LINKING_ERROR);
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
function multiply(a, b) {
|
|
17
|
-
return PasskeyStorage.multiply(a, b);
|
|
18
|
-
}
|
|
19
|
-
exports.multiply = multiply;
|
package/lib/esm/PasskeyAuth.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|