@digitalcredentials/data-integrity-rn
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/*! | ||
@@ -7,4 +5,4 @@ * Copyright (c) 2023 Digital Credentials Consortium. All rights reserved. | ||
// Exports the TextEncoder and TextDecoder globals | ||
require("fast-text-encoding"); | ||
import 'fast-text-encoding'; | ||
// Exports the crypto.subtle / WebCryptography API | ||
require("isomorphic-webcrypto"); | ||
import 'isomorphic-webcrypto'; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/*! | ||
@@ -5,4 +7,4 @@ * Copyright (c) 2023 Digital Credentials Consortium. All rights reserved. | ||
// Exports the TextEncoder and TextDecoder globals | ||
import 'fast-text-encoding'; | ||
require("fast-text-encoding"); | ||
// Exports the crypto.subtle / WebCryptography API | ||
import 'isomorphic-webcrypto'; | ||
require("isomorphic-webcrypto"); |
{ | ||
"name": "@digitalcredentials/data-integrity-rn", | ||
"description": "React Native polyfill for globals required for Data Integrity and VC apps (TextEncoder, crypto.subtle, etc).", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"scripts": { | ||
@@ -15,2 +15,3 @@ "build": "npm run clear && tsc -d && tsc -p tsconfig.esm.json", | ||
"dist", | ||
"src", | ||
"README.md", | ||
@@ -21,3 +22,10 @@ "LICENSE.md" | ||
"module": "dist/esm/index.js", | ||
"types": "dist/esm/index.d.ts", | ||
"types": "src/declarations.d.ts", | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.js", | ||
"import": "./dist/esm/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"devDependencies": { | ||
@@ -24,0 +32,0 @@ "@types/node": "^20.4.6", |
@@ -51,5 +51,6 @@ # Data Integrity Polyfill for React Native _(@digitalcredentials/data-integrity-rn)_ | ||
When developing for React Native and using various DCC-provided libraries such | ||
as [`@digitalcredentials/vc`](https://github.com/digitalcredentials/vc), | ||
make sure to import this polyfill before importing the DCC libraries: | ||
When developing for React Native and using various Digital Bazaar or DCC provided | ||
libraries such as [`jsonld`](https://github.com/digitalbazaar/jsonld.js) or | ||
[`@digitalcredentials/vc`](https://github.com/digitalcredentials/vc), | ||
make sure to import this polyfill before importing the libraries: | ||
@@ -56,0 +57,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5867
8
30
73