Skip to content

Commit

Permalink
fix: Reverts back to ES6 and CommonJS for better Node compatibility (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmantank authored Dec 16, 2022
1 parent d0dd3c1 commit 15503f9
Show file tree
Hide file tree
Showing 14 changed files with 514 additions and 160 deletions.
634 changes: 488 additions & 146 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion packages/accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"compile": "npx tsc --build --verbose"
},
"dependencies": {
"@vonage/server-client": "^1.0.7"
"@vonage/server-client": "^1.0.7",
"tslib": "^2.4.1"
},
"devDependencies": {
"@vonage/auth": "^1.0.4",
Expand Down
3 changes: 2 additions & 1 deletion packages/applications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"dependencies": {
"@vonage/auth": "^1.0.4",
"@vonage/server-client": "^1.0.7",
"@vonage/vetch": "^1.0.5"
"@vonage/vetch": "^1.0.5",
"tslib": "^2.4.1"
},
"devDependencies": {
"nock": "^13.2.9"
Expand Down
3 changes: 2 additions & 1 deletion packages/messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"dependencies": {
"@vonage/auth": "^1.0.4",
"@vonage/server-client": "^1.0.7",
"@vonage/vetch": "^1.0.5"
"@vonage/vetch": "^1.0.5",
"tslib": "^2.4.1"
},
"devDependencies": {
"nock": "^13.2.9"
Expand Down
3 changes: 2 additions & 1 deletion packages/number-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"dependencies": {
"@vonage/auth": "^1.0.4",
"@vonage/server-client": "^1.0.7",
"@vonage/vetch": "^1.0.5"
"@vonage/vetch": "^1.0.5",
"tslib": "^2.4.1"
},
"devDependencies": {
"nock": "^13.2.9"
Expand Down
3 changes: 2 additions & 1 deletion packages/numbers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"dependencies": {
"@vonage/auth": "^1.0.4",
"@vonage/server-client": "^1.0.7",
"@vonage/vetch": "^1.0.5"
"@vonage/vetch": "^1.0.5",
"tslib": "^2.4.1"
},
"devDependencies": {
"nock": "^13.2.9"
Expand Down
3 changes: 2 additions & 1 deletion packages/pricing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"dependencies": {
"@vonage/auth": "^1.0.4",
"@vonage/server-client": "^1.0.7",
"@vonage/vetch": "^1.0.5"
"@vonage/vetch": "^1.0.5",
"tslib": "^2.4.1"
},
"devDependencies": {
"nock": "^13.2.9"
Expand Down
3 changes: 2 additions & 1 deletion packages/server-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"dependencies": {
"@vonage/auth": "^1.0.4",
"@vonage/vetch": "^1.0.5"
"@vonage/vetch": "^1.0.5",
"tslib": "^2.4.1"
},
"publishConfig": {
"directory": "dist"
Expand Down
3 changes: 2 additions & 1 deletion packages/sms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"dependencies": {
"@vonage/auth": "^1.0.4",
"@vonage/server-client": "^1.0.7",
"@vonage/vetch": "^1.0.5"
"@vonage/vetch": "^1.0.5",
"tslib": "^2.4.1"
},
"devDependencies": {
"nock": "^13.2.9"
Expand Down
3 changes: 2 additions & 1 deletion packages/verify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"dependencies": {
"@vonage/auth": "^1.0.4",
"@vonage/server-client": "^1.0.7",
"@vonage/vetch": "^1.0.5"
"@vonage/vetch": "^1.0.5",
"tslib": "^2.4.1"
},
"devDependencies": {
"nock": "^13.2.9"
Expand Down
3 changes: 2 additions & 1 deletion packages/vetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"dependencies": {
"lodash.merge": "^4.6.2",
"node-fetch": "^2.6"
"node-fetch": "^2.6",
"tslib": "^2.4.1"
},
"devDependencies": {
"nock": "^13.2.9"
Expand Down
3 changes: 2 additions & 1 deletion packages/video/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"@vonage/auth": "^1.0.4",
"@vonage/jwt": "^1.0.4",
"@vonage/server-client": "^1.0.7",
"@vonage/vetch": "^1.0.5"
"@vonage/vetch": "^1.0.5",
"tslib": "^2.4.1"
},
"devDependencies": {
"jsonwebtoken": "^8.5.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/voice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"dependencies": {
"@vonage/auth": "^1.0.4",
"@vonage/server-client": "^1.0.7",
"@vonage/vetch": "^1.0.5"
"@vonage/vetch": "^1.0.5",
"tslib": "^2.4.1"
},
"devDependencies": {
"nock": "^13.2.9"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
],

"strict": false,
"target": "ES2020",
"module": "ES2020",
"target": "ES6",
"module": "CommonJS",
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
Expand Down

0 comments on commit 15503f9

Please sign in to comment.