UNPKG

@react-native-async-storage/async-storage

Version:

Asynchronous, persistent, key-value storage system for React Native.

156 lines (155 loc) 5.29 kB
{ "name": "@react-native-async-storage/async-storage", "version": "1.15.4", "description": "Asynchronous, persistent, key-value storage system for React Native.", "main": "lib/commonjs/index.js", "module": "lib/module/index.js", "react-native": "src/index.js", "types": "./types/index.d.ts", "files": [ "lib/", "src/", "jest/", "types/", "android/src", "android/build.gradle", "android/testresults.gradle", "ios/", "macos/", "windows/", "RNCAsyncStorage.podspec" ], "author": "Krzysztof Borowy <hello@krizzu.dev>", "contributors": [ "Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)" ], "homepage": "https://github.com/react-native-async-storage/async-storage#readme", "license": "MIT", "keywords": [ "react-native", "react native", "async storage", "asyncstorage", "storage" ], "repository": { "type": "git", "url": "https://github.com/react-native-async-storage/async-storage.git" }, "scripts": { "ci": "yarn --pure-lockfile --non-interactive --cache-folder .cache/yarn", "format:c": "clang-format -i $(git ls-files '*.cpp' '*.h' '*.m' '*.mm')", "format:js": "prettier --write $(git ls-files '*.js' '*.json' '*.yml')", "prepare": "bob build", "start": "node node_modules/react-native/local-cli/cli.js start", "start:android": "react-native run-android --root example/", "start:ios": "react-native run-ios --project-path example/ios --scheme AsyncStorageExample", "start:web": "expo start:web", "start:macos": "react-native start --use-react-native-macos", "start:windows": "react-native start --use-react-native-windows", "build:e2e:android": "scripts/android_e2e.sh 'build'", "build:e2e:ios": "scripts/ios_e2e.sh 'build'", "build:e2e:macos": "scripts/macos_e2e.sh 'build'", "bundle:android": "scripts/android_e2e.sh 'bundle'", "bundle:ios": "scripts/ios_e2e.sh 'bundle'", "bundle:macos": "react-native bundle --entry-file index.js --platform macos --bundle-output example/index.macos.jsbundle --use-react-native-macos", "test": "yarn test:lint && yarn test:flow", "test:flow": "flow check", "test:lint": "eslint src/**/*.js example/**/*.js jest/*.js", "test:e2e:android": "detox test -c android.emu.release --maxConcurrency 1", "test:e2e:ios": "detox test -c ios.sim.release --maxConcurrency 1", "test:e2e:macos": "scripts/macos_e2e.sh 'test'" }, "dependencies": { "deep-assign": "^3.0.0" }, "peerDependencies": { "react-native": "^0.60.6 || ^0.61.5 || ^0.62.2 || ^0.63.2 || ^0.64.0 || 1000.0.0" }, "devDependencies": { "@babel/core": "^7.8.4", "@babel/runtime": "^7.8.4", "@expo/webpack-config": "^0.12.0", "@react-native-community/bob": "^0.17.0", "@react-native-community/cli": "^4.10.0", "@react-native-community/cli-platform-android": "^4.10.0", "@react-native-community/cli-platform-ios": "^4.10.0", "@react-native-community/eslint-config": "^2.0.0", "babel-jest": "^26.5.2", "babel-plugin-module-resolver": "3.1.3", "detox": "17.10.6", "eslint": "^6.0.0", "expo": "^38.0.10", "flow-bin": "^0.122.0", "jest": "^26.5.3", "jest-circus": "^26.6.1", "metro": "^0.59.0", "metro-config": "^0.59.0", "metro-react-native-babel-preset": "^0.59.0", "react": "16.13.1", "react-dom": "16.13.1", "react-native": "0.63.4", "react-native-macos": "0.63.4", "react-native-test-app": "^0.3.0", "react-native-web": "~0.12.0", "react-native-windows": "0.63.18", "react-test-renderer": "16.13.1", "semantic-release": "^17.2.1" }, "resolutions": { "//": "We must use a single version of Metro otherwise bundling will break on Windows", "metro": "^0.59.0", "metro-config": "^0.59.0", "metro-core": "^0.59.0", "metro-react-native-babel-transformer": "^0.59.0", "metro-resolver": "^0.59.0" }, "jest": { "preset": "react-native", "setupFiles": [ "./example/jest.setup.js" ] }, "detox": { "test-runner": "jest", "runner-config": "example/e2e/config.json", "configurations": { "ios.sim.release": { "binaryPath": "example/ios/build/Build/Products/Release-iphonesimulator/ReactTestApp.app", "type": "ios.simulator", "device": { "type": "iPhone 11" } }, "android.emu.release": { "binaryPath": "example/android/app/build/outputs/apk/release/app-release.apk", "testBinaryPath": "example/android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk", "type": "android.emulator", "device": { "avdName": "Emu_E2E" } }, "android.emu.release.next": { "binaryPath": "example/android/app/build/outputs/apk/next/app-next.apk", "testBinaryPath": "example/android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk", "type": "android.emulator", "device": { "avdName": "Emu_E2E" } } } }, "@react-native-community/bob": { "source": "src", "output": "lib", "targets": [ [ "commonjs", { "copyFlow": true } ], "module" ] } }