rotacloud 1.0.13 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitattributes ADDED
@@ -0,0 +1 @@
1
+ * text=auto eol=lf
@@ -25,7 +25,6 @@ jobs:
25
25
  cache: 'npm'
26
26
  registry-url: https://registry.npmjs.org/
27
27
  - run: npm ci
28
- - run: npm run version:output
29
28
  - run: npm run lint
30
29
  - run: npm run build --if-present
31
30
  - run: npm publish
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # RotaCloud Node SDK
2
2
 
3
+ ## Contributing
4
+
5
+ Please ensure you perform the ```npm run version:all``` command before commiting and pushing your changes to the remote branch.
6
+
7
+
3
8
  ## Configuration
4
9
 
5
10
  Configuration is simple, just import the core rotacloud.js SDK and supply your API key as necessary.
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Version = void 0;
4
- exports.Version = { version: "1.0.13" };
4
+ exports.Version = { version: '1.0.16' };
@@ -1 +1 @@
1
- export const Version = { version: "1.0.13" };
1
+ export const Version = { version: '1.0.16' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rotacloud",
3
- "version": "1.0.13",
3
+ "version": "1.0.16",
4
4
  "description": "The RotaCloud SDK for the RotaCloud API",
5
5
  "engines": {
6
6
  "node": ">=14.17.0"
@@ -14,7 +14,9 @@
14
14
  }
15
15
  },
16
16
  "scripts": {
17
- "version:output": "echo 'export const Version = { version: \"'$npm_package_version'\" }' > ./src/version.ts",
17
+ "version:bump": "npm --no-git-tag-version version patch",
18
+ "version:copy": "cross-var echo export const Version = { version: \"'$npm_package_version'\" } > ./src/version.ts",
19
+ "version:all": "npm run version:bump && npm run version:copy",
18
20
  "build": "rm -rf dist/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && ./fixup",
19
21
  "watch": "rm -rf ./dist && tsc --watch",
20
22
  "lint": "eslint src --ext .ts",
@@ -45,6 +47,7 @@
45
47
  },
46
48
  "dependencies": {
47
49
  "@types/node": "^16.11.6",
48
- "axios": "^0.23.0"
50
+ "axios": "^0.23.0",
51
+ "cross-var": "^1.1.0"
49
52
  }
50
53
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const Version = { version: "1.0.13" }
1
+ export const Version = { version: '1.0.16' }