@allthings/sdk
Advanced tools
Comparing version 0.1.0-7 to 0.1.0-8
173
dist/cli.js
@@ -13,167 +13,2 @@ #!/usr/bin/env node | ||
const name = "@allthings/sdk"; | ||
const version = "0.1.0-6"; | ||
const description = ""; | ||
const author = "Allthings GmbH"; | ||
const maintainers = [ | ||
"Marco Lüthy <marco.luethy@gmail.com> (https://github.com/adieuadieu)" | ||
]; | ||
const contributors = [ | ||
"Marco Lüthy <marco.luethy@gmail.com> (https://github.com/adieuadieu)" | ||
]; | ||
const keywords = [ | ||
"allthings", | ||
"sdk" | ||
]; | ||
const license = "MIT"; | ||
const repository = "git@github.com:allthings/node-sdk.git"; | ||
const bugs = { | ||
url: "https://github.com/allthings/node-sdk/issues" | ||
}; | ||
const homepage = "https://github.com/allthings/node-sdk"; | ||
const engines = { | ||
node: ">= 8.10" | ||
}; | ||
const main = "dist/lib.cjs.js"; | ||
const module$1 = "dist/lib.es.js"; | ||
const types = "dist/src/index.d.ts"; | ||
const files = [ | ||
"dist" | ||
]; | ||
const bin = { | ||
allthings: "dist/cli.js" | ||
}; | ||
const scripts = { | ||
clean: "rimraf dist", | ||
pretest: "npm run clean", | ||
test: "jest", | ||
"watch:test": "jest --watch", | ||
lint: "yarn lint:tsc && yarn lint:tslint", | ||
"lint:tslint": "tslint -p tsconfig.json -t stylish", | ||
"lint:tsc": "tsc --noEmit --pretty", | ||
prebuild: "npm run clean", | ||
build: "tsc -d && rollup -c", | ||
dev: "tsc -w", | ||
_preversion: "git pull && yarn check --integrity && yarn security-check && yarn lint && yarn test", | ||
_postversion: "git push --tags origin HEAD", | ||
_prepublishOnly: "npm run lint && npm test && npm run security-check && npm run build", | ||
precommit: "lint-staged", | ||
prettier: "prettier --write", | ||
"security-check": "nsp", | ||
"upgrade-dependencies": "yarn upgrade-interactive --latest --exact", | ||
commitmsg: "commitlint -e $GIT_PARAMS", | ||
"semantic-release": "semantic-release -d" | ||
}; | ||
const dependencies = { | ||
bottleneck: "2.5.0", | ||
got: "8.3.1", | ||
mem: "3.0.1", | ||
shortid: "2.2.8" | ||
}; | ||
const devDependencies = { | ||
"@allthings/tslint-preset": "1.5.0", | ||
"@commitlint/cli": "7.0.0", | ||
"@commitlint/config-conventional": "7.0.1", | ||
"@types/got": "8.3.1", | ||
"@types/jest": "23.1.2", | ||
"@types/mem": "1.1.2", | ||
"@types/node": "10.3.6", | ||
"@types/shortid": "0.0.29", | ||
coveralls: "3.0.1", | ||
husky: "0.14.3", | ||
jest: "23.2.0", | ||
"lint-staged": "7.2.0", | ||
nsp: "3.2.1", | ||
nyc: "12.0.2", | ||
prettier: "1.13.6", | ||
rimraf: "2.6.2", | ||
rollup: "0.62.0", | ||
"rollup-plugin-commonjs": "9.1.3", | ||
"rollup-plugin-hashbang": "1.0.1", | ||
"rollup-plugin-json": "3.0.0", | ||
"rollup-plugin-node-resolve": "3.3.0", | ||
"semantic-release": "15.6.0", | ||
"ts-jest": "22.4.6", | ||
tslint: "5.10.0", | ||
typescript: "2.9.2" | ||
}; | ||
const prettier = { | ||
printWidth: 80, | ||
semi: false, | ||
singleQuote: true, | ||
trailingComma: "all", | ||
useTabs: false | ||
}; | ||
const commitlint = { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}; | ||
const jest = { | ||
bail: false, | ||
collectCoverage: true, | ||
roots: [ | ||
"src/" | ||
], | ||
transform: { | ||
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js" | ||
}, | ||
testEnvironment: "node", | ||
testRegex: "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", | ||
moduleFileExtensions: [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"json" | ||
], | ||
coverageThreshold: { | ||
global: { | ||
branches: 100, | ||
functions: 100, | ||
lines: 100, | ||
statements: 100 | ||
} | ||
}, | ||
coveragePathIgnorePatterns: [ | ||
"/node_modules/", | ||
"/test/" | ||
] | ||
}; | ||
var packageJson = { | ||
name: name, | ||
version: version, | ||
description: description, | ||
author: author, | ||
maintainers: maintainers, | ||
contributors: contributors, | ||
keywords: keywords, | ||
license: license, | ||
repository: repository, | ||
bugs: bugs, | ||
homepage: homepage, | ||
engines: engines, | ||
main: main, | ||
module: module$1, | ||
types: types, | ||
files: files, | ||
bin: bin, | ||
scripts: scripts, | ||
dependencies: dependencies, | ||
devDependencies: devDependencies, | ||
prettier: prettier, | ||
commitlint: commitlint, | ||
"lint-staged": { | ||
"*.{ts,tsx}": [ | ||
"yarn prettier", | ||
"yarn lint", | ||
"git add" | ||
], | ||
"*.{json}": [ | ||
"yarn prettier", | ||
"git add" | ||
] | ||
}, | ||
jest: jest | ||
}; | ||
const API_OAUTH_URL = process.env.ALLTHINGS_OAUTH_URL || 'https://accounts.allthings.me/oauth/token'; | ||
@@ -193,3 +28,3 @@ const REST_API_URL = process.env.ALLTHINGS_REST_API_URL || 'https://api.allthings.me/api/v1'; | ||
}; | ||
const USER_AGENT = `Allthings Node REST SDK/${packageJson.version}`; | ||
const USER_AGENT = `Allthings Node REST SDK/${require('../package.json').version}`; | ||
@@ -574,3 +409,3 @@ const partial = (fn, ...partialArgs) => (...args) => fn(...partialArgs, ...args); | ||
async function main$1() { | ||
async function main() { | ||
const [, , action, ...args] = process.argv; | ||
@@ -587,4 +422,4 @@ const restClient = restSdk(); | ||
} | ||
main$1().catch(console.error); | ||
main().catch(console.error); | ||
exports.main = main$1; | ||
exports.main = main; |
@@ -12,167 +12,2 @@ 'use strict'; | ||
const name = "@allthings/sdk"; | ||
const version = "0.1.0-6"; | ||
const description = ""; | ||
const author = "Allthings GmbH"; | ||
const maintainers = [ | ||
"Marco Lüthy <marco.luethy@gmail.com> (https://github.com/adieuadieu)" | ||
]; | ||
const contributors = [ | ||
"Marco Lüthy <marco.luethy@gmail.com> (https://github.com/adieuadieu)" | ||
]; | ||
const keywords = [ | ||
"allthings", | ||
"sdk" | ||
]; | ||
const license = "MIT"; | ||
const repository = "git@github.com:allthings/node-sdk.git"; | ||
const bugs = { | ||
url: "https://github.com/allthings/node-sdk/issues" | ||
}; | ||
const homepage = "https://github.com/allthings/node-sdk"; | ||
const engines = { | ||
node: ">= 8.10" | ||
}; | ||
const main = "dist/lib.cjs.js"; | ||
const module$1 = "dist/lib.es.js"; | ||
const types = "dist/src/index.d.ts"; | ||
const files = [ | ||
"dist" | ||
]; | ||
const bin = { | ||
allthings: "dist/cli.js" | ||
}; | ||
const scripts = { | ||
clean: "rimraf dist", | ||
pretest: "npm run clean", | ||
test: "jest", | ||
"watch:test": "jest --watch", | ||
lint: "yarn lint:tsc && yarn lint:tslint", | ||
"lint:tslint": "tslint -p tsconfig.json -t stylish", | ||
"lint:tsc": "tsc --noEmit --pretty", | ||
prebuild: "npm run clean", | ||
build: "tsc -d && rollup -c", | ||
dev: "tsc -w", | ||
_preversion: "git pull && yarn check --integrity && yarn security-check && yarn lint && yarn test", | ||
_postversion: "git push --tags origin HEAD", | ||
_prepublishOnly: "npm run lint && npm test && npm run security-check && npm run build", | ||
precommit: "lint-staged", | ||
prettier: "prettier --write", | ||
"security-check": "nsp", | ||
"upgrade-dependencies": "yarn upgrade-interactive --latest --exact", | ||
commitmsg: "commitlint -e $GIT_PARAMS", | ||
"semantic-release": "semantic-release -d" | ||
}; | ||
const dependencies = { | ||
bottleneck: "2.5.0", | ||
got: "8.3.1", | ||
mem: "3.0.1", | ||
shortid: "2.2.8" | ||
}; | ||
const devDependencies = { | ||
"@allthings/tslint-preset": "1.5.0", | ||
"@commitlint/cli": "7.0.0", | ||
"@commitlint/config-conventional": "7.0.1", | ||
"@types/got": "8.3.1", | ||
"@types/jest": "23.1.2", | ||
"@types/mem": "1.1.2", | ||
"@types/node": "10.3.6", | ||
"@types/shortid": "0.0.29", | ||
coveralls: "3.0.1", | ||
husky: "0.14.3", | ||
jest: "23.2.0", | ||
"lint-staged": "7.2.0", | ||
nsp: "3.2.1", | ||
nyc: "12.0.2", | ||
prettier: "1.13.6", | ||
rimraf: "2.6.2", | ||
rollup: "0.62.0", | ||
"rollup-plugin-commonjs": "9.1.3", | ||
"rollup-plugin-hashbang": "1.0.1", | ||
"rollup-plugin-json": "3.0.0", | ||
"rollup-plugin-node-resolve": "3.3.0", | ||
"semantic-release": "15.6.0", | ||
"ts-jest": "22.4.6", | ||
tslint: "5.10.0", | ||
typescript: "2.9.2" | ||
}; | ||
const prettier = { | ||
printWidth: 80, | ||
semi: false, | ||
singleQuote: true, | ||
trailingComma: "all", | ||
useTabs: false | ||
}; | ||
const commitlint = { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}; | ||
const jest = { | ||
bail: false, | ||
collectCoverage: true, | ||
roots: [ | ||
"src/" | ||
], | ||
transform: { | ||
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js" | ||
}, | ||
testEnvironment: "node", | ||
testRegex: "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", | ||
moduleFileExtensions: [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"json" | ||
], | ||
coverageThreshold: { | ||
global: { | ||
branches: 100, | ||
functions: 100, | ||
lines: 100, | ||
statements: 100 | ||
} | ||
}, | ||
coveragePathIgnorePatterns: [ | ||
"/node_modules/", | ||
"/test/" | ||
] | ||
}; | ||
var packageJson = { | ||
name: name, | ||
version: version, | ||
description: description, | ||
author: author, | ||
maintainers: maintainers, | ||
contributors: contributors, | ||
keywords: keywords, | ||
license: license, | ||
repository: repository, | ||
bugs: bugs, | ||
homepage: homepage, | ||
engines: engines, | ||
main: main, | ||
module: module$1, | ||
types: types, | ||
files: files, | ||
bin: bin, | ||
scripts: scripts, | ||
dependencies: dependencies, | ||
devDependencies: devDependencies, | ||
prettier: prettier, | ||
commitlint: commitlint, | ||
"lint-staged": { | ||
"*.{ts,tsx}": [ | ||
"yarn prettier", | ||
"yarn lint", | ||
"git add" | ||
], | ||
"*.{json}": [ | ||
"yarn prettier", | ||
"git add" | ||
] | ||
}, | ||
jest: jest | ||
}; | ||
const API_OAUTH_URL = process.env.ALLTHINGS_OAUTH_URL || 'https://accounts.allthings.me/oauth/token'; | ||
@@ -192,3 +27,3 @@ const REST_API_URL = process.env.ALLTHINGS_REST_API_URL || 'https://api.allthings.me/api/v1'; | ||
}; | ||
const USER_AGENT = `Allthings Node REST SDK/${packageJson.version}`; | ||
const USER_AGENT = `Allthings Node REST SDK/${require('../package.json').version}`; | ||
@@ -195,0 +30,0 @@ const partial = (fn, ...partialArgs) => (...args) => fn(...partialArgs, ...args); |
@@ -7,167 +7,2 @@ import { generate } from 'shortid'; | ||
const name = "@allthings/sdk"; | ||
const version = "0.1.0-6"; | ||
const description = ""; | ||
const author = "Allthings GmbH"; | ||
const maintainers = [ | ||
"Marco Lüthy <marco.luethy@gmail.com> (https://github.com/adieuadieu)" | ||
]; | ||
const contributors = [ | ||
"Marco Lüthy <marco.luethy@gmail.com> (https://github.com/adieuadieu)" | ||
]; | ||
const keywords = [ | ||
"allthings", | ||
"sdk" | ||
]; | ||
const license = "MIT"; | ||
const repository = "git@github.com:allthings/node-sdk.git"; | ||
const bugs = { | ||
url: "https://github.com/allthings/node-sdk/issues" | ||
}; | ||
const homepage = "https://github.com/allthings/node-sdk"; | ||
const engines = { | ||
node: ">= 8.10" | ||
}; | ||
const main = "dist/lib.cjs.js"; | ||
const module$1 = "dist/lib.es.js"; | ||
const types = "dist/src/index.d.ts"; | ||
const files = [ | ||
"dist" | ||
]; | ||
const bin = { | ||
allthings: "dist/cli.js" | ||
}; | ||
const scripts = { | ||
clean: "rimraf dist", | ||
pretest: "npm run clean", | ||
test: "jest", | ||
"watch:test": "jest --watch", | ||
lint: "yarn lint:tsc && yarn lint:tslint", | ||
"lint:tslint": "tslint -p tsconfig.json -t stylish", | ||
"lint:tsc": "tsc --noEmit --pretty", | ||
prebuild: "npm run clean", | ||
build: "tsc -d && rollup -c", | ||
dev: "tsc -w", | ||
_preversion: "git pull && yarn check --integrity && yarn security-check && yarn lint && yarn test", | ||
_postversion: "git push --tags origin HEAD", | ||
_prepublishOnly: "npm run lint && npm test && npm run security-check && npm run build", | ||
precommit: "lint-staged", | ||
prettier: "prettier --write", | ||
"security-check": "nsp", | ||
"upgrade-dependencies": "yarn upgrade-interactive --latest --exact", | ||
commitmsg: "commitlint -e $GIT_PARAMS", | ||
"semantic-release": "semantic-release -d" | ||
}; | ||
const dependencies = { | ||
bottleneck: "2.5.0", | ||
got: "8.3.1", | ||
mem: "3.0.1", | ||
shortid: "2.2.8" | ||
}; | ||
const devDependencies = { | ||
"@allthings/tslint-preset": "1.5.0", | ||
"@commitlint/cli": "7.0.0", | ||
"@commitlint/config-conventional": "7.0.1", | ||
"@types/got": "8.3.1", | ||
"@types/jest": "23.1.2", | ||
"@types/mem": "1.1.2", | ||
"@types/node": "10.3.6", | ||
"@types/shortid": "0.0.29", | ||
coveralls: "3.0.1", | ||
husky: "0.14.3", | ||
jest: "23.2.0", | ||
"lint-staged": "7.2.0", | ||
nsp: "3.2.1", | ||
nyc: "12.0.2", | ||
prettier: "1.13.6", | ||
rimraf: "2.6.2", | ||
rollup: "0.62.0", | ||
"rollup-plugin-commonjs": "9.1.3", | ||
"rollup-plugin-hashbang": "1.0.1", | ||
"rollup-plugin-json": "3.0.0", | ||
"rollup-plugin-node-resolve": "3.3.0", | ||
"semantic-release": "15.6.0", | ||
"ts-jest": "22.4.6", | ||
tslint: "5.10.0", | ||
typescript: "2.9.2" | ||
}; | ||
const prettier = { | ||
printWidth: 80, | ||
semi: false, | ||
singleQuote: true, | ||
trailingComma: "all", | ||
useTabs: false | ||
}; | ||
const commitlint = { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}; | ||
const jest = { | ||
bail: false, | ||
collectCoverage: true, | ||
roots: [ | ||
"src/" | ||
], | ||
transform: { | ||
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js" | ||
}, | ||
testEnvironment: "node", | ||
testRegex: "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", | ||
moduleFileExtensions: [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"json" | ||
], | ||
coverageThreshold: { | ||
global: { | ||
branches: 100, | ||
functions: 100, | ||
lines: 100, | ||
statements: 100 | ||
} | ||
}, | ||
coveragePathIgnorePatterns: [ | ||
"/node_modules/", | ||
"/test/" | ||
] | ||
}; | ||
var packageJson = { | ||
name: name, | ||
version: version, | ||
description: description, | ||
author: author, | ||
maintainers: maintainers, | ||
contributors: contributors, | ||
keywords: keywords, | ||
license: license, | ||
repository: repository, | ||
bugs: bugs, | ||
homepage: homepage, | ||
engines: engines, | ||
main: main, | ||
module: module$1, | ||
types: types, | ||
files: files, | ||
bin: bin, | ||
scripts: scripts, | ||
dependencies: dependencies, | ||
devDependencies: devDependencies, | ||
prettier: prettier, | ||
commitlint: commitlint, | ||
"lint-staged": { | ||
"*.{ts,tsx}": [ | ||
"yarn prettier", | ||
"yarn lint", | ||
"git add" | ||
], | ||
"*.{json}": [ | ||
"yarn prettier", | ||
"git add" | ||
] | ||
}, | ||
jest: jest | ||
}; | ||
const API_OAUTH_URL = process.env.ALLTHINGS_OAUTH_URL || 'https://accounts.allthings.me/oauth/token'; | ||
@@ -187,3 +22,3 @@ const REST_API_URL = process.env.ALLTHINGS_REST_API_URL || 'https://api.allthings.me/api/v1'; | ||
}; | ||
const USER_AGENT = `Allthings Node REST SDK/${packageJson.version}`; | ||
const USER_AGENT = `Allthings Node REST SDK/${require('../package.json').version}`; | ||
@@ -190,0 +25,0 @@ const partial = (fn, ...partialArgs) => (...args) => fn(...partialArgs, ...args); |
@@ -1,2 +0,1 @@ | ||
import packageJson from '../package.json'; | ||
export const API_OAUTH_URL = process.env.ALLTHINGS_OAUTH_URL || 'https://accounts.allthings.me/oauth/token'; | ||
@@ -16,2 +15,2 @@ export const REST_API_URL = process.env.ALLTHINGS_REST_API_URL || 'https://api.allthings.me/api/v1'; | ||
}; | ||
export const USER_AGENT = `Allthings Node REST SDK/${packageJson.version}`; | ||
export const USER_AGENT = `Allthings Node REST SDK/${require('../package.json').version}`; |
{ | ||
"name": "@allthings/sdk", | ||
"version": "0.1.0-7", | ||
"version": "0.1.0-8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Allthings GmbH", |
128684
76
2535