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.
@@ -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,3 @@
1
+ export const subtle: any;
2
+ export const getRandomValues: any;
3
+ //# sourceMappingURL=webcrypto.react-native.d.ts.map
@@ -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.96",
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,3 @@
1
+ export const subtle: any;
2
+ export const getRandomValues: any;
3
+ //# sourceMappingURL=webcrypto.react-native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webcrypto.react-native.d.ts","sourceRoot":"","sources":["webcrypto.react-native.js"],"names":[],"mappings":"AAKA,yBAAsC;AACtC,kCAAwE"}
@@ -0,0 +1,7 @@
1
+ // @ts-ignore
2
+ import webcrypto from 'isomorphic-webcrypto'
3
+
4
+ webcrypto.ensureSecure()
5
+
6
+ export const subtle = webcrypto.subtle
7
+ export const getRandomValues = webcrypto.getRandomValues.bind(webcrypto)