lib0 0.2.96 → 0.2.97
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/README.md +6 -0
- package/coverage/tmp/coverage-24110-1723453655866-0.json +1 -0
- package/dist/webcrypto.react-native.cjs +20 -0
- package/dist/webcrypto.react-native.cjs.map +1 -0
- package/dist/webcrypto.react-native.d.ts +3 -0
- package/dist/webcrypto.react-native.d.ts.map +1 -0
- package/package.json +2 -1
- package/webcrypto.react-native.d.ts +3 -0
- package/webcrypto.react-native.d.ts.map +1 -0
- package/webcrypto.react-native.js +7 -0
- package/coverage/tmp/coverage-178668-1722872336840-0.json +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var webcrypto = require('isomorphic-webcrypto');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var webcrypto__default = /*#__PURE__*/_interopDefaultLegacy(webcrypto);
|
|
10
|
+
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
|
|
13
|
+
webcrypto__default["default"].ensureSecure();
|
|
14
|
+
|
|
15
|
+
const subtle = webcrypto__default["default"].subtle;
|
|
16
|
+
const getRandomValues = webcrypto__default["default"].getRandomValues.bind(webcrypto__default["default"]);
|
|
17
|
+
|
|
18
|
+
exports.getRandomValues = getRandomValues;
|
|
19
|
+
exports.subtle = subtle;
|
|
20
|
+
//# sourceMappingURL=webcrypto.react-native.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webcrypto.react-native.cjs","sources":["../webcrypto.react-native.js"],"sourcesContent":["// @ts-ignore\nimport webcrypto from 'isomorphic-webcrypto'\n\nwebcrypto.ensureSecure()\n\nexport const subtle = webcrypto.subtle\nexport const getRandomValues = webcrypto.getRandomValues.bind(webcrypto)\n"],"names":["webcrypto"],"mappings":";;;;;;;;;;AAAA;AAEA;AACAA,6BAAS,CAAC,YAAY,GAAE;AACxB;AACY,MAAC,MAAM,GAAGA,6BAAS,CAAC,OAAM;AAC1B,MAAC,eAAe,GAAGA,6BAAS,CAAC,eAAe,CAAC,IAAI,CAACA,6BAAS;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webcrypto.react-native.d.ts","sourceRoot":"","sources":["../webcrypto.react-native.js"],"names":[],"mappings":"AAKA,yBAAsC;AACtC,kCAAwE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lib0",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.97",
|
|
4
4
|
"description": "",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -441,6 +441,7 @@
|
|
|
441
441
|
"types": "./webcrypto.d.ts",
|
|
442
442
|
"deno": "./webcrypto.deno.js",
|
|
443
443
|
"bun": "./webcrypto.js",
|
|
444
|
+
"react-native": "./dist/webcrypto.react-native.cjs",
|
|
444
445
|
"browser": {
|
|
445
446
|
"module": "./webcrypto.js",
|
|
446
447
|
"require": "./dist/webcrypto.cjs",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webcrypto.react-native.d.ts","sourceRoot":"","sources":["webcrypto.react-native.js"],"names":[],"mappings":"AAKA,yBAAsC;AACtC,kCAAwE"}
|