UNPKG

@dioxide-js/detect-provider

Version:

A tiny utility for detecting the Dioxide-wallet provider which injected at window.dioxide.

113 lines (112 loc) 3.03 kB
{ "name": "@dioxide-js/detect-provider", "version": "0.0.8", "description": "A tiny utility for detecting the Dioxide-wallet provider which injected at window.dioxide.", "keywords": [ "wallet", "dioxide" ], "homepage": "https://github.com/duiyuan/dioxide-provider", "main": "dist/detect-provider.umd.js", "module": "dist/detect-provider.es5.js", "typings": "dist/types/index.d.ts", "files": [ "dist" ], "author": "shangwenwang <shangwenwang20@gmail.com>", "repository": { "type": "git", "url": "git+https://github.com/duiyuan/dioxide-provider.git" }, "license": "MIT", "engines": { "node": ">=6.0.0" }, "publishConfig": { "access": "public" }, "scripts": { "prebuild": "rimraf dist", "docs": "ts-node --project tools/tsconfig.tools.json tools/docs.ts", "build": "tsc --module commonjs && rollup -c rollup.config.ts", "start": "rollup -c rollup.config.ts -w", "test:watch": "jest --coverage --watch", "lint-eslint": "eslint -c .eslintrc.js --ext .ts,.tsx,.js src --fix", "test:prod": "npm run lint && npm run test -- --no-cache", "prepare": "husky install", "test": "lint-staged" }, "lint-staged": { "{src,test}/**/*.ts": [ "npm run lint-eslint", "prettier --write", "git add" ] }, "jest": { "transform": { ".(ts|tsx)": "ts-jest" }, "testEnvironment": "node", "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", "moduleFileExtensions": [ "ts", "tsx", "js" ], "coveragePathIgnorePatterns": [ "/node_modules/", "/test/" ], "coverageThreshold": { "./src/git.ts": { "branches": 10, "functions": 10, "lines": 10, "statements": 10 } }, "collectCoverageFrom": [ "src/*.{js,ts}" ] }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "devDependencies": { "@commitlint/cli": "^16.2.4", "@commitlint/config-conventional": "^16.2.4", "@duiyuan/commitlint-config": "^0.1.0", "@duiyuan/eslint-config": "^0.1.3", "@types/jest": "^23.3.2", "@types/node": "^14", "@typescript-eslint/eslint-plugin": "^5.21.0", "@typescript-eslint/parser": "^5.21.0", "colors": "^1.3.2", "cross-env": "^5.2.0", "eslint": "^8.14.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-promise": "^6.0.0", "husky": "^7.0.0", "jest": "^23.6.0", "jest-config": "^23.6.0", "lint-staged": "^8.0.0", "prettier": "^2.6.2", "rimraf": "^3.0.2", "rollup": "^0.67.0", "lodash.camelcase": "^4.3.0", "rollup-plugin-commonjs": "^9.1.8", "rollup-plugin-json": "^3.1.0", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", "rollup-plugin-typescript2": "^0.18.0", "shelljs": "^0.8.3", "ts-jest": "^23.10.2", "ts-node": "^7.0.1", "typescript": "^4.3.2" }, "dependencies": {} }