@allthings/sdk
Version:
Allthings Node/Javascript SDK
164 lines (163 loc) • 4.38 kB
JSON
{
"name": "@allthings/sdk",
"version": "8.0.0",
"description": "",
"author": "Allthings GmbH",
"keywords": [
"allthings",
"sdk"
],
"license": "MIT",
"repository": "git@github.com:allthings/node-sdk.git",
"bugs": {
"url": "https://github.com/allthings/node-sdk/issues"
},
"homepage": "https://github.com/allthings/node-sdk",
"engines": {
"node": ">20.10"
},
"packageManager": "yarn@1.22.22",
"main": "dist/lib.cjs.js",
"module": "dist/lib.esm.js",
"browser": "dist/lib.umd.min.js",
"types": "dist/src/index.d.ts",
"files": [
"dist/*.js",
"dist/*.min.js",
"dist/**/*.d.ts"
],
"bin": {
"allthings": "dist/cli.js"
},
"scripts": {
"clean": "rimraf dist",
"pretest": "npm run clean",
"test": "jest",
"test:ci": "jest --runInBand",
"watch:build": "tsc -d -w & rollup -c --watch",
"watch:test": "jest --watch",
"lint": "yarn lint:tsc && yarn lint:eslint",
"lint:eslint": "eslint src",
"lint:tsc": "tsc --noEmit --pretty",
"prebuild": "npm run clean",
"build": "tsc -d && cp package.json dist/ && rollup -c --bundleConfigAsCjs && rm dist/package.json",
"dev": "tsc -w",
"prepare": "husky",
"prepublishOnly": "npm run build",
"prettier": "prettier --write",
"security-check": "yarn audit --groups dependencies --level high || test $? -lt 7",
"upgrade-dependencies": "yarn upgrade-interactive --latest --exact",
"semantic-release": "echo \"Setting npm unsafe-perm to true due to our Docker/Buildkite root permissions\" && npm set unsafe-perm true && semantic-release",
"serve": "npx serve -l 3333",
"test:implicit-flow": "open http://localhost:3333/test/fixtures/implicit-flow?clientId=$ALLTHINGS_OAUTH_CLIENT_ID",
"test:authorization-code": "open http://localhost:3333/test/fixtures/authorization-code?clientId=$ALLTHINGS_OAUTH_CLIENT_ID&clientSecret=$ALLTHINGS_OAUTH_CLIENT_SECRET"
},
"dependencies": {
"bottleneck": "2.19.5",
"cross-fetch": "4.1.0",
"query-string": "7.1.3"
},
"devDependencies": {
"@allthings/eslint-config": "1.1.0",
"@commitlint/cli": "19.8.0",
"@commitlint/config-conventional": "19.8.0",
"@rollup/plugin-commonjs": "28.0.3",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "16.0.1",
"@rollup/plugin-replace": "6.0.2",
"@rollup/plugin-terser": "0.4.4",
"@types/form-data": "2.5.2",
"@types/jest": "27.5.2",
"@types/node": "22.15.3",
"@types/query-string": "6.3.0",
"aws-sdk-client-mock": "4.1.0",
"coveralls": "3.1.1",
"eslint": "8.57.1",
"form-data": "4.0.2",
"husky": "9.1.7",
"jest": "27.5.1",
"jest-environment-jsdom": "27.5.1",
"lint-staged": "15.5.1",
"prettier": "3.5.3",
"rimraf": "5.0.10",
"rollup": "4.40.1",
"rollup-plugin-hashbang": "2.2.2",
"semantic-release": "19.0.5",
"ts-jest": "27.1.5",
"typescript": "4.9.5"
},
"prettier": {
"printWidth": 80,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"useTabs": false
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.{ts,tsx}": [
"yarn prettier",
"yarn lint"
],
"*.{json}": [
"yarn prettier"
]
},
"jest": {
"bail": false,
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!src/cli.ts",
"!src/global.d.ts",
"!src/index.ts",
"!src/aws/index.ts",
"!src/oauth/types.ts"
],
"coverageThreshold": {
"global": {
"branches": 89,
"functions": 97,
"lines": 97,
"statements": 96
}
},
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/"
],
"globals": {
"ts-jest": {
"diagnostics": {
"warnOnly": true
}
}
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
],
"preset": "ts-jest",
"roots": [
"src/"
],
"setupFilesAfterEnv": [
"./test/setup.ts"
],
"testEnvironment": "node",
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx)$",
"transform": {
"^.+\\.tsx?$": "ts-jest"
}
},
"release": {
"branch": "master",
"repositoryUrl": "https://github.com/allthings/node-sdk.git"
}
}