ynab 1.42.0 → 1.45.0

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.
@@ -12,7 +12,7 @@
12
12
  */
13
13
  var Configuration = /** @class */ (function () {
14
14
  function Configuration(accessToken, basePath) {
15
- this.apiKey = "Bearer " + accessToken;
15
+ this.apiKey = "Bearer ".concat(accessToken);
16
16
  this.basePath = basePath;
17
17
  }
18
18
  return Configuration;
@@ -22,7 +22,7 @@ export declare class TransactionsApi extends CodeGen.TransactionsApi {
22
22
  * @throws {RequiredError}
23
23
  * @memberof TransactionsApi
24
24
  */
25
- createTransactions(budget_id: string, data: CodeGen.SaveTransactionsWrapper, options?: any): Promise<CodeGen.SaveTransactionsResponse & {
25
+ createTransactions(budget_id: string, data: CodeGen.PostTransactionsWrapper, options?: any): Promise<CodeGen.SaveTransactionsResponse & {
26
26
  rateLimit: string | null;
27
27
  }>;
28
28
  /**
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
package/dist/esm/utils.js CHANGED
@@ -3,7 +3,7 @@ export default {
3
3
  * Returns the current month (system timezone) in ISO 8601 format (i.e. '2015-12-01')
4
4
  */
5
5
  getCurrentMonthInISOFormat: function () {
6
- return this.getCurrentDateInISOFormat().substr(0, 7) + "-01";
6
+ return "".concat(this.getCurrentDateInISOFormat().substr(0, 7), "-01");
7
7
  },
8
8
  /**
9
9
  * Returns the current date (system timezone) in ISO 8601 format (i.e. '2015-12-15')
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
19
19
  o[k2] = m[k];
20
20
  }));
21
21
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
22
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.api = exports.utils = exports.API = void 0;
@@ -22,7 +22,7 @@ export declare class TransactionsApi extends CodeGen.TransactionsApi {
22
22
  * @throws {RequiredError}
23
23
  * @memberof TransactionsApi
24
24
  */
25
- createTransactions(budget_id: string, data: CodeGen.SaveTransactionsWrapper, options?: any): Promise<CodeGen.SaveTransactionsResponse & {
25
+ createTransactions(budget_id: string, data: CodeGen.PostTransactionsWrapper, options?: any): Promise<CodeGen.SaveTransactionsResponse & {
26
26
  rateLimit: string | null;
27
27
  }>;
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ynab",
3
- "version": "1.42.0",
3
+ "version": "1.45.0",
4
4
  "description": "YNAB API Javascript (Node) Library",
5
5
  "author": "You Need a Budget, LLC",
6
6
  "keywords": [
@@ -30,7 +30,7 @@
30
30
  "build": "tsc -b src/ test/ examples/ && tsc -b src/tsconfig.esm.json && webpack --mode production && npm run build_examples",
31
31
  "build_examples": "tsc -b examples/",
32
32
  "test": "TS_NODE_PROJECT=./test/tsconfig.json mocha --reporter spec --require ts-node/register/type-check 'test/**/*.ts'",
33
- "release": "npm run build && npm run test && git add dist/* && git commit -m 'Build dist/'; npm-github-release"
33
+ "prepublishOnly": "npm run build && npm run test && git add dist/* && git commit -m 'Build dist/' || true"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/chai": "^4.2.12",
@@ -41,11 +41,10 @@
41
41
  "fetch-mock": "^9.10.6",
42
42
  "jsh": "0.34.0",
43
43
  "mocha": "^10.2.0",
44
- "npm-github-release": "^0.13.0",
45
44
  "swagger-model-validator": "^3.0.19",
46
45
  "ts-loader": "^8.0.2",
47
46
  "ts-node": "^8.10.2",
48
- "typescript": "^3.9.7",
47
+ "typescript": "4.5.5",
49
48
  "url": "^0.11.0",
50
49
  "webpack": "^5.74.0",
51
50
  "webpack-cli": "^5.0.1"