@prezly/sdk 11.7.1 → 11.8.1-cjs

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.
Files changed (134) hide show
  1. package/dist/Client.js +33 -27
  2. package/dist/api/ApiClient.js +19 -12
  3. package/dist/api/DeferredJobsApiClient.js +19 -12
  4. package/dist/api/constants.js +9 -2
  5. package/dist/api/index.js +19 -2
  6. package/dist/endpoints/Accounts/Client.js +13 -6
  7. package/dist/endpoints/Accounts/index.js +25 -2
  8. package/dist/endpoints/Accounts/types.js +1 -1
  9. package/dist/endpoints/Billing/Client.js +11 -4
  10. package/dist/endpoints/Billing/index.js +25 -2
  11. package/dist/endpoints/Billing/types.js +15 -6
  12. package/dist/endpoints/CampaignRecipients/Client.js +19 -12
  13. package/dist/endpoints/CampaignRecipients/index.js +37 -3
  14. package/dist/endpoints/CampaignRecipients/types.js +1 -1
  15. package/dist/endpoints/Campaigns/Client.js +25 -18
  16. package/dist/endpoints/Campaigns/index.js +25 -2
  17. package/dist/endpoints/Campaigns/types.js +1 -1
  18. package/dist/endpoints/ContactsExports/Client.js +15 -8
  19. package/dist/endpoints/ContactsExports/index.js +37 -3
  20. package/dist/endpoints/ContactsExports/types.js +1 -1
  21. package/dist/endpoints/Coverage/Client.js +19 -12
  22. package/dist/endpoints/Coverage/index.js +25 -2
  23. package/dist/endpoints/Coverage/types.js +1 -1
  24. package/dist/endpoints/Jobs/Client.js +11 -4
  25. package/dist/endpoints/Jobs/index.js +25 -2
  26. package/dist/endpoints/Jobs/types.js +1 -1
  27. package/dist/endpoints/Licenses/Client.js +11 -4
  28. package/dist/endpoints/Licenses/index.js +15 -1
  29. package/dist/endpoints/NewsroomCategories/Client.js +15 -8
  30. package/dist/endpoints/NewsroomCategories/index.js +25 -2
  31. package/dist/endpoints/NewsroomCategories/types.js +1 -1
  32. package/dist/endpoints/NewsroomContacts/Client.js +18 -11
  33. package/dist/endpoints/NewsroomContacts/index.js +25 -2
  34. package/dist/endpoints/NewsroomContacts/types.js +1 -1
  35. package/dist/endpoints/NewsroomDomains/Client.js +16 -9
  36. package/dist/endpoints/NewsroomDomains/index.js +25 -2
  37. package/dist/endpoints/NewsroomDomains/types.js +1 -1
  38. package/dist/endpoints/NewsroomGalleries/Client.js +20 -13
  39. package/dist/endpoints/NewsroomGalleries/index.js +25 -2
  40. package/dist/endpoints/NewsroomGalleries/types.js +1 -1
  41. package/dist/endpoints/NewsroomLanguages/Client.js +17 -10
  42. package/dist/endpoints/NewsroomLanguages/index.js +25 -2
  43. package/dist/endpoints/NewsroomLanguages/lib.js +7 -1
  44. package/dist/endpoints/NewsroomLanguages/types.js +1 -1
  45. package/dist/endpoints/NewsroomPrivacyRequests/Client.js +12 -5
  46. package/dist/endpoints/NewsroomPrivacyRequests/index.js +25 -2
  47. package/dist/endpoints/NewsroomPrivacyRequests/types.js +1 -1
  48. package/dist/endpoints/NewsroomSubscriptions/Client.js +11 -4
  49. package/dist/endpoints/NewsroomSubscriptions/index.js +25 -2
  50. package/dist/endpoints/NewsroomSubscriptions/types.js +1 -1
  51. package/dist/endpoints/NewsroomThemes/Client.js +14 -7
  52. package/dist/endpoints/NewsroomThemes/index.js +15 -1
  53. package/dist/endpoints/NewsroomWebhooks/Client.js +15 -8
  54. package/dist/endpoints/NewsroomWebhooks/index.js +25 -2
  55. package/dist/endpoints/NewsroomWebhooks/types.js +1 -1
  56. package/dist/endpoints/Newsrooms/Client.js +22 -15
  57. package/dist/endpoints/Newsrooms/index.js +25 -2
  58. package/dist/endpoints/Newsrooms/types.js +1 -1
  59. package/dist/endpoints/NotificationSubscriptions/Client.js +12 -5
  60. package/dist/endpoints/NotificationSubscriptions/index.js +25 -2
  61. package/dist/endpoints/NotificationSubscriptions/types.js +1 -1
  62. package/dist/endpoints/SenderAddresses/Client.js +15 -8
  63. package/dist/endpoints/SenderAddresses/index.js +25 -2
  64. package/dist/endpoints/SenderAddresses/types.js +1 -1
  65. package/dist/endpoints/Signup/Client.js +11 -4
  66. package/dist/endpoints/Signup/index.js +25 -2
  67. package/dist/endpoints/Signup/types.js +9 -2
  68. package/dist/endpoints/Snippets/Client.js +15 -8
  69. package/dist/endpoints/Snippets/index.js +25 -2
  70. package/dist/endpoints/Snippets/types.js +1 -1
  71. package/dist/endpoints/Stories/Client.js +30 -23
  72. package/dist/endpoints/Stories/index.js +35 -3
  73. package/dist/endpoints/Stories/scopes.js +11 -4
  74. package/dist/endpoints/Stories/types.d.ts +5 -0
  75. package/dist/endpoints/Stories/types.js +10 -2
  76. package/dist/endpoints/Subscriptions/Client.js +15 -8
  77. package/dist/endpoints/Subscriptions/index.js +25 -2
  78. package/dist/endpoints/Subscriptions/types.js +9 -2
  79. package/dist/endpoints/index.js +56 -24
  80. package/dist/http/ApiError.js +9 -2
  81. package/dist/http/Http.js +21 -14
  82. package/dist/http/constants.js +12 -3
  83. package/dist/http/createRequest.js +20 -13
  84. package/dist/http/index.js +39 -4
  85. package/dist/http/lib.js +16 -6
  86. package/dist/http/types.js +12 -4
  87. package/dist/index.js +56 -5
  88. package/dist/routing.js +9 -2
  89. package/dist/types/Campaign.js +11 -4
  90. package/dist/types/Category.js +1 -1
  91. package/dist/types/Contact.js +9 -2
  92. package/dist/types/ContactDuplicateSuggestion.js +9 -2
  93. package/dist/types/ContactsExport.js +9 -2
  94. package/dist/types/ContactsScope.js +9 -2
  95. package/dist/types/Country.js +1 -1
  96. package/dist/types/CoverageEntry.js +9 -2
  97. package/dist/types/Culture.js +9 -2
  98. package/dist/types/Currency.js +9 -2
  99. package/dist/types/DnsConfigurationInstruction.js +1 -1
  100. package/dist/types/EmailRecipient.js +9 -2
  101. package/dist/types/EmailSubscription.js +1 -1
  102. package/dist/types/JobState.js +9 -2
  103. package/dist/types/License.js +9 -2
  104. package/dist/types/Newsroom.js +9 -2
  105. package/dist/types/NewsroomCompanyInformation.js +1 -1
  106. package/dist/types/NewsroomContact.js +1 -1
  107. package/dist/types/NewsroomDomain.js +9 -2
  108. package/dist/types/NewsroomGallery.js +9 -2
  109. package/dist/types/NewsroomLanguageSettings.js +1 -1
  110. package/dist/types/NewsroomTheme.js +12 -4
  111. package/dist/types/NewsroomWebhook.js +9 -2
  112. package/dist/types/NotificationSubscription.js +9 -2
  113. package/dist/types/Permissions.js +9 -2
  114. package/dist/types/Plan.js +9 -2
  115. package/dist/types/PrivacyRequest.js +9 -2
  116. package/dist/types/SEOSettings.d.ts +7 -0
  117. package/dist/types/SEOSettings.js +1 -0
  118. package/dist/types/SenderAddress.js +9 -2
  119. package/dist/types/SenderDomain.js +9 -2
  120. package/dist/types/Snippet.js +1 -1
  121. package/dist/types/Story.d.ts +2 -0
  122. package/dist/types/Story.js +9 -2
  123. package/dist/types/User.js +9 -2
  124. package/dist/types/UserAccount.js +1 -1
  125. package/dist/types/common/Notification.js +9 -2
  126. package/dist/types/common/OEmbedInfo.js +9 -2
  127. package/dist/types/common/Pagination.js +9 -4
  128. package/dist/types/common/Query.js +9 -3
  129. package/dist/types/common/Utm.js +1 -1
  130. package/dist/types/common/Warning.js +1 -1
  131. package/dist/types/common/index.js +65 -6
  132. package/dist/types/index.js +325 -33
  133. package/dist/utils.js +9 -2
  134. package/package.json +6 -5
