chore: upgrade deps (#2014)

This commit is contained in:
Mo
2022-11-16 09:52:21 -06:00
committed by GitHub
parent 353c757388
commit 05fe7de3eb
332 changed files with 2123 additions and 2332 deletions

View File

@@ -29,19 +29,19 @@
},
"devDependencies": {
"@babel/core": "*",
"@babel/preset-typescript": "^7.16.7",
"@babel/runtime": "^7.18.3",
"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.20.1",
"@react-native-community/async-storage": "1.12.1",
"@react-native-community/eslint-config": "^3.0.1",
"@react-native-community/eslint-config": "^3.2.0",
"@standardnotes/config": "^2.4.3",
"@standardnotes/react-native-utils": "1.0.1",
"@standardnotes/snjs": "workspace:*",
"@standardnotes/web": "workspace:*",
"@types/react": "^18.0.21",
"@types/react-native": "^0.67.3",
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
"babel-jest": "^27.5.1",
"@typescript-eslint/eslint-plugin": "*",
"@typescript-eslint/parser": "*",
"babel-jest": "^29.3.1",
"detox": "^19.5.7",
"eslint": "^8.13.0",
"eslint-plugin-prettier": "^4.0.0",
@@ -49,8 +49,8 @@
"metro-react-native-babel-preset": "^0.70.1",
"npm-check-updates": "*",
"pod-install": "^0.1.33",
"prettier": "^2.6.0",
"prettier-plugin-organize-imports": "^2.3.4",
"prettier": "^2.7.1",
"prettier-plugin-organize-imports": "^3.2.0",
"react": "17.0.2",
"react-native": "0.67.4",
"react-native-file-viewer": "^2.1.5",
@@ -63,6 +63,6 @@
"react-native-share": "^7.9.0",
"react-native-version-info": "^1.1.1",
"react-native-webview": "11.23.1",
"typescript": "^4.6.3"
"typescript": "^4.9.3"
}
}

View File

@@ -2,6 +2,7 @@ import AsyncStorage from '@react-native-community/async-storage'
import SNReactNative from '@standardnotes/react-native-utils'
import { AppleIAPReceipt } from '@standardnotes/services/dist/Domain/Subscription/AppleIAPReceipt'
import {
AppleIAPProductId,
ApplicationIdentifier,
Environment,
LegacyMobileKeychainStructure,
@@ -12,7 +13,6 @@ import {
RawKeychainValue,
removeFromArray,
TransferPayload,
AppleIAPProductId,
UuidString,
} from '@standardnotes/snjs'
import { ColorSchemeObserverService } from 'ColorSchemeObserverService'
@@ -41,9 +41,9 @@ import {
import { hide, show } from 'react-native-privacy-snapshot'
import Share from 'react-native-share'
import { AndroidBackHandlerService } from '../AndroidBackHandlerService'
import { PurchaseManager } from '../PurchaseManager'
import { AppStateObserverService } from './../AppStateObserverService'
import Keychain from './Keychain'
import { PurchaseManager } from '../PurchaseManager'
export type BiometricsType = 'Fingerprint' | 'Face ID' | 'Biometrics' | 'Touch ID'

View File

@@ -1,5 +1,4 @@
import { ReactNativeToWebEvent } from '@standardnotes/snjs'
import { ColorSchemeObserverService } from './ColorSchemeObserverService'
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { Keyboard, Platform } from 'react-native'
import VersionInfo from 'react-native-version-info'
@@ -8,6 +7,7 @@ import { OnShouldStartLoadWithRequest } from 'react-native-webview/lib/WebViewTy
import pjson from '../package.json'
import { AndroidBackHandlerService } from './AndroidBackHandlerService'
import { AppStateObserverService } from './AppStateObserverService'
import { ColorSchemeObserverService } from './ColorSchemeObserverService'
import { MobileDevice, MobileDeviceEvent } from './Lib/Interface'
import { IsDev } from './Lib/Utils'

View File

@@ -1,18 +1,18 @@
import { LoggingDomain, log } from './Lib/Logging'
import { AppleIAPProductId, AppleIAPReceipt } from '@standardnotes/snjs'
import { EmitterSubscription } from 'react-native'
import {
initConnection,
endConnection,
finishTransaction,
getSubscriptions,
initConnection,
purchaseErrorListener,
purchaseUpdatedListener,
requestSubscription,
type ProductPurchase,
type PurchaseError,
type SubscriptionPurchase,
finishTransaction,
requestSubscription,
getSubscriptions,
} from 'react-native-iap'
import { AppleIAPReceipt, AppleIAPProductId } from '@standardnotes/snjs'
import { log, LoggingDomain } from './Lib/Logging'
export class PurchaseManager {
private static instance: PurchaseManager