UNPKG

@flagship.io/react-sdk

Version:
127 lines (126 loc) 3.83 kB
{ "name": "@flagship.io/react-sdk", "sideEffects": false, "version": "5.2.4", "license": "Apache-2.0", "description": "Flagship REACT SDK", "main": "dist/src/index.js", "module": "dist/src/index.js", "react-native": "dist/src/index.js", "types": "dist/src/index.d.ts", "files": [ "dist/**/*", "CONTRIBUTING.md", "README.md" ], "exports": { ".": { "types": "./dist/src/index.d.ts", "import": "./dist/src/index.js", "require": "./dist/index.node.cjs", "react-native": "./dist/src/index.js" }, "./dist/edge.js": { "types": "./dist/src/index.d.ts", "import": "./dist/edge/src/index.js", "require": "./dist/edge/src/index.js" }, "./edge": { "types": "./dist/src/index.d.ts", "import": "./dist/edge/src/index.js", "require": "./dist/edge/src/index.js" } }, "dependencies": { "@flagship.io/js-sdk": "^5.2.0", "encoding": "^0.1.13" }, "peerDependencies": { "react": ">=16.8.0" }, "homepage": "https://github.com/flagship-io/flagship-react-sdk", "repository": { "type": "git", "url": "git+https://github.com/flagship-io/flagship-react-sdk.git" }, "keywords": [ "flagship", "abtasty", "react", "sdk" ], "devDependencies": { "@babel/cli": "^7.24.1", "@babel/core": "^7.24.3", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/preset-env": "^7.24.3", "@babel/preset-react": "^7.24.1", "@babel/preset-typescript": "^7.24.1", "@eslint/js": "^9.23.0", "@testing-library/dom": "^10.1.0", "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^16.0.0", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.5.2", "@types/jest": "^29.5.12", "@types/node": "^20.11.30", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^7.4.0", "@typescript-eslint/parser": "^7.4.0", "babel-loader": "^9.1.3", "babel-plugin-add-module-exports": "^1.0.4", "core-js": "^3.36.1", "eslint": "^9.23.0", "genversion": "^3.2.0", "globals": "^16.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "react": "^18.3.1", "react-dom": "^18.3.1", "react-test-renderer": "^18.2.0", "regenerator-runtime": "^0.14.1", "terser-webpack-plugin": "^5.3.10", "ts-jest": "^29.1.2", "ts-loader": "^9.5.1", "tsc-esm-fix": "^3.1.2", "typescript": "^5.4.3", "typescript-eslint": "^8.28.0", "webpack": "^5.91.0", "webpack-cli": "^5.1.4", "webpack-merge": "^5.10.0", "webpack-node-externals": "^3.0.0" }, "scripts": { "dev": "tsc --watch ", "test": "jest", "lint": "eslint src --ext .tsx", "clean": "rm -rf dist && mkdir dist", "generate:version": "genversion --es6 src/sdkVersion.ts", "build:prod": "NODE_ENV=production npm run build", "build:edge": "tsc --project tsconfig.edge.json && tsc-esm-fix dist/edge", "build:default": "tsc --project tsconfig.json && tsc-esm-fix dist", "patch:deps-edge": "node update-deps.js", "prebuild": "npm run clean && npm run generate:version && tsc", "build": "yarn run prebuild && yarn run webpack && yarn run build:default && yarn run build:edge && yarn run patch:deps-edge" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "packageManager": "yarn@4.7.0+sha512.5a0afa1d4c1d844b3447ee3319633797bcd6385d9a44be07993ae52ff4facabccafb4af5dcd1c2f9a94ac113e5e9ff56f6130431905884414229e284e37bb7c9" }