@@ -1,33 +1,325 @@
1
- // Common
2
- export * from "./common/index.js"; // Entities
3
- export * from "./Campaign.js";
4
- export * from "./Category.js";
5
- export * from "./Contact.js";
6
- export * from "./ContactsExport.js";
7
- export * from "./ContactsScope.js";
8
- export * from "./Country.js";
9
- export * from "./CoverageEntry.js";
10
- export * from "./Culture.js";
11
- export * from "./Currency.js";
12
- export * from "./DnsConfigurationInstruction.js";
13
- export * from "./EmailRecipient.js";
14
- export * from "./EmailSubscription.js";
15
- export * from "./JobState.js";
16
- export * from "./License.js";
17
- export * from "./Newsroom.js";
18
- export * from "./NewsroomCompanyInformation.js";
19
- export * from "./NewsroomContact.js";
20
- export * from "./NewsroomDomain.js";
21
- export * from "./NewsroomGallery.js";
22
- export * from "./NewsroomLanguageSettings.js";
23
- export * from "./NewsroomTheme.js";
24
- export * from "./NewsroomWebhook.js";
25
- export * from "./Plan.js";
26
- export * from "./PrivacyRequest.js";
27
- export * from "./SenderAddress.js";
28
- export * from "./SenderDomain.js";
29
- export * from "./Snippet.js";
30
- export * from "./Story.js";
31
- export * from "./User.js";
32
- export * from "./UserAccount.js";
33
- export * from "./NotificationSubscription.js";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _index = require("./common/index.js");
7
+ Object.keys(_index).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ Object.defineProperty(exports, key, {
10
+ enumerable: true,
11
+ get: function () {
12
+ return _index[key];
13
+ }
14
+ });
15
+ });
16
+ var _Campaign = require("./Campaign.js");
17
+ Object.keys(_Campaign).forEach(function (key) {
18
+ if (key === "default" || key === "__esModule") return;
19
+ Object.defineProperty(exports, key, {
20
+ enumerable: true,
21
+ get: function () {
22
+ return _Campaign[key];
23
+ }
24
+ });
25
+ });
26
+ var _Category = require("./Category.js");
27
+ Object.keys(_Category).forEach(function (key) {
28
+ if (key === "default" || key === "__esModule") return;
29
+ Object.defineProperty(exports, key, {
30
+ enumerable: true,
31
+ get: function () {
32
+ return _Category[key];
33
+ }
34
+ });
35
+ });
36
+ var _Contact = require("./Contact.js");
37
+ Object.keys(_Contact).forEach(function (key) {
38
+ if (key === "default" || key === "__esModule") return;
39
+ Object.defineProperty(exports, key, {
40
+ enumerable: true,
41
+ get: function () {
42
+ return _Contact[key];
43
+ }
44
+ });
45
+ });
46
+ var _ContactsExport = require("./ContactsExport.js");
47
+ Object.keys(_ContactsExport).forEach(function (key) {
48
+ if (key === "default" || key === "__esModule") return;
49
+ Object.defineProperty(exports, key, {
50
+ enumerable: true,
51
+ get: function () {
52
+ return _ContactsExport[key];
53
+ }
54
+ });
55
+ });
56
+ var _ContactsScope = require("./ContactsScope.js");
57
+ Object.keys(_ContactsScope).forEach(function (key) {
58
+ if (key === "default" || key === "__esModule") return;
59
+ Object.defineProperty(exports, key, {
60
+ enumerable: true,
61
+ get: function () {
62
+ return _ContactsScope[key];
63
+ }
64
+ });
65
+ });
66
+ var _Country = require("./Country.js");
67
+ Object.keys(_Country).forEach(function (key) {
68
+ if (key === "default" || key === "__esModule") return;
69
+ Object.defineProperty(exports, key, {
70
+ enumerable: true,
71
+ get: function () {
72
+ return _Country[key];
73
+ }
74
+ });
75
+ });
76
+ var _CoverageEntry = require("./CoverageEntry.js");
77
+ Object.keys(_CoverageEntry).forEach(function (key) {
78
+ if (key === "default" || key === "__esModule") return;
79
+ Object.defineProperty(exports, key, {
80
+ enumerable: true,
81
+ get: function () {
82
+ return _CoverageEntry[key];
83
+ }
84
+ });
85
+ });
86
+ var _Culture = require("./Culture.js");
87
+ Object.keys(_Culture).forEach(function (key) {
88
+ if (key === "default" || key === "__esModule") return;
89
+ Object.defineProperty(exports, key, {
90
+ enumerable: true,
91
+ get: function () {
92
+ return _Culture[key];
93
+ }
94
+ });
95
+ });
96
+ var _Currency = require("./Currency.js");
97
+ Object.keys(_Currency).forEach(function (key) {
98
+ if (key === "default" || key === "__esModule") return;
99
+ Object.defineProperty(exports, key, {
100
+ enumerable: true,
101
+ get: function () {
102
+ return _Currency[key];
103
+ }
104
+ });
105
+ });
106
+ var _DnsConfigurationInstruction = require("./DnsConfigurationInstruction.js");
107
+ Object.keys(_DnsConfigurationInstruction).forEach(function (key) {
108
+ if (key === "default" || key === "__esModule") return;
109
+ Object.defineProperty(exports, key, {
110
+ enumerable: true,
111
+ get: function () {
112
+ return _DnsConfigurationInstruction[key];
113
+ }
114
+ });
115
+ });
116
+ var _EmailRecipient = require("./EmailRecipient.js");
117
+ Object.keys(_EmailRecipient).forEach(function (key) {
118
+ if (key === "default" || key === "__esModule") return;
119
+ Object.defineProperty(exports, key, {
120
+ enumerable: true,
121
+ get: function () {
122
+ return _EmailRecipient[key];
123
+ }
124
+ });
125
+ });
126
+ var _EmailSubscription = require("./EmailSubscription.js");
127
+ Object.keys(_EmailSubscription).forEach(function (key) {
128
+ if (key === "default" || key === "__esModule") return;
129
+ Object.defineProperty(exports, key, {
130
+ enumerable: true,
131
+ get: function () {
132
+ return _EmailSubscription[key];
133
+ }
134
+ });
135
+ });
136
+ var _JobState = require("./JobState.js");
137
+ Object.keys(_JobState).forEach(function (key) {
138
+ if (key === "default" || key === "__esModule") return;
139
+ Object.defineProperty(exports, key, {
140
+ enumerable: true,
141
+ get: function () {
142
+ return _JobState[key];
143
+ }
144
+ });
145
+ });
146
+ var _License = require("./License.js");
147
+ Object.keys(_License).forEach(function (key) {
148
+ if (key === "default" || key === "__esModule") return;
149
+ Object.defineProperty(exports, key, {
150
+ enumerable: true,
151
+ get: function () {
152
+ return _License[key];
153
+ }
154
+ });
155
+ });
156
+ var _Newsroom = require("./Newsroom.js");
157
+ Object.keys(_Newsroom).forEach(function (key) {
158
+ if (key === "default" || key === "__esModule") return;
159
+ Object.defineProperty(exports, key, {
160
+ enumerable: true,
161
+ get: function () {
162
+ return _Newsroom[key];
163
+ }
164
+ });
165
+ });
166
+ var _NewsroomCompanyInformation = require("./NewsroomCompanyInformation.js");
167
+ Object.keys(_NewsroomCompanyInformation).forEach(function (key) {
168
+ if (key === "default" || key === "__esModule") return;
169
+ Object.defineProperty(exports, key, {
170
+ enumerable: true,
171
+ get: function () {
172
+ return _NewsroomCompanyInformation[key];
173
+ }
174
+ });
175
+ });
176
+ var _NewsroomContact = require("./NewsroomContact.js");
177
+ Object.keys(_NewsroomContact).forEach(function (key) {
178
+ if (key === "default" || key === "__esModule") return;
179
+ Object.defineProperty(exports, key, {
180
+ enumerable: true,
181
+ get: function () {
182
+ return _NewsroomContact[key];
183
+ }
184
+ });
185
+ });
186
+ var _NewsroomDomain = require("./NewsroomDomain.js");
187
+ Object.keys(_NewsroomDomain).forEach(function (key) {
188
+ if (key === "default" || key === "__esModule") return;
189
+ Object.defineProperty(exports, key, {
190
+ enumerable: true,
191
+ get: function () {
192
+ return _NewsroomDomain[key];
193
+ }
194
+ });
195
+ });
196
+ var _NewsroomGallery = require("./NewsroomGallery.js");
197
+ Object.keys(_NewsroomGallery).forEach(function (key) {
198
+ if (key === "default" || key === "__esModule") return;
199
+ Object.defineProperty(exports, key, {
200
+ enumerable: true,
201
+ get: function () {
202
+ return _NewsroomGallery[key];
203
+ }
204
+ });
205
+ });
206
+ var _NewsroomLanguageSettings = require("./NewsroomLanguageSettings.js");
207
+ Object.keys(_NewsroomLanguageSettings).forEach(function (key) {
208
+ if (key === "default" || key === "__esModule") return;
209
+ Object.defineProperty(exports, key, {
210
+ enumerable: true,
211
+ get: function () {
212
+ return _NewsroomLanguageSettings[key];
213
+ }
214
+ });
215
+ });
216
+ var _NewsroomTheme = require("./NewsroomTheme.js");
217
+ Object.keys(_NewsroomTheme).forEach(function (key) {
218
+ if (key === "default" || key === "__esModule") return;
219
+ Object.defineProperty(exports, key, {
220
+ enumerable: true,
221
+ get: function () {
222
+ return _NewsroomTheme[key];
223
+ }
224
+ });
225
+ });
226
+ var _NewsroomWebhook = require("./NewsroomWebhook.js");
227
+ Object.keys(_NewsroomWebhook).forEach(function (key) {
228
+ if (key === "default" || key === "__esModule") return;
229
+ Object.defineProperty(exports, key, {
230
+ enumerable: true,
231
+ get: function () {
232
+ return _NewsroomWebhook[key];
233
+ }
234
+ });
235
+ });
236
+ var _Plan = require("./Plan.js");
237
+ Object.keys(_Plan).forEach(function (key) {
238
+ if (key === "default" || key === "__esModule") return;
239
+ Object.defineProperty(exports, key, {
240
+ enumerable: true,
241
+ get: function () {
242
+ return _Plan[key];
243
+ }
244
+ });
245
+ });
246
+ var _PrivacyRequest = require("./PrivacyRequest.js");
247
+ Object.keys(_PrivacyRequest).forEach(function (key) {
248
+ if (key === "default" || key === "__esModule") return;
249
+ Object.defineProperty(exports, key, {
250
+ enumerable: true,
251
+ get: function () {
252
+ return _PrivacyRequest[key];
253
+ }
254
+ });
255
+ });
256
+ var _SenderAddress = require("./SenderAddress.js");
257
+ Object.keys(_SenderAddress).forEach(function (key) {
258
+ if (key === "default" || key === "__esModule") return;
259
+ Object.defineProperty(exports, key, {
260
+ enumerable: true,
261
+ get: function () {
262
+ return _SenderAddress[key];
263
+ }
264
+ });
265
+ });
266
+ var _SenderDomain = require("./SenderDomain.js");
267
+ Object.keys(_SenderDomain).forEach(function (key) {
268
+ if (key === "default" || key === "__esModule") return;
269
+ Object.defineProperty(exports, key, {
270
+ enumerable: true,
271
+ get: function () {
272
+ return _SenderDomain[key];
273
+ }
274
+ });
275
+ });
276
+ var _Snippet = require("./Snippet.js");
277
+ Object.keys(_Snippet).forEach(function (key) {
278
+ if (key === "default" || key === "__esModule") return;
279
+ Object.defineProperty(exports, key, {
280
+ enumerable: true,
281
+ get: function () {
282
+ return _Snippet[key];
283
+ }
284
+ });
285
+ });
286
+ var _Story = require("./Story.js");
287
+ Object.keys(_Story).forEach(function (key) {
288
+ if (key === "default" || key === "__esModule") return;
289
+ Object.defineProperty(exports, key, {
290
+ enumerable: true,
291
+ get: function () {
292
+ return _Story[key];
293
+ }
294
+ });
295
+ });
296
+ var _User = require("./User.js");
297
+ Object.keys(_User).forEach(function (key) {
298
+ if (key === "default" || key === "__esModule") return;
299
+ Object.defineProperty(exports, key, {
300
+ enumerable: true,
301
+ get: function () {
302
+ return _User[key];
303
+ }
304
+ });
305
+ });
306
+ var _UserAccount = require("./UserAccount.js");
307
+ Object.keys(_UserAccount).forEach(function (key) {
308
+ if (key === "default" || key === "__esModule") return;
309
+ Object.defineProperty(exports, key, {
310
+ enumerable: true,
311
+ get: function () {
312
+ return _UserAccount[key];
313
+ }
314
+ });
315
+ });
316
+ var _NotificationSubscription = require("./NotificationSubscription.js");
317
+ Object.keys(_NotificationSubscription).forEach(function (key) {
318
+ if (key === "default" || key === "__esModule") return;
319
+ Object.defineProperty(exports, key, {
320
+ enumerable: true,
321
+ get: function () {
322
+ return _NotificationSubscription[key];
323
+ }
324
+ });
325
+ });
package/dist/utils.js CHANGED
@@ -1,3 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.stripSlashes = stripSlashes;
7
+ exports.toIso8601 = toIso8601;
1
8
  /**
2
9
  * Remove heading and trailing slashes.
3
10
  * Examples:
@@ -5,7 +12,7 @@
5
12
  * - /v2/path -> v2/path
6
13
  * - /v2/path/ -> v2/path
7
14
  */
