expo-crypto
Advanced tools
Comparing version 9.2.0 to 10.0.0
@@ -1,2 +0,2 @@ | ||
import { UnavailabilityError } from '@unimodules/core'; | ||
import { UnavailabilityError } from 'expo-modules-core'; | ||
import { CryptoDigestAlgorithm, CryptoEncoding } from './Crypto.types'; | ||
@@ -6,5 +6,5 @@ import ExpoCrypto from './ExpoCrypto'; | ||
class CryptoError extends TypeError { | ||
code = 'ERR_CRYPTO'; | ||
constructor(message) { | ||
super(`expo-crypto: ${message}`); | ||
this.code = 'ERR_CRYPTO'; | ||
} | ||
@@ -11,0 +11,0 @@ } |
@@ -1,2 +0,2 @@ | ||
declare const _default: import("@unimodules/core").ProxyNativeModule; | ||
declare const _default: import("expo-modules-core").ProxyNativeModule; | ||
export default _default; |
@@ -1,3 +0,3 @@ | ||
import { NativeModulesProxy } from '@unimodules/core'; | ||
import { NativeModulesProxy } from 'expo-modules-core'; | ||
export default NativeModulesProxy.ExpoCrypto; | ||
//# sourceMappingURL=ExpoCrypto.js.map |
@@ -1,2 +0,2 @@ | ||
import { CodedError } from '@unimodules/core'; | ||
import { CodedError } from 'expo-modules-core'; | ||
import { CryptoEncoding } from './Crypto.types'; | ||
@@ -25,3 +25,3 @@ export default { | ||
const byteArray = new Uint8Array(buffer); | ||
const hexCodes = [...byteArray].map(value => { | ||
const hexCodes = [...byteArray].map((value) => { | ||
const hexCode = value.toString(16); | ||
@@ -28,0 +28,0 @@ const paddedHexCode = hexCode.padStart(2, '0'); |
@@ -13,2 +13,18 @@ # Changelog | ||
## 10.0.0 — 2021-09-28 | ||
### 🛠 Breaking changes | ||
- Dropped support for iOS 11.0 ([#14383](https://github.com/expo/expo/pull/14383) by [@cruzach](https://github.com/cruzach)) | ||
### 🐛 Bug fixes | ||
- Fix building errors from use_frameworks! in Podfile. ([#14523](https://github.com/expo/expo/pull/14523) by [@kudo](https://github.com/kudo)) | ||
### 💡 Others | ||
- Rewrite Android code to Kotlin. ([#14425](https://github.com/expo/expo/pull/14425) by [@kkafar](https://github.com/kkafar)) | ||
- Add tests. ([#13592](https://github.com/expo/expo/pull/13592) by [@mstach60161](https://github.com/mstach60161)) | ||
- Migrated from `@unimodules/core` to `expo-modules-core`. ([#13757](https://github.com/expo/expo/pull/13757) by [@tsapeta](https://github.com/tsapeta)) | ||
## 9.2.0 — 2021-06-16 | ||
@@ -15,0 +31,0 @@ |
{ | ||
"name": "expo-crypto", | ||
"version": "9.2.0", | ||
"version": "10.0.0", | ||
"description": "Expo universal module for crypto", | ||
@@ -37,8 +37,8 @@ "main": "build/Crypto.js", | ||
"license": "MIT", | ||
"homepage": "https://docs.expo.io/versions/latest/sdk/crypto/", | ||
"homepage": "https://docs.expo.dev/versions/latest/sdk/crypto/", | ||
"jest": { | ||
"preset": "expo-module-scripts" | ||
}, | ||
"unimodulePeerDependencies": { | ||
"@unimodules/core": "*" | ||
"dependencies": { | ||
"expo-modules-core": "~0.4.0" | ||
}, | ||
@@ -48,3 +48,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "c80d4c938920c5111e34c2dbca3a6bf500dff0e1" | ||
"gitHead": "1fffde73411ee7a642b98f1506a8de921805d52b" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { UnavailabilityError } from '@unimodules/core'; | ||
import { UnavailabilityError } from 'expo-modules-core'; | ||
@@ -3,0 +3,0 @@ import { CryptoDigestAlgorithm, CryptoEncoding, CryptoDigestOptions, Digest } from './Crypto.types'; |
@@ -1,2 +0,2 @@ | ||
import { NativeModulesProxy } from '@unimodules/core'; | ||
import { NativeModulesProxy } from 'expo-modules-core'; | ||
export default NativeModulesProxy.ExpoCrypto; |
@@ -1,2 +0,2 @@ | ||
import { CodedError } from '@unimodules/core'; | ||
import { CodedError } from 'expo-modules-core'; | ||
@@ -35,3 +35,3 @@ import { CryptoDigestAlgorithm, CryptoEncoding, CryptoDigestOptions } from './Crypto.types'; | ||
const hexCodes = [...byteArray].map(value => { | ||
const hexCodes = [...byteArray].map((value) => { | ||
const hexCode = value.toString(16); | ||
@@ -38,0 +38,0 @@ const paddedHexCode = hexCode.padStart(2, '0'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
28251
1
+ Addedexpo-modules-core@~0.4.0
+ Addedcompare-versions@3.6.0(transitive)
+ Addedexpo-modules-core@0.4.10(transitive)
+ Addedinvariant@2.2.4(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)