backlog-js 0.13.5 → 0.13.7
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/CHANGELOG.md +10 -0
- package/dist/backlog.js +308 -89
- package/dist/backlog.min.js +1 -1
- package/dist/types/backlog.d.ts +16 -0
- package/dist/types/entity.d.ts +43 -0
- package/dist/types/option.d.ts +11 -0
- package/package.json +1 -1
package/dist/backlog.js
CHANGED
|
@@ -689,6 +689,30 @@ var Backlog = /** @class */ (function (_super) {
|
|
|
689
689
|
Backlog.prototype.unlinkWikisSharedFiles = function (wikiId, id) {
|
|
690
690
|
return this.delete("wikis/".concat(wikiId, "/sharedFiles/").concat(id));
|
|
691
691
|
};
|
|
692
|
+
/**
|
|
693
|
+
* https://developer.nulab.com/docs/backlog/api/get-document-list/
|
|
694
|
+
*/
|
|
695
|
+
Backlog.prototype.getDocuments = function (params) {
|
|
696
|
+
return this.get('documents', params);
|
|
697
|
+
};
|
|
698
|
+
/**
|
|
699
|
+
* https://developer.nulab.com/docs/backlog/api/get-document-tree/
|
|
700
|
+
*/
|
|
701
|
+
Backlog.prototype.getDocumentTree = function (projectIdOrKey) {
|
|
702
|
+
return this.get("documents/tree", { projectIdOrKey: projectIdOrKey });
|
|
703
|
+
};
|
|
704
|
+
/**
|
|
705
|
+
* https://developer.nulab.com/docs/backlog/api/get-document/
|
|
706
|
+
*/
|
|
707
|
+
Backlog.prototype.getDocument = function (documentId) {
|
|
708
|
+
return this.get("documents/".concat(documentId));
|
|
709
|
+
};
|
|
710
|
+
/**
|
|
711
|
+
* https://developer.nulab.com/docs/backlog/api/get-document-attachments/
|
|
712
|
+
*/
|
|
713
|
+
Backlog.prototype.downloadDocumentAttachment = function (documentId, attachmentId) {
|
|
714
|
+
return this.download("documents/".concat(documentId, "/attachments/").concat(attachmentId));
|
|
715
|
+
};
|
|
692
716
|
/**
|
|
693
717
|
* https://developer.nulab.com/docs/backlog/api/2/get-wiki-page-history/
|
|
694
718
|
*/
|
|
@@ -1261,7 +1285,7 @@ var Request = /** @class */ (function () {
|
|
|
1261
1285
|
}());
|
|
1262
1286
|
exports.default = Request;
|
|
1263
1287
|
|
|
1264
|
-
},{"./error":3,"qs":
|
|
1288
|
+
},{"./error":3,"qs":51}],8:[function(require,module,exports){
|
|
1265
1289
|
"use strict";
|
|
1266
1290
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1267
1291
|
exports.CustomFieldType = exports.ActivityType = exports.NormalRoleType = exports.ClassicRoleType = void 0;
|
|
@@ -1328,6 +1352,65 @@ var CustomFieldType;
|
|
|
1328
1352
|
},{}],10:[function(require,module,exports){
|
|
1329
1353
|
'use strict';
|
|
1330
1354
|
|
|
1355
|
+
var bind = require('function-bind');
|
|
1356
|
+
|
|
1357
|
+
var $apply = require('./functionApply');
|
|
1358
|
+
var $call = require('./functionCall');
|
|
1359
|
+
var $reflectApply = require('./reflectApply');
|
|
1360
|
+
|
|
1361
|
+
/** @type {import('./actualApply')} */
|
|
1362
|
+
module.exports = $reflectApply || bind.call($call, $apply);
|
|
1363
|
+
|
|
1364
|
+
},{"./functionApply":12,"./functionCall":13,"./reflectApply":15,"function-bind":30}],11:[function(require,module,exports){
|
|
1365
|
+
'use strict';
|
|
1366
|
+
|
|
1367
|
+
var bind = require('function-bind');
|
|
1368
|
+
var $apply = require('./functionApply');
|
|
1369
|
+
var actualApply = require('./actualApply');
|
|
1370
|
+
|
|
1371
|
+
/** @type {import('./applyBind')} */
|
|
1372
|
+
module.exports = function applyBind() {
|
|
1373
|
+
return actualApply(bind, $apply, arguments);
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
},{"./actualApply":10,"./functionApply":12,"function-bind":30}],12:[function(require,module,exports){
|
|
1377
|
+
'use strict';
|
|
1378
|
+
|
|
1379
|
+
/** @type {import('./functionApply')} */
|
|
1380
|
+
module.exports = Function.prototype.apply;
|
|
1381
|
+
|
|
1382
|
+
},{}],13:[function(require,module,exports){
|
|
1383
|
+
'use strict';
|
|
1384
|
+
|
|
1385
|
+
/** @type {import('./functionCall')} */
|
|
1386
|
+
module.exports = Function.prototype.call;
|
|
1387
|
+
|
|
1388
|
+
},{}],14:[function(require,module,exports){
|
|
1389
|
+
'use strict';
|
|
1390
|
+
|
|
1391
|
+
var bind = require('function-bind');
|
|
1392
|
+
var $TypeError = require('es-errors/type');
|
|
1393
|
+
|
|
1394
|
+
var $call = require('./functionCall');
|
|
1395
|
+
var $actualApply = require('./actualApply');
|
|
1396
|
+
|
|
1397
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
1398
|
+
module.exports = function callBindBasic(args) {
|
|
1399
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
1400
|
+
throw new $TypeError('a function is required');
|
|
1401
|
+
}
|
|
1402
|
+
return $actualApply(bind, $call, args);
|
|
1403
|
+
};
|
|
1404
|
+
|
|
1405
|
+
},{"./actualApply":10,"./functionCall":13,"es-errors/type":26,"function-bind":30}],15:[function(require,module,exports){
|
|
1406
|
+
'use strict';
|
|
1407
|
+
|
|
1408
|
+
/** @type {import('./reflectApply')} */
|
|
1409
|
+
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
1410
|
+
|
|
1411
|
+
},{}],16:[function(require,module,exports){
|
|
1412
|
+
'use strict';
|
|
1413
|
+
|
|
1331
1414
|
var GetIntrinsic = require('get-intrinsic');
|
|
1332
1415
|
|
|
1333
1416
|
var callBind = require('./');
|
|
@@ -1342,44 +1425,33 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1342
1425
|
return intrinsic;
|
|
1343
1426
|
};
|
|
1344
1427
|
|
|
1345
|
-
},{"./":
|
|
1428
|
+
},{"./":17,"get-intrinsic":31}],17:[function(require,module,exports){
|
|
1346
1429
|
'use strict';
|
|
1347
1430
|
|
|
1348
|
-
var bind = require('function-bind');
|
|
1349
|
-
var GetIntrinsic = require('get-intrinsic');
|
|
1350
1431
|
var setFunctionLength = require('set-function-length');
|
|
1351
1432
|
|
|
1352
|
-
var $TypeError = require('es-errors/type');
|
|
1353
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
1354
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1355
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
1356
|
-
|
|
1357
1433
|
var $defineProperty = require('es-define-property');
|
|
1358
|
-
|
|
1434
|
+
|
|
1435
|
+
var callBindBasic = require('call-bind-apply-helpers');
|
|
1436
|
+
var applyBind = require('call-bind-apply-helpers/applyBind');
|
|
1359
1437
|
|
|
1360
1438
|
module.exports = function callBind(originalFunction) {
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
}
|
|
1364
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
1439
|
+
var func = callBindBasic(arguments);
|
|
1440
|
+
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
1365
1441
|
return setFunctionLength(
|
|
1366
1442
|
func,
|
|
1367
|
-
1 +
|
|
1443
|
+
1 + (adjustedLength > 0 ? adjustedLength : 0),
|
|
1368
1444
|
true
|
|
1369
1445
|
);
|
|
1370
1446
|
};
|
|
1371
1447
|
|
|
1372
|
-
var applyBind = function applyBind() {
|
|
1373
|
-
return $reflectApply(bind, $apply, arguments);
|
|
1374
|
-
};
|
|
1375
|
-
|
|
1376
1448
|
if ($defineProperty) {
|
|
1377
1449
|
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
1378
1450
|
} else {
|
|
1379
1451
|
module.exports.apply = applyBind;
|
|
1380
1452
|
}
|
|
1381
1453
|
|
|
1382
|
-
},{"
|
|
1454
|
+
},{"call-bind-apply-helpers":14,"call-bind-apply-helpers/applyBind":11,"es-define-property":20,"set-function-length":55}],18:[function(require,module,exports){
|
|
1383
1455
|
'use strict';
|
|
1384
1456
|
|
|
1385
1457
|
var $defineProperty = require('es-define-property');
|
|
@@ -1437,13 +1509,43 @@ module.exports = function defineDataProperty(
|
|
|
1437
1509
|
}
|
|
1438
1510
|
};
|
|
1439
1511
|
|
|
1440
|
-
},{"es-define-property":
|
|
1512
|
+
},{"es-define-property":20,"es-errors/syntax":25,"es-errors/type":26,"gopd":36}],19:[function(require,module,exports){
|
|
1441
1513
|
'use strict';
|
|
1442
1514
|
|
|
1443
|
-
var
|
|
1515
|
+
var callBind = require('call-bind-apply-helpers');
|
|
1516
|
+
var gOPD = require('gopd');
|
|
1517
|
+
|
|
1518
|
+
var hasProtoAccessor;
|
|
1519
|
+
try {
|
|
1520
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
1521
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
1522
|
+
} catch (e) {
|
|
1523
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
1524
|
+
throw e;
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
// eslint-disable-next-line no-extra-parens
|
|
1529
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
1530
|
+
|
|
1531
|
+
var $Object = Object;
|
|
1532
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
1533
|
+
|
|
1534
|
+
/** @type {import('./get')} */
|
|
1535
|
+
module.exports = desc && typeof desc.get === 'function'
|
|
1536
|
+
? callBind([desc.get])
|
|
1537
|
+
: typeof $getPrototypeOf === 'function'
|
|
1538
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
1539
|
+
// eslint-disable-next-line eqeqeq
|
|
1540
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
1541
|
+
}
|
|
1542
|
+
: false;
|
|
1543
|
+
|
|
1544
|
+
},{"call-bind-apply-helpers":14,"gopd":36}],20:[function(require,module,exports){
|
|
1545
|
+
'use strict';
|
|
1444
1546
|
|
|
1445
1547
|
/** @type {import('.')} */
|
|
1446
|
-
var $defineProperty =
|
|
1548
|
+
var $defineProperty = Object.defineProperty || false;
|
|
1447
1549
|
if ($defineProperty) {
|
|
1448
1550
|
try {
|
|
1449
1551
|
$defineProperty({}, 'a', { value: 1 });
|
|
@@ -1455,49 +1557,55 @@ if ($defineProperty) {
|
|
|
1455
1557
|
|
|
1456
1558
|
module.exports = $defineProperty;
|
|
1457
1559
|
|
|
1458
|
-
},{
|
|
1560
|
+
},{}],21:[function(require,module,exports){
|
|
1459
1561
|
'use strict';
|
|
1460
1562
|
|
|
1461
1563
|
/** @type {import('./eval')} */
|
|
1462
1564
|
module.exports = EvalError;
|
|
1463
1565
|
|
|
1464
|
-
},{}],
|
|
1566
|
+
},{}],22:[function(require,module,exports){
|
|
1465
1567
|
'use strict';
|
|
1466
1568
|
|
|
1467
1569
|
/** @type {import('.')} */
|
|
1468
1570
|
module.exports = Error;
|
|
1469
1571
|
|
|
1470
|
-
},{}],
|
|
1572
|
+
},{}],23:[function(require,module,exports){
|
|
1471
1573
|
'use strict';
|
|
1472
1574
|
|
|
1473
1575
|
/** @type {import('./range')} */
|
|
1474
1576
|
module.exports = RangeError;
|
|
1475
1577
|
|
|
1476
|
-
},{}],
|
|
1578
|
+
},{}],24:[function(require,module,exports){
|
|
1477
1579
|
'use strict';
|
|
1478
1580
|
|
|
1479
1581
|
/** @type {import('./ref')} */
|
|
1480
1582
|
module.exports = ReferenceError;
|
|
1481
1583
|
|
|
1482
|
-
},{}],
|
|
1584
|
+
},{}],25:[function(require,module,exports){
|
|
1483
1585
|
'use strict';
|
|
1484
1586
|
|
|
1485
1587
|
/** @type {import('./syntax')} */
|
|
1486
1588
|
module.exports = SyntaxError;
|
|
1487
1589
|
|
|
1488
|
-
},{}],
|
|
1590
|
+
},{}],26:[function(require,module,exports){
|
|
1489
1591
|
'use strict';
|
|
1490
1592
|
|
|
1491
1593
|
/** @type {import('./type')} */
|
|
1492
1594
|
module.exports = TypeError;
|
|
1493
1595
|
|
|
1494
|
-
},{}],
|
|
1596
|
+
},{}],27:[function(require,module,exports){
|
|
1495
1597
|
'use strict';
|
|
1496
1598
|
|
|
1497
1599
|
/** @type {import('./uri')} */
|
|
1498
1600
|
module.exports = URIError;
|
|
1499
1601
|
|
|
1500
|
-
},{}],
|
|
1602
|
+
},{}],28:[function(require,module,exports){
|
|
1603
|
+
'use strict';
|
|
1604
|
+
|
|
1605
|
+
/** @type {import('.')} */
|
|
1606
|
+
module.exports = Object;
|
|
1607
|
+
|
|
1608
|
+
},{}],29:[function(require,module,exports){
|
|
1501
1609
|
'use strict';
|
|
1502
1610
|
|
|
1503
1611
|
/* eslint no-invalid-this: 1 */
|
|
@@ -1583,18 +1691,20 @@ module.exports = function bind(that) {
|
|
|
1583
1691
|
return bound;
|
|
1584
1692
|
};
|
|
1585
1693
|
|
|
1586
|
-
},{}],
|
|
1694
|
+
},{}],30:[function(require,module,exports){
|
|
1587
1695
|
'use strict';
|
|
1588
1696
|
|
|
1589
1697
|
var implementation = require('./implementation');
|
|
1590
1698
|
|
|
1591
1699
|
module.exports = Function.prototype.bind || implementation;
|
|
1592
1700
|
|
|
1593
|
-
},{"./implementation":
|
|
1701
|
+
},{"./implementation":29}],31:[function(require,module,exports){
|
|
1594
1702
|
'use strict';
|
|
1595
1703
|
|
|
1596
1704
|
var undefined;
|
|
1597
1705
|
|
|
1706
|
+
var $Object = require('es-object-atoms');
|
|
1707
|
+
|
|
1598
1708
|
var $Error = require('es-errors');
|
|
1599
1709
|
var $EvalError = require('es-errors/eval');
|
|
1600
1710
|
var $RangeError = require('es-errors/range');
|
|
@@ -1603,6 +1713,14 @@ var $SyntaxError = require('es-errors/syntax');
|
|
|
1603
1713
|
var $TypeError = require('es-errors/type');
|
|
1604
1714
|
var $URIError = require('es-errors/uri');
|
|
1605
1715
|
|
|
1716
|
+
var abs = require('math-intrinsics/abs');
|
|
1717
|
+
var floor = require('math-intrinsics/floor');
|
|
1718
|
+
var max = require('math-intrinsics/max');
|
|
1719
|
+
var min = require('math-intrinsics/min');
|
|
1720
|
+
var pow = require('math-intrinsics/pow');
|
|
1721
|
+
var round = require('math-intrinsics/round');
|
|
1722
|
+
var sign = require('math-intrinsics/sign');
|
|
1723
|
+
|
|
1606
1724
|
var $Function = Function;
|
|
1607
1725
|
|
|
1608
1726
|
// eslint-disable-next-line consistent-return
|
|
@@ -1612,14 +1730,8 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
1612
1730
|
} catch (e) {}
|
|
1613
1731
|
};
|
|
1614
1732
|
|
|
1615
|
-
var $gOPD =
|
|
1616
|
-
|
|
1617
|
-
try {
|
|
1618
|
-
$gOPD({}, '');
|
|
1619
|
-
} catch (e) {
|
|
1620
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1733
|
+
var $gOPD = require('gopd');
|
|
1734
|
+
var $defineProperty = require('es-define-property');
|
|
1623
1735
|
|
|
1624
1736
|
var throwTypeError = function () {
|
|
1625
1737
|
throw new $TypeError();
|
|
@@ -1642,13 +1754,13 @@ var ThrowTypeError = $gOPD
|
|
|
1642
1754
|
: throwTypeError;
|
|
1643
1755
|
|
|
1644
1756
|
var hasSymbols = require('has-symbols')();
|
|
1645
|
-
var hasProto = require('has-proto')();
|
|
1646
1757
|
|
|
1647
|
-
var getProto =
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
);
|
|
1758
|
+
var getProto = require('get-proto');
|
|
1759
|
+
var $ObjectGPO = require('get-proto/Object.getPrototypeOf');
|
|
1760
|
+
var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');
|
|
1761
|
+
|
|
1762
|
+
var $apply = require('call-bind-apply-helpers/functionApply');
|
|
1763
|
+
var $call = require('call-bind-apply-helpers/functionCall');
|
|
1652
1764
|
|
|
1653
1765
|
var needsEval = {};
|
|
1654
1766
|
|
|
@@ -1679,6 +1791,7 @@ var INTRINSICS = {
|
|
|
1679
1791
|
'%Error%': $Error,
|
|
1680
1792
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
1681
1793
|
'%EvalError%': $EvalError,
|
|
1794
|
+
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
|
|
1682
1795
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
1683
1796
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
1684
1797
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -1695,7 +1808,8 @@ var INTRINSICS = {
|
|
|
1695
1808
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
1696
1809
|
'%Math%': Math,
|
|
1697
1810
|
'%Number%': Number,
|
|
1698
|
-
'%Object%': Object,
|
|
1811
|
+
'%Object%': $Object,
|
|
1812
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
1699
1813
|
'%parseFloat%': parseFloat,
|
|
1700
1814
|
'%parseInt%': parseInt,
|
|
1701
1815
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
@@ -1721,7 +1835,20 @@ var INTRINSICS = {
|
|
|
1721
1835
|
'%URIError%': $URIError,
|
|
1722
1836
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
1723
1837
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
1724
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
1838
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
1839
|
+
|
|
1840
|
+
'%Function.prototype.call%': $call,
|
|
1841
|
+
'%Function.prototype.apply%': $apply,
|
|
1842
|
+
'%Object.defineProperty%': $defineProperty,
|
|
1843
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
1844
|
+
'%Math.abs%': abs,
|
|
1845
|
+
'%Math.floor%': floor,
|
|
1846
|
+
'%Math.max%': max,
|
|
1847
|
+
'%Math.min%': min,
|
|
1848
|
+
'%Math.pow%': pow,
|
|
1849
|
+
'%Math.round%': round,
|
|
1850
|
+
'%Math.sign%': sign,
|
|
1851
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
1725
1852
|
};
|
|
1726
1853
|
|
|
1727
1854
|
if (getProto) {
|
|
@@ -1816,11 +1943,11 @@ var LEGACY_ALIASES = {
|
|
|
1816
1943
|
|
|
1817
1944
|
var bind = require('function-bind');
|
|
1818
1945
|
var hasOwn = require('hasown');
|
|
1819
|
-
var $concat = bind.call(
|
|
1820
|
-
var $spliceApply = bind.call(
|
|
1821
|
-
var $replace = bind.call(
|
|
1822
|
-
var $strSlice = bind.call(
|
|
1823
|
-
var $exec = bind.call(
|
|
1946
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
1947
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
1948
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
1949
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
1950
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
1824
1951
|
|
|
1825
1952
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
1826
1953
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -1951,12 +2078,60 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
1951
2078
|
return value;
|
|
1952
2079
|
};
|
|
1953
2080
|
|
|
1954
|
-
},{"es-errors":
|
|
2081
|
+
},{"call-bind-apply-helpers/functionApply":12,"call-bind-apply-helpers/functionCall":13,"es-define-property":20,"es-errors":22,"es-errors/eval":21,"es-errors/range":23,"es-errors/ref":24,"es-errors/syntax":25,"es-errors/type":26,"es-errors/uri":27,"es-object-atoms":28,"function-bind":30,"get-proto":34,"get-proto/Object.getPrototypeOf":32,"get-proto/Reflect.getPrototypeOf":33,"gopd":36,"has-symbols":38,"hasown":40,"math-intrinsics/abs":41,"math-intrinsics/floor":42,"math-intrinsics/max":44,"math-intrinsics/min":45,"math-intrinsics/pow":46,"math-intrinsics/round":47,"math-intrinsics/sign":48}],32:[function(require,module,exports){
|
|
1955
2082
|
'use strict';
|
|
1956
2083
|
|
|
1957
|
-
var
|
|
2084
|
+
var $Object = require('es-object-atoms');
|
|
2085
|
+
|
|
2086
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
2087
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
2088
|
+
|
|
2089
|
+
},{"es-object-atoms":28}],33:[function(require,module,exports){
|
|
2090
|
+
'use strict';
|
|
2091
|
+
|
|
2092
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
2093
|
+
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
2094
|
+
|
|
2095
|
+
},{}],34:[function(require,module,exports){
|
|
2096
|
+
'use strict';
|
|
2097
|
+
|
|
2098
|
+
var reflectGetProto = require('./Reflect.getPrototypeOf');
|
|
2099
|
+
var originalGetProto = require('./Object.getPrototypeOf');
|
|
1958
2100
|
|
|
1959
|
-
var
|
|
2101
|
+
var getDunderProto = require('dunder-proto/get');
|
|
2102
|
+
|
|
2103
|
+
/** @type {import('.')} */
|
|
2104
|
+
module.exports = reflectGetProto
|
|
2105
|
+
? function getProto(O) {
|
|
2106
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
2107
|
+
return reflectGetProto(O);
|
|
2108
|
+
}
|
|
2109
|
+
: originalGetProto
|
|
2110
|
+
? function getProto(O) {
|
|
2111
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
2112
|
+
throw new TypeError('getProto: not an object');
|
|
2113
|
+
}
|
|
2114
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
2115
|
+
return originalGetProto(O);
|
|
2116
|
+
}
|
|
2117
|
+
: getDunderProto
|
|
2118
|
+
? function getProto(O) {
|
|
2119
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
2120
|
+
return getDunderProto(O);
|
|
2121
|
+
}
|
|
2122
|
+
: null;
|
|
2123
|
+
|
|
2124
|
+
},{"./Object.getPrototypeOf":32,"./Reflect.getPrototypeOf":33,"dunder-proto/get":19}],35:[function(require,module,exports){
|
|
2125
|
+
'use strict';
|
|
2126
|
+
|
|
2127
|
+
/** @type {import('./gOPD')} */
|
|
2128
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
2129
|
+
|
|
2130
|
+
},{}],36:[function(require,module,exports){
|
|
2131
|
+
'use strict';
|
|
2132
|
+
|
|
2133
|
+
/** @type {import('.')} */
|
|
2134
|
+
var $gOPD = require('./gOPD');
|
|
1960
2135
|
|
|
1961
2136
|
if ($gOPD) {
|
|
1962
2137
|
try {
|
|
@@ -1969,7 +2144,7 @@ if ($gOPD) {
|
|
|
1969
2144
|
|
|
1970
2145
|
module.exports = $gOPD;
|
|
1971
2146
|
|
|
1972
|
-
},{"
|
|
2147
|
+
},{"./gOPD":35}],37:[function(require,module,exports){
|
|
1973
2148
|
'use strict';
|
|
1974
2149
|
|
|
1975
2150
|
var $defineProperty = require('es-define-property');
|
|
@@ -1993,29 +2168,13 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
1993
2168
|
|
|
1994
2169
|
module.exports = hasPropertyDescriptors;
|
|
1995
2170
|
|
|
1996
|
-
},{"es-define-property":
|
|
1997
|
-
'use strict';
|
|
1998
|
-
|
|
1999
|
-
var test = {
|
|
2000
|
-
__proto__: null,
|
|
2001
|
-
foo: {}
|
|
2002
|
-
};
|
|
2003
|
-
|
|
2004
|
-
var $Object = Object;
|
|
2005
|
-
|
|
2006
|
-
/** @type {import('.')} */
|
|
2007
|
-
module.exports = function hasProto() {
|
|
2008
|
-
// @ts-expect-error: TS errors on an inherited property for some reason
|
|
2009
|
-
return { __proto__: test }.foo === test.foo
|
|
2010
|
-
&& !(test instanceof $Object);
|
|
2011
|
-
};
|
|
2012
|
-
|
|
2013
|
-
},{}],27:[function(require,module,exports){
|
|
2171
|
+
},{"es-define-property":20}],38:[function(require,module,exports){
|
|
2014
2172
|
'use strict';
|
|
2015
2173
|
|
|
2016
2174
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
2017
2175
|
var hasSymbolSham = require('./shams');
|
|
2018
2176
|
|
|
2177
|
+
/** @type {import('.')} */
|
|
2019
2178
|
module.exports = function hasNativeSymbols() {
|
|
2020
2179
|
if (typeof origSymbol !== 'function') { return false; }
|
|
2021
2180
|
if (typeof Symbol !== 'function') { return false; }
|
|
@@ -2025,14 +2184,16 @@ module.exports = function hasNativeSymbols() {
|
|
|
2025
2184
|
return hasSymbolSham();
|
|
2026
2185
|
};
|
|
2027
2186
|
|
|
2028
|
-
},{"./shams":
|
|
2187
|
+
},{"./shams":39}],39:[function(require,module,exports){
|
|
2029
2188
|
'use strict';
|
|
2030
2189
|
|
|
2190
|
+
/** @type {import('./shams')} */
|
|
2031
2191
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
2032
2192
|
module.exports = function hasSymbols() {
|
|
2033
2193
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
2034
2194
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
2035
2195
|
|
|
2196
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
2036
2197
|
var obj = {};
|
|
2037
2198
|
var sym = Symbol('test');
|
|
2038
2199
|
var symObj = Object(sym);
|
|
@@ -2051,7 +2212,7 @@ module.exports = function hasSymbols() {
|
|
|
2051
2212
|
|
|
2052
2213
|
var symVal = 42;
|
|
2053
2214
|
obj[sym] = symVal;
|
|
2054
|
-
for (
|
|
2215
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
2055
2216
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
2056
2217
|
|
|
2057
2218
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -2062,14 +2223,15 @@ module.exports = function hasSymbols() {
|
|
|
2062
2223
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
2063
2224
|
|
|
2064
2225
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
2065
|
-
|
|
2226
|
+
// eslint-disable-next-line no-extra-parens
|
|
2227
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
2066
2228
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
2067
2229
|
}
|
|
2068
2230
|
|
|
2069
2231
|
return true;
|
|
2070
2232
|
};
|
|
2071
2233
|
|
|
2072
|
-
},{}],
|
|
2234
|
+
},{}],40:[function(require,module,exports){
|
|
2073
2235
|
'use strict';
|
|
2074
2236
|
|
|
2075
2237
|
var call = Function.prototype.call;
|
|
@@ -2079,7 +2241,64 @@ var bind = require('function-bind');
|
|
|
2079
2241
|
/** @type {import('.')} */
|
|
2080
2242
|
module.exports = bind.call(call, $hasOwn);
|
|
2081
2243
|
|
|
2082
|
-
},{"function-bind":
|
|
2244
|
+
},{"function-bind":30}],41:[function(require,module,exports){
|
|
2245
|
+
'use strict';
|
|
2246
|
+
|
|
2247
|
+
/** @type {import('./abs')} */
|
|
2248
|
+
module.exports = Math.abs;
|
|
2249
|
+
|
|
2250
|
+
},{}],42:[function(require,module,exports){
|
|
2251
|
+
'use strict';
|
|
2252
|
+
|
|
2253
|
+
/** @type {import('./floor')} */
|
|
2254
|
+
module.exports = Math.floor;
|
|
2255
|
+
|
|
2256
|
+
},{}],43:[function(require,module,exports){
|
|
2257
|
+
'use strict';
|
|
2258
|
+
|
|
2259
|
+
/** @type {import('./isNaN')} */
|
|
2260
|
+
module.exports = Number.isNaN || function isNaN(a) {
|
|
2261
|
+
return a !== a;
|
|
2262
|
+
};
|
|
2263
|
+
|
|
2264
|
+
},{}],44:[function(require,module,exports){
|
|
2265
|
+
'use strict';
|
|
2266
|
+
|
|
2267
|
+
/** @type {import('./max')} */
|
|
2268
|
+
module.exports = Math.max;
|
|
2269
|
+
|
|
2270
|
+
},{}],45:[function(require,module,exports){
|
|
2271
|
+
'use strict';
|
|
2272
|
+
|
|
2273
|
+
/** @type {import('./min')} */
|
|
2274
|
+
module.exports = Math.min;
|
|
2275
|
+
|
|
2276
|
+
},{}],46:[function(require,module,exports){
|
|
2277
|
+
'use strict';
|
|
2278
|
+
|
|
2279
|
+
/** @type {import('./pow')} */
|
|
2280
|
+
module.exports = Math.pow;
|
|
2281
|
+
|
|
2282
|
+
},{}],47:[function(require,module,exports){
|
|
2283
|
+
'use strict';
|
|
2284
|
+
|
|
2285
|
+
/** @type {import('./round')} */
|
|
2286
|
+
module.exports = Math.round;
|
|
2287
|
+
|
|
2288
|
+
},{}],48:[function(require,module,exports){
|
|
2289
|
+
'use strict';
|
|
2290
|
+
|
|
2291
|
+
var $isNaN = require('./isNaN');
|
|
2292
|
+
|
|
2293
|
+
/** @type {import('./sign')} */
|
|
2294
|
+
module.exports = function sign(number) {
|
|
2295
|
+
if ($isNaN(number) || number === 0) {
|
|
2296
|
+
return number;
|
|
2297
|
+
}
|
|
2298
|
+
return number < 0 ? -1 : +1;
|
|
2299
|
+
};
|
|
2300
|
+
|
|
2301
|
+
},{"./isNaN":43}],49:[function(require,module,exports){
|
|
2083
2302
|
(function (global){(function (){
|
|
2084
2303
|
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
2085
2304
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
@@ -2610,7 +2829,7 @@ function arrObjKeys(obj, inspect) {
|
|
|
2610
2829
|
}
|
|
2611
2830
|
|
|
2612
2831
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
2613
|
-
},{"./util.inspect":9}],
|
|
2832
|
+
},{"./util.inspect":9}],50:[function(require,module,exports){
|
|
2614
2833
|
'use strict';
|
|
2615
2834
|
|
|
2616
2835
|
var replace = String.prototype.replace;
|
|
@@ -2635,7 +2854,7 @@ module.exports = {
|
|
|
2635
2854
|
RFC3986: Format.RFC3986
|
|
2636
2855
|
};
|
|
2637
2856
|
|
|
2638
|
-
},{}],
|
|
2857
|
+
},{}],51:[function(require,module,exports){
|
|
2639
2858
|
'use strict';
|
|
2640
2859
|
|
|
2641
2860
|
var stringify = require('./stringify');
|
|
@@ -2648,7 +2867,7 @@ module.exports = {
|
|
|
2648
2867
|
stringify: stringify
|
|
2649
2868
|
};
|
|
2650
2869
|
|
|
2651
|
-
},{"./formats":
|
|
2870
|
+
},{"./formats":50,"./parse":52,"./stringify":53}],52:[function(require,module,exports){
|
|
2652
2871
|
'use strict';
|
|
2653
2872
|
|
|
2654
2873
|
var utils = require('./utils');
|
|
@@ -2938,7 +3157,7 @@ module.exports = function (str, opts) {
|
|
|
2938
3157
|
return utils.compact(obj);
|
|
2939
3158
|
};
|
|
2940
3159
|
|
|
2941
|
-
},{"./utils":
|
|
3160
|
+
},{"./utils":54}],53:[function(require,module,exports){
|
|
2942
3161
|
'use strict';
|
|
2943
3162
|
|
|
2944
3163
|
var getSideChannel = require('side-channel');
|
|
@@ -3291,7 +3510,7 @@ module.exports = function (object, opts) {
|
|
|
3291
3510
|
return joined.length > 0 ? prefix + joined : '';
|
|
3292
3511
|
};
|
|
3293
3512
|
|
|
3294
|
-
},{"./formats":
|
|
3513
|
+
},{"./formats":50,"./utils":54,"side-channel":56}],54:[function(require,module,exports){
|
|
3295
3514
|
'use strict';
|
|
3296
3515
|
|
|
3297
3516
|
var formats = require('./formats');
|
|
@@ -3558,7 +3777,7 @@ module.exports = {
|
|
|
3558
3777
|
merge: merge
|
|
3559
3778
|
};
|
|
3560
3779
|
|
|
3561
|
-
},{"./formats":
|
|
3780
|
+
},{"./formats":50}],55:[function(require,module,exports){
|
|
3562
3781
|
'use strict';
|
|
3563
3782
|
|
|
3564
3783
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -3602,7 +3821,7 @@ module.exports = function setFunctionLength(fn, length) {
|
|
|
3602
3821
|
return fn;
|
|
3603
3822
|
};
|
|
3604
3823
|
|
|
3605
|
-
},{"define-data-property":
|
|
3824
|
+
},{"define-data-property":18,"es-errors/type":26,"get-intrinsic":31,"gopd":36,"has-property-descriptors":37}],56:[function(require,module,exports){
|
|
3606
3825
|
'use strict';
|
|
3607
3826
|
|
|
3608
3827
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -3733,5 +3952,5 @@ module.exports = function getSideChannel() {
|
|
|
3733
3952
|
return channel;
|
|
3734
3953
|
};
|
|
3735
3954
|
|
|
3736
|
-
},{"call-bind/callBound":
|
|
3955
|
+
},{"call-bind/callBound":16,"es-errors/type":26,"get-intrinsic":31,"object-inspect":49}]},{},[4])(4)
|
|
3737
3956
|
});
|