dymo-api 1.0.58 → 1.0.60

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.
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -56,7 +66,7 @@ class DymoAPI {
56
66
  * local: true
57
67
  * });
58
68
  */
59
- constructor({ rootApiKey = null, apiKey = null, local = false, serverEmailConfig = undefined }) {
69
+ constructor({ rootApiKey = null, apiKey = null, local = false, serverEmailConfig = undefined } = {}) {
60
70
  this.rootApiKey = rootApiKey;
61
71
  this.apiKey = apiKey;
62
72
  this.tokensResponse = null;
@@ -28,7 +28,7 @@ class DymoAPI {
28
28
  * local: true
29
29
  * });
30
30
  */
31
- constructor({ rootApiKey = null, apiKey = null, local = false, serverEmailConfig = undefined }) {
31
+ constructor({ rootApiKey = null, apiKey = null, local = false, serverEmailConfig = undefined } = {}) {
32
32
  this.rootApiKey = rootApiKey;
33
33
  this.apiKey = apiKey;
34
34
  this.tokensResponse = null;
@@ -37,7 +37,7 @@ declare class DymoAPI {
37
37
  * local: true
38
38
  * });
39
39
  */
40
- constructor({ rootApiKey, apiKey, local, serverEmailConfig }: {
40
+ constructor({ rootApiKey, apiKey, local, serverEmailConfig }?: {
41
41
  rootApiKey?: string | null;
42
42
  apiKey?: string | null;
43
43
  local?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dymo-api",
3
- "version": "1.0.58",
3
+ "version": "1.0.60",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/cjs/dymo-api.js",
6
6
  "module": "dist/esm/dymo-api.js",
@@ -9,6 +9,7 @@
9
9
  ".": {
10
10
  "require": "./dist/cjs/dymo-api.js",
11
11
  "import": "./dist/esm/dymo-api.js",
12
+ "default": "./dist/esm/dymo-api.js",
12
13
  "types": "./dist/types/dymo-api.d.ts"
13
14
  }
14
15
  },
@@ -37,7 +38,7 @@
37
38
  "bugs": {
38
39
  "url": "https://github.com/TPEOficial/dymo-api-node/issues"
39
40
  },
40
- "homepage": "https://dymo.tpeoficial.com/",
41
+ "homepage": "https://dymo.tpeoficial.com",
41
42
  "dependencies": {
42
43
  "@react-email/render": "1.0.1",
43
44
  "@types/react": "^18.3.5",
@@ -56,4 +57,4 @@
56
57
  "ts-node": "^10.9.2",
57
58
  "typescript": "^5.5.4"
58
59
  }
59
- }
60
+ }