8
- export function stripSlashes(url) {
15
+ function stripSlashes(url) {
9
16
  return url.replace(/^\/|\/$/g, '');
10
17
  }
11
18
  function pad(num) {
@@ -16,7 +23,7 @@ function pad(num) {
16
23
  /**
17
24
  * @see https://stackoverflow.com/a/17415677/1895069
18
25
  */
19
- export function toIso8601(date) {
26
+ function toIso8601(date) {
20
27
  const offset = -date.getTimezoneOffset();
21
28
  const sign = offset >= 0 ? '+' : '-';
22
29
  return date.getFullYear() + '-' + pad(date.getMonth() + 1) + '-' + pad(date.getDate()) + 'T' + pad(date.getHours()) + ':' + pad(date.getMinutes()) + ':' + pad(date.getSeconds()) + sign + pad(offset / 60) + ':' + pad(offset % 60);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "11.7.1",
3
+ "version": "11.8.1-cjs",
4
4
  "description": "Prezly API SDK",
5
- "type": "module",
5
+ "type": "commonjs",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist/**"
@@ -24,6 +24,7 @@
24
24
  "devDependencies": {
25
25
  "@babel/cli": "^7.19.3",
26
26
  "@babel/core": "^7.7.2",
27
+ "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
27
28
  "@babel/preset-env": "^7.7.1",
28
29
  "@babel/preset-typescript": "^7.18.6",
29
30
  "@types/node": "^12.12.9",
@@ -46,9 +47,9 @@
46
47
  "scripts": {
47
48
  "clean": "rimraf dist node_modules",
48
49
  "prebuild": "npm run clean && npm ci",
49
- "build": "npm run build:types && npm run build:es",
50
+ "build": "npm run build:types && npm run build:cjs",
50
51
  "build:types": "tsc --project .",
51
- "build:es": "babel ./src --ignore='**/*.test.ts' --config-file=./babel.config.json --extensions=.ts,.cts --source-root=./src --out-dir=./dist",
52
+ "build:cjs": "babel ./src --ignore='**/*.test.ts' --config-file=./babel.config.json --extensions=.ts,.cts --source-root=./src --out-dir=./dist",
52
53
  "watch": "tsc --watch --preserveWatchOutput --project .",
53
54
  "start": "npm run build --incremental --watch",
54
55
  "lint": "eslint ./src --ext=.ts",
@@ -60,7 +61,7 @@
60
61
  "prettier:check": "prettier --check './src/**/*.{ts,js}'",
61
62
  "prettier:fix": "prettier --write './src/**/*.{ts,js}'",
62
63
  "prerelease": "npm run clean && npm run build",
63
- "release": "np"
64
+ "release": "np --any-branch --no-tests"
64
65
  },
65
66
  "np": {
66
67
  "yarn": false