@tryghost/content-api 1.11.1 → 1.11.2
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.
- package/cjs/content-api.js +7 -7
- package/es/content-api.js +72 -57
- package/es/content-api.js.map +1 -1
- package/package.json +7 -7
- package/umd/content-api.min.js +1 -1
- package/umd/content-api.min.js.map +1 -1
package/cjs/content-api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var axios = require('axios');
|
|
4
4
|
|
|
5
5
|
var name$1 = "@tryghost/content-api";
|
|
6
|
-
var version = "1.11.
|
|
6
|
+
var version = "1.11.2";
|
|
7
7
|
var repository = "https://github.com/TryGhost/SDK/tree/master/packages/content-api";
|
|
8
8
|
var author = "Ghost Foundation";
|
|
9
9
|
var license = "MIT";
|
|
@@ -32,15 +32,15 @@ var publishConfig = {
|
|
|
32
32
|
access: "public"
|
|
33
33
|
};
|
|
34
34
|
var devDependencies = {
|
|
35
|
-
"@babel/core": "7.
|
|
35
|
+
"@babel/core": "7.19.0",
|
|
36
36
|
"@babel/polyfill": "7.12.1",
|
|
37
|
-
"@babel/preset-env": "7.
|
|
37
|
+
"@babel/preset-env": "7.19.0",
|
|
38
38
|
"@rollup/plugin-json": "4.1.0",
|
|
39
39
|
c8: "7.12.0",
|
|
40
|
-
"core-js": "3.
|
|
41
|
-
"eslint-plugin-ghost": "2.
|
|
40
|
+
"core-js": "3.25.0",
|
|
41
|
+
"eslint-plugin-ghost": "2.15.1",
|
|
42
42
|
mocha: "10.0.0",
|
|
43
|
-
rollup: "2.
|
|
43
|
+
rollup: "2.79.0",
|
|
44
44
|
"rollup-plugin-babel": "4.4.0",
|
|
45
45
|
"rollup-plugin-commonjs": "10.1.0",
|
|
46
46
|
"rollup-plugin-node-resolve": "5.2.0",
|
|
@@ -53,7 +53,7 @@ var devDependencies = {
|
|
|
53
53
|
var dependencies = {
|
|
54
54
|
axios: "^0.27.0"
|
|
55
55
|
};
|
|
56
|
-
var gitHead = "
|
|
56
|
+
var gitHead = "3547712bea5948482aabe9cbe484561501885de9";
|
|
57
57
|
var packageInfo = {
|
|
58
58
|
name: name$1,
|
|
59
59
|
version: version,
|
package/es/content-api.js
CHANGED
|
@@ -120,12 +120,18 @@ var indexedObject = fails(function () {
|
|
|
120
120
|
return classofRaw(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
121
121
|
} : $Object$3;
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
124
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
125
|
+
var isNullOrUndefined$1 = function (it) {
|
|
126
|
+
return it === null || it === undefined;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
var $TypeError$f = TypeError;
|
|
124
130
|
|
|
125
131
|
// `RequireObjectCoercible` abstract operation
|
|
126
132
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
127
133
|
var requireObjectCoercible = function (it) {
|
|
128
|
-
if (it
|
|
134
|
+
if (isNullOrUndefined$1(it)) throw $TypeError$f("Can't call method on " + it);
|
|
129
135
|
return it;
|
|
130
136
|
};
|
|
131
137
|
|
|
@@ -143,7 +149,14 @@ var isCallable = function (argument) {
|
|
|
143
149
|
return typeof argument == 'function';
|
|
144
150
|
};
|
|
145
151
|
|
|
146
|
-
var
|
|
152
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
153
|
+
|
|
154
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
155
|
+
var SPECIAL_DOCUMENT_ALL = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
156
|
+
|
|
157
|
+
var isObject$2 = SPECIAL_DOCUMENT_ALL ? function (it) {
|
|
158
|
+
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;
|
|
159
|
+
} : function (it) {
|
|
147
160
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
148
161
|
};
|
|
149
162
|
|
|
@@ -189,7 +202,7 @@ var engineV8Version = version$1;
|
|
|
189
202
|
|
|
190
203
|
|
|
191
204
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
192
|
-
var
|
|
205
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
193
206
|
var symbol = Symbol();
|
|
194
207
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
195
208
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -201,7 +214,7 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
|
201
214
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
202
215
|
|
|
203
216
|
|
|
204
|
-
var useSymbolAsUid =
|
|
217
|
+
var useSymbolAsUid = symbolConstructorDetection
|
|
205
218
|
&& !Symbol.sham
|
|
206
219
|
&& typeof Symbol.iterator == 'symbol';
|
|
207
220
|
|
|
@@ -224,22 +237,22 @@ var tryToString = function (argument) {
|
|
|
224
237
|
}
|
|
225
238
|
};
|
|
226
239
|
|
|
227
|
-
var $TypeError$
|
|
240
|
+
var $TypeError$e = TypeError;
|
|
228
241
|
|
|
229
242
|
// `Assert: IsCallable(argument) is true`
|
|
230
243
|
var aCallable = function (argument) {
|
|
231
244
|
if (isCallable(argument)) return argument;
|
|
232
|
-
throw $TypeError$
|
|
245
|
+
throw $TypeError$e(tryToString(argument) + ' is not a function');
|
|
233
246
|
};
|
|
234
247
|
|
|
235
248
|
// `GetMethod` abstract operation
|
|
236
249
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
237
250
|
var getMethod = function (V, P) {
|
|
238
251
|
var func = V[P];
|
|
239
|
-
return func
|
|
252
|
+
return isNullOrUndefined$1(func) ? undefined : aCallable(func);
|
|
240
253
|
};
|
|
241
254
|
|
|
242
|
-
var $TypeError$
|
|
255
|
+
var $TypeError$d = TypeError;
|
|
243
256
|
|
|
244
257
|
// `OrdinaryToPrimitive` abstract operation
|
|
245
258
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -248,7 +261,7 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
248
261
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject$2(val = functionCall(fn, input))) return val;
|
|
249
262
|
if (isCallable(fn = input.valueOf) && !isObject$2(val = functionCall(fn, input))) return val;
|
|
250
263
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject$2(val = functionCall(fn, input))) return val;
|
|
251
|
-
throw $TypeError$
|
|
264
|
+
throw $TypeError$d("Can't convert object to primitive value");
|
|
252
265
|
};
|
|
253
266
|
|
|
254
267
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
@@ -271,10 +284,10 @@ var shared = createCommonjsModule(function (module) {
|
|
|
271
284
|
(module.exports = function (key, value) {
|
|
272
285
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
273
286
|
})('versions', []).push({
|
|
274
|
-
version: '3.
|
|
287
|
+
version: '3.25.0',
|
|
275
288
|
mode: 'global',
|
|
276
289
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
277
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
290
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE',
|
|
278
291
|
source: 'https://github.com/zloirock/core-js'
|
|
279
292
|
});
|
|
280
293
|
});
|
|
@@ -310,9 +323,9 @@ var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
|
310
323
|
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
311
324
|
|
|
312
325
|
var wellKnownSymbol = function (name) {
|
|
313
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(
|
|
326
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(symbolConstructorDetection || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
314
327
|
var description = 'Symbol.' + name;
|
|
315
|
-
if (
|
|
328
|
+
if (symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)) {
|
|
316
329
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
317
330
|
} else if (useSymbolAsUid && symbolFor) {
|
|
318
331
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -322,7 +335,7 @@ var wellKnownSymbol = function (name) {
|
|
|
322
335
|
} return WellKnownSymbolsStore[name];
|
|
323
336
|
};
|
|
324
337
|
|
|
325
|
-
var $TypeError$
|
|
338
|
+
var $TypeError$c = TypeError;
|
|
326
339
|
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
327
340
|
|
|
328
341
|
// `ToPrimitive` abstract operation
|
|
@@ -335,7 +348,7 @@ var toPrimitive = function (input, pref) {
|
|
|
335
348
|
if (pref === undefined) pref = 'default';
|
|
336
349
|
result = functionCall(exoticToPrim, input, pref);
|
|
337
350
|
if (!isObject$2(result) || isSymbol(result)) return result;
|
|
338
|
-
throw $TypeError$
|
|
351
|
+
throw $TypeError$c("Can't convert object to primitive value");
|
|
339
352
|
}
|
|
340
353
|
if (pref === undefined) pref = 'number';
|
|
341
354
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -393,15 +406,15 @@ var v8PrototypeDefineBug = descriptors$1 && fails(function () {
|
|
|
393
406
|
});
|
|
394
407
|
|
|
395
408
|
var $String$2 = String;
|
|
396
|
-
var $TypeError$
|
|
409
|
+
var $TypeError$b = TypeError;
|
|
397
410
|
|
|
398
411
|
// `Assert: Type(argument) is Object`
|
|
399
412
|
var anObject = function (argument) {
|
|
400
413
|
if (isObject$2(argument)) return argument;
|
|
401
|
-
throw $TypeError$
|
|
414
|
+
throw $TypeError$b($String$2(argument) + ' is not an object');
|
|
402
415
|
};
|
|
403
416
|
|
|
404
|
-
var $TypeError$
|
|
417
|
+
var $TypeError$a = TypeError;
|
|
405
418
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
406
419
|
var $defineProperty = Object.defineProperty;
|
|
407
420
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -434,7 +447,7 @@ var f$4 = descriptors$1 ? v8PrototypeDefineBug ? function defineProperty(O, P, A
|
|
|
434
447
|
if (ie8DomDefine) try {
|
|
435
448
|
return $defineProperty(O, P, Attributes);
|
|
436
449
|
} catch (error) { /* empty */ }
|
|
437
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$
|
|
450
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$a('Accessors not supported');
|
|
438
451
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
439
452
|
return O;
|
|
440
453
|
};
|
|
@@ -478,7 +491,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
478
491
|
|
|
479
492
|
var WeakMap$1 = global_1.WeakMap;
|
|
480
493
|
|
|
481
|
-
var
|
|
494
|
+
var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
482
495
|
|
|
483
496
|
var keys = shared('keys');
|
|
484
497
|
|
|
@@ -506,13 +519,13 @@ var getterFor = function (TYPE) {
|
|
|
506
519
|
};
|
|
507
520
|
};
|
|
508
521
|
|
|
509
|
-
if (
|
|
522
|
+
if (weakMapBasicDetection || sharedStore.state) {
|
|
510
523
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
|
511
524
|
var wmget = functionUncurryThis(store.get);
|
|
512
525
|
var wmhas = functionUncurryThis(store.has);
|
|
513
526
|
var wmset = functionUncurryThis(store.set);
|
|
514
527
|
set$1 = function (it, metadata) {
|
|
515
|
-
if (wmhas(store, it)) throw
|
|
528
|
+
if (wmhas(store, it)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
516
529
|
metadata.facade = it;
|
|
517
530
|
wmset(store, it, metadata);
|
|
518
531
|
return metadata;
|
|
@@ -527,7 +540,7 @@ if (nativeWeakMap || sharedStore.state) {
|
|
|
527
540
|
var STATE = sharedKey('state');
|
|
528
541
|
hiddenKeys$1[STATE] = true;
|
|
529
542
|
set$1 = function (it, metadata) {
|
|
530
|
-
if (hasOwnProperty_1(it, STATE)) throw
|
|
543
|
+
if (hasOwnProperty_1(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
531
544
|
metadata.facade = it;
|
|
532
545
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
533
546
|
return metadata;
|
|
@@ -1284,7 +1297,7 @@ var advanceStringIndex = function (S, index, unicode) {
|
|
|
1284
1297
|
return index + (unicode ? charAt(S, index).length : 1);
|
|
1285
1298
|
};
|
|
1286
1299
|
|
|
1287
|
-
var $TypeError$
|
|
1300
|
+
var $TypeError$9 = TypeError;
|
|
1288
1301
|
|
|
1289
1302
|
// `RegExpExec` abstract operation
|
|
1290
1303
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
@@ -1296,7 +1309,7 @@ var regexpExecAbstract = function (R, S) {
|
|
|
1296
1309
|
return result;
|
|
1297
1310
|
}
|
|
1298
1311
|
if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
|
|
1299
|
-
throw $TypeError$
|
|
1312
|
+
throw $TypeError$9('RegExp#exec called on incompatible receiver');
|
|
1300
1313
|
};
|
|
1301
1314
|
|
|
1302
1315
|
// @@match logic
|
|
@@ -1306,7 +1319,7 @@ fixRegexpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
|
|
|
1306
1319
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
1307
1320
|
function match(regexp) {
|
|
1308
1321
|
var O = requireObjectCoercible(this);
|
|
1309
|
-
var matcher = regexp
|
|
1322
|
+
var matcher = isNullOrUndefined$1(regexp) ? undefined : getMethod(regexp, MATCH);
|
|
1310
1323
|
return matcher ? functionCall(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString_1(O));
|
|
1311
1324
|
},
|
|
1312
1325
|
// `RegExp.prototype[@@match]` method
|
|
@@ -1344,7 +1357,7 @@ var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
|
|
1344
1357
|
});
|
|
1345
1358
|
};
|
|
1346
1359
|
|
|
1347
|
-
var
|
|
1360
|
+
var nativeJoin = functionUncurryThis([].join);
|
|
1348
1361
|
|
|
1349
1362
|
var ES3_STRINGS = indexedObject != Object;
|
|
1350
1363
|
var STRICT_METHOD$1 = arrayMethodIsStrict('join', ',');
|
|
@@ -1353,7 +1366,7 @@ var STRICT_METHOD$1 = arrayMethodIsStrict('join', ',');
|
|
|
1353
1366
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
|
1354
1367
|
_export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
|
|
1355
1368
|
join: function join(separator) {
|
|
1356
|
-
return
|
|
1369
|
+
return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
|
|
1357
1370
|
}
|
|
1358
1371
|
});
|
|
1359
1372
|
|
|
@@ -1386,11 +1399,11 @@ var isArray$2 = Array.isArray || function isArray(argument) {
|
|
|
1386
1399
|
return classofRaw(argument) == 'Array';
|
|
1387
1400
|
};
|
|
1388
1401
|
|
|
1389
|
-
var $TypeError$
|
|
1402
|
+
var $TypeError$8 = TypeError;
|
|
1390
1403
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
1391
1404
|
|
|
1392
1405
|
var doesNotExceedSafeInteger = function (it) {
|
|
1393
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$
|
|
1406
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$8('Maximum allowed index exceeded');
|
|
1394
1407
|
return it;
|
|
1395
1408
|
};
|
|
1396
1409
|
|
|
@@ -1581,11 +1594,11 @@ var isRegexp = function (it) {
|
|
|
1581
1594
|
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
|
1582
1595
|
};
|
|
1583
1596
|
|
|
1584
|
-
var $TypeError$
|
|
1597
|
+
var $TypeError$7 = TypeError;
|
|
1585
1598
|
|
|
1586
1599
|
var notARegexp = function (it) {
|
|
1587
1600
|
if (isRegexp(it)) {
|
|
1588
|
-
throw $TypeError$
|
|
1601
|
+
throw $TypeError$7("The method doesn't accept regular expressions");
|
|
1589
1602
|
} return it;
|
|
1590
1603
|
};
|
|
1591
1604
|
|
|
@@ -1612,7 +1625,7 @@ var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
|
1612
1625
|
|
|
1613
1626
|
|
|
1614
1627
|
// eslint-disable-next-line es-x/no-string-prototype-endswith -- safe
|
|
1615
|
-
var
|
|
1628
|
+
var nativeEndsWith = functionUncurryThis(''.endsWith);
|
|
1616
1629
|
var slice = functionUncurryThis(''.slice);
|
|
1617
1630
|
var min$1 = Math.min;
|
|
1618
1631
|
|
|
@@ -1633,8 +1646,8 @@ _export({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT
|
|
|
1633
1646
|
var len = that.length;
|
|
1634
1647
|
var end = endPosition === undefined ? len : min$1(toLength(endPosition), len);
|
|
1635
1648
|
var search = toString_1(searchString);
|
|
1636
|
-
return
|
|
1637
|
-
?
|
|
1649
|
+
return nativeEndsWith
|
|
1650
|
+
? nativeEndsWith(that, search, end)
|
|
1638
1651
|
: slice(that, end - search.length, end) === search;
|
|
1639
1652
|
}
|
|
1640
1653
|
});
|
|
@@ -1648,7 +1661,7 @@ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
|
1648
1661
|
|
|
1649
1662
|
|
|
1650
1663
|
// eslint-disable-next-line es-x/no-string-prototype-startswith -- safe
|
|
1651
|
-
var
|
|
1664
|
+
var nativeStartsWith = functionUncurryThis(''.startsWith);
|
|
1652
1665
|
var stringSlice = functionUncurryThis(''.slice);
|
|
1653
1666
|
var min = Math.min;
|
|
1654
1667
|
|
|
@@ -1667,8 +1680,8 @@ _export({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_I
|
|
|
1667
1680
|
notARegexp(searchString);
|
|
1668
1681
|
var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
|
|
1669
1682
|
var search = toString_1(searchString);
|
|
1670
|
-
return
|
|
1671
|
-
?
|
|
1683
|
+
return nativeStartsWith
|
|
1684
|
+
? nativeStartsWith(that, search, index)
|
|
1672
1685
|
: stringSlice(that, index, index + search.length) === search;
|
|
1673
1686
|
}
|
|
1674
1687
|
});
|
|
@@ -1676,11 +1689,11 @@ _export({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_I
|
|
|
1676
1689
|
var engineIsNode = classofRaw(global_1.process) == 'process';
|
|
1677
1690
|
|
|
1678
1691
|
var $String = String;
|
|
1679
|
-
var $TypeError$
|
|
1692
|
+
var $TypeError$6 = TypeError;
|
|
1680
1693
|
|
|
1681
1694
|
var aPossiblePrototype = function (argument) {
|
|
1682
1695
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
1683
|
-
throw $TypeError$
|
|
1696
|
+
throw $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
|
|
1684
1697
|
};
|
|
1685
1698
|
|
|
1686
1699
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1738,19 +1751,19 @@ var setSpecies = function (CONSTRUCTOR_NAME) {
|
|
|
1738
1751
|
}
|
|
1739
1752
|
};
|
|
1740
1753
|
|
|
1741
|
-
var $TypeError$
|
|
1754
|
+
var $TypeError$5 = TypeError;
|
|
1742
1755
|
|
|
1743
1756
|
var anInstance = function (it, Prototype) {
|
|
1744
1757
|
if (objectIsPrototypeOf(Prototype, it)) return it;
|
|
1745
|
-
throw $TypeError$
|
|
1758
|
+
throw $TypeError$5('Incorrect invocation');
|
|
1746
1759
|
};
|
|
1747
1760
|
|
|
1748
|
-
var $TypeError$
|
|
1761
|
+
var $TypeError$4 = TypeError;
|
|
1749
1762
|
|
|
1750
1763
|
// `Assert: IsConstructor(argument) is true`
|
|
1751
1764
|
var aConstructor = function (argument) {
|
|
1752
1765
|
if (isConstructor(argument)) return argument;
|
|
1753
|
-
throw $TypeError$
|
|
1766
|
+
throw $TypeError$4(tryToString(argument) + ' is not a constructor');
|
|
1754
1767
|
};
|
|
1755
1768
|
|
|
1756
1769
|
var SPECIES$1 = wellKnownSymbol('species');
|
|
@@ -1760,7 +1773,7 @@ var SPECIES$1 = wellKnownSymbol('species');
|
|
|
1760
1773
|
var speciesConstructor = function (O, defaultConstructor) {
|
|
1761
1774
|
var C = anObject(O).constructor;
|
|
1762
1775
|
var S;
|
|
1763
|
-
return C === undefined || (S = anObject(C)[SPECIES$1])
|
|
1776
|
+
return C === undefined || isNullOrUndefined$1(S = anObject(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
|
|
1764
1777
|
};
|
|
1765
1778
|
|
|
1766
1779
|
var FunctionPrototype$1 = Function.prototype;
|
|
@@ -1784,10 +1797,10 @@ var functionBindContext = function (fn, that) {
|
|
|
1784
1797
|
|
|
1785
1798
|
var arraySlice = functionUncurryThis([].slice);
|
|
1786
1799
|
|
|
1787
|
-
var $TypeError$
|
|
1800
|
+
var $TypeError$3 = TypeError;
|
|
1788
1801
|
|
|
1789
1802
|
var validateArgumentsLength = function (passed, required) {
|
|
1790
|
-
if (passed < required) throw $TypeError$
|
|
1803
|
+
if (passed < required) throw $TypeError$3('Not enough arguments');
|
|
1791
1804
|
return passed;
|
|
1792
1805
|
};
|
|
1793
1806
|
|
|
@@ -2068,10 +2081,12 @@ var promiseConstructorDetection = {
|
|
|
2068
2081
|
SUBCLASSING: SUBCLASSING
|
|
2069
2082
|
};
|
|
2070
2083
|
|
|
2084
|
+
var $TypeError$2 = TypeError;
|
|
2085
|
+
|
|
2071
2086
|
var PromiseCapability = function (C) {
|
|
2072
2087
|
var resolve, reject;
|
|
2073
2088
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
2074
|
-
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
2089
|
+
if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
|
|
2075
2090
|
resolve = $$resolve;
|
|
2076
2091
|
reject = $$reject;
|
|
2077
2092
|
});
|
|
@@ -2376,7 +2391,7 @@ var isArrayIteratorMethod = function (it) {
|
|
|
2376
2391
|
var ITERATOR$1 = wellKnownSymbol('iterator');
|
|
2377
2392
|
|
|
2378
2393
|
var getIteratorMethod = function (it) {
|
|
2379
|
-
if (it
|
|
2394
|
+
if (!isNullOrUndefined$1(it)) return getMethod(it, ITERATOR$1)
|
|
2380
2395
|
|| getMethod(it, '@@iterator')
|
|
2381
2396
|
|| iterators[classof(it)];
|
|
2382
2397
|
};
|
|
@@ -6056,7 +6071,7 @@ axios_1.default = default_1;
|
|
|
6056
6071
|
var axios = axios_1;
|
|
6057
6072
|
|
|
6058
6073
|
var name$1 = "@tryghost/content-api";
|
|
6059
|
-
var version = "1.11.
|
|
6074
|
+
var version = "1.11.2";
|
|
6060
6075
|
var repository = "https://github.com/TryGhost/SDK/tree/master/packages/content-api";
|
|
6061
6076
|
var author = "Ghost Foundation";
|
|
6062
6077
|
var license = "MIT";
|
|
@@ -6085,15 +6100,15 @@ var publishConfig = {
|
|
|
6085
6100
|
access: "public"
|
|
6086
6101
|
};
|
|
6087
6102
|
var devDependencies = {
|
|
6088
|
-
"@babel/core": "7.
|
|
6103
|
+
"@babel/core": "7.19.0",
|
|
6089
6104
|
"@babel/polyfill": "7.12.1",
|
|
6090
|
-
"@babel/preset-env": "7.
|
|
6105
|
+
"@babel/preset-env": "7.19.0",
|
|
6091
6106
|
"@rollup/plugin-json": "4.1.0",
|
|
6092
6107
|
c8: "7.12.0",
|
|
6093
|
-
"core-js": "3.
|
|
6094
|
-
"eslint-plugin-ghost": "2.
|
|
6108
|
+
"core-js": "3.25.0",
|
|
6109
|
+
"eslint-plugin-ghost": "2.15.1",
|
|
6095
6110
|
mocha: "10.0.0",
|
|
6096
|
-
rollup: "2.
|
|
6111
|
+
rollup: "2.79.0",
|
|
6097
6112
|
"rollup-plugin-babel": "4.4.0",
|
|
6098
6113
|
"rollup-plugin-commonjs": "10.1.0",
|
|
6099
6114
|
"rollup-plugin-node-resolve": "5.2.0",
|
|
@@ -6106,7 +6121,7 @@ var devDependencies = {
|
|
|
6106
6121
|
var dependencies = {
|
|
6107
6122
|
axios: "^0.27.0"
|
|
6108
6123
|
};
|
|
6109
|
-
var gitHead = "
|
|
6124
|
+
var gitHead = "3547712bea5948482aabe9cbe484561501885de9";
|
|
6110
6125
|
var packageInfo = {
|
|
6111
6126
|
name: name$1,
|
|
6112
6127
|
version: version,
|