dymo-api 1.0.58 → 1.0.59

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.
@@ -56,7 +56,7 @@ class DymoAPI {
56
56
  * local: true
57
57
  * });
58
58
  */
59
- constructor({ rootApiKey = null, apiKey = null, local = false, serverEmailConfig = undefined }) {
59
+ constructor({ rootApiKey = null, apiKey = null, local = false, serverEmailConfig = undefined } = {}) {
60
60
  this.rootApiKey = rootApiKey;
61
61
  this.apiKey = apiKey;
62
62
  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,10 +1,11 @@
1
1
  {
2
2
  "name": "dymo-api",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/cjs/dymo-api.js",
6
6
  "module": "dist/esm/dymo-api.js",
7
7
  "types": "dist/types/dymo-api.d.ts",
8
+ "type": "module",
8
9
  "exports": {
9
10
  ".": {
10
11
  "require": "./dist/cjs/dymo-api.js",
@@ -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",