backlog-js 0.13.6 → 0.14.0
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 +284 -176
- package/dist/backlog.min.js +1 -1
- package/dist/types/backlog.d.ts +0 -55
- package/dist/types/entity.d.ts +0 -16
- package/dist/types/option.d.ts +1 -30
- package/package.json +1 -1
package/dist/backlog.js
CHANGED
|
@@ -142,54 +142,6 @@ var Backlog = /** @class */ (function (_super) {
|
|
|
142
142
|
Backlog.prototype.getRecentlyViewedWikis = function (params) {
|
|
143
143
|
return this.get('users/myself/recentlyViewedWikis', params);
|
|
144
144
|
};
|
|
145
|
-
/**
|
|
146
|
-
* https://developer.nulab.com/docs/backlog/api/2/get-list-of-groups/
|
|
147
|
-
* @deprecated
|
|
148
|
-
*/
|
|
149
|
-
Backlog.prototype.getGroups = function (params) {
|
|
150
|
-
console.warn("Deprecated: Use getTeams instead.");
|
|
151
|
-
return this.get('groups', params);
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* https://developer.nulab.com/docs/backlog/api/2/add-group/
|
|
155
|
-
* @deprecated
|
|
156
|
-
*/
|
|
157
|
-
Backlog.prototype.postGroups = function (params) {
|
|
158
|
-
console.warn("Deprecated: Use postTeam instead.");
|
|
159
|
-
return this.post('groups', params);
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* https://developer.nulab.com/docs/backlog/api/2/get-group/
|
|
163
|
-
* @deprecated
|
|
164
|
-
*/
|
|
165
|
-
Backlog.prototype.getGroup = function (groupId) {
|
|
166
|
-
console.warn("Deprecated: Use getTeam instead.");
|
|
167
|
-
return this.get("groups/".concat(groupId));
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* https://developer.nulab.com/docs/backlog/api/2/update-group/
|
|
171
|
-
* @deprecated
|
|
172
|
-
*/
|
|
173
|
-
Backlog.prototype.patchGroup = function (groupId, params) {
|
|
174
|
-
console.warn("Deprecated: Use patchTeam instead.");
|
|
175
|
-
return this.patch("groups/".concat(groupId), params);
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
* https://developer.nulab.com/docs/backlog/api/2/delete-group/
|
|
179
|
-
* @deprecated
|
|
180
|
-
*/
|
|
181
|
-
Backlog.prototype.deleteGroup = function (groupId) {
|
|
182
|
-
console.warn("Deprecated: Use deleteTeam instead.");
|
|
183
|
-
return this.delete("groups/".concat(groupId));
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* https://developer.nulab.com/docs/backlog/api/2/get-status-list/
|
|
187
|
-
* @deprecated
|
|
188
|
-
*/
|
|
189
|
-
Backlog.prototype.getStatuses = function () {
|
|
190
|
-
console.warn("Deprecated: Use getProjectStatuses instead.");
|
|
191
|
-
return this.get('statuses');
|
|
192
|
-
};
|
|
193
145
|
/**
|
|
194
146
|
* https://developer.nulab.com/docs/backlog/api/2/get-status-list-of-project/
|
|
195
147
|
*/
|
|
@@ -502,13 +454,6 @@ var Backlog = /** @class */ (function (_super) {
|
|
|
502
454
|
Backlog.prototype.getIssue = function (issueIdOrKey) {
|
|
503
455
|
return this.get("issues/".concat(issueIdOrKey));
|
|
504
456
|
};
|
|
505
|
-
/**
|
|
506
|
-
* https://developer.nulab.com/docs/backlog/api/2/delete-issue/
|
|
507
|
-
* @deprecated Renamed to `deleteIssue`.
|
|
508
|
-
*/
|
|
509
|
-
Backlog.prototype.deleteIssuesCount = function (issueIdOrKey) {
|
|
510
|
-
return this.deleteIssue(issueIdOrKey);
|
|
511
|
-
};
|
|
512
457
|
/**
|
|
513
458
|
* https://developer.nulab.com/docs/backlog/api/2/delete-issue/
|
|
514
459
|
*/
|
|
@@ -881,38 +826,6 @@ var Backlog = /** @class */ (function (_super) {
|
|
|
881
826
|
Backlog.prototype.resetWatchingListItemAsRead = function (watchId) {
|
|
882
827
|
return this.post("watchings/".concat(watchId, "/markAsRead"));
|
|
883
828
|
};
|
|
884
|
-
/**
|
|
885
|
-
* https://developer.nulab.com/docs/backlog/api/2/get-project-group-list
|
|
886
|
-
* @deprecated
|
|
887
|
-
*/
|
|
888
|
-
Backlog.prototype.getProjectGroupList = function (projectIdOrKey) {
|
|
889
|
-
console.warn("Deprecated: Use getProjectTeams instead.");
|
|
890
|
-
return this.get("projects/".concat(projectIdOrKey, "/groups"));
|
|
891
|
-
};
|
|
892
|
-
/**
|
|
893
|
-
* https://developer.nulab.com/docs/backlog/api/2/add-project-group
|
|
894
|
-
* @deprecated
|
|
895
|
-
*/
|
|
896
|
-
Backlog.prototype.postProjectGroup = function (projectIdOrKey, params) {
|
|
897
|
-
console.warn("Deprecated: Use postProjectTeam instead.");
|
|
898
|
-
return this.post("projects/".concat(projectIdOrKey, "/groups"), params);
|
|
899
|
-
};
|
|
900
|
-
/**
|
|
901
|
-
* https://developer.nulab.com/docs/backlog/api/2/delete-project-group
|
|
902
|
-
* @deprecated
|
|
903
|
-
*/
|
|
904
|
-
Backlog.prototype.deleteProjectGroup = function (projectIdOrKey) {
|
|
905
|
-
console.warn("Deprecated: Use deleteProjectTeam instead.");
|
|
906
|
-
return this.delete("projects/".concat(projectIdOrKey, "/groups"));
|
|
907
|
-
};
|
|
908
|
-
/**
|
|
909
|
-
* https://developer.nulab.com/docs/backlog/api/2/get-group-icon
|
|
910
|
-
* @deprecated
|
|
911
|
-
*/
|
|
912
|
-
Backlog.prototype.getGroupIcon = function (groupId) {
|
|
913
|
-
console.warn("Deprecated: Use getTeamIcon instead.");
|
|
914
|
-
return this.download("groups/".concat(groupId, "/icon"));
|
|
915
|
-
};
|
|
916
829
|
/**
|
|
917
830
|
* https://developer.nulab.com/docs/backlog/api/2/get-licence
|
|
918
831
|
*/
|
|
@@ -1285,7 +1198,7 @@ var Request = /** @class */ (function () {
|
|
|
1285
1198
|
}());
|
|
1286
1199
|
exports.default = Request;
|
|
1287
1200
|
|
|
1288
|
-
},{"./error":3,"qs":
|
|
1201
|
+
},{"./error":3,"qs":51}],8:[function(require,module,exports){
|
|
1289
1202
|
"use strict";
|
|
1290
1203
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1291
1204
|
exports.CustomFieldType = exports.ActivityType = exports.NormalRoleType = exports.ClassicRoleType = void 0;
|
|
@@ -1352,6 +1265,65 @@ var CustomFieldType;
|
|
|
1352
1265
|
},{}],10:[function(require,module,exports){
|
|
1353
1266
|
'use strict';
|
|
1354
1267
|
|
|
1268
|
+
var bind = require('function-bind');
|
|
1269
|
+
|
|
1270
|
+
var $apply = require('./functionApply');
|
|
1271
|
+
var $call = require('./functionCall');
|
|
1272
|
+
var $reflectApply = require('./reflectApply');
|
|
1273
|
+
|
|
1274
|
+
/** @type {import('./actualApply')} */
|
|
1275
|
+
module.exports = $reflectApply || bind.call($call, $apply);
|
|
1276
|
+
|
|
1277
|
+
},{"./functionApply":12,"./functionCall":13,"./reflectApply":15,"function-bind":30}],11:[function(require,module,exports){
|
|
1278
|
+
'use strict';
|
|
1279
|
+
|
|
1280
|
+
var bind = require('function-bind');
|
|
1281
|
+
var $apply = require('./functionApply');
|
|
1282
|
+
var actualApply = require('./actualApply');
|
|
1283
|
+
|
|
1284
|
+
/** @type {import('./applyBind')} */
|
|
1285
|
+
module.exports = function applyBind() {
|
|
1286
|
+
return actualApply(bind, $apply, arguments);
|
|
1287
|
+
};
|
|
1288
|
+
|
|
1289
|
+
},{"./actualApply":10,"./functionApply":12,"function-bind":30}],12:[function(require,module,exports){
|
|
1290
|
+
'use strict';
|
|
1291
|
+
|
|
1292
|
+
/** @type {import('./functionApply')} */
|
|
1293
|
+
module.exports = Function.prototype.apply;
|
|
1294
|
+
|
|
1295
|
+
},{}],13:[function(require,module,exports){
|
|
1296
|
+
'use strict';
|
|
1297
|
+
|
|
1298
|
+
/** @type {import('./functionCall')} */
|
|
1299
|
+
module.exports = Function.prototype.call;
|
|
1300
|
+
|
|
1301
|
+
},{}],14:[function(require,module,exports){
|
|
1302
|
+
'use strict';
|
|
1303
|
+
|
|
1304
|
+
var bind = require('function-bind');
|
|
1305
|
+
var $TypeError = require('es-errors/type');
|
|
1306
|
+
|
|
1307
|
+
var $call = require('./functionCall');
|
|
1308
|
+
var $actualApply = require('./actualApply');
|
|
1309
|
+
|
|
1310
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
1311
|
+
module.exports = function callBindBasic(args) {
|
|
1312
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
1313
|
+
throw new $TypeError('a function is required');
|
|
1314
|
+
}
|
|
1315
|
+
return $actualApply(bind, $call, args);
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
},{"./actualApply":10,"./functionCall":13,"es-errors/type":26,"function-bind":30}],15:[function(require,module,exports){
|
|
1319
|
+
'use strict';
|
|
1320
|
+
|
|
1321
|
+
/** @type {import('./reflectApply')} */
|
|
1322
|
+
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
1323
|
+
|
|
1324
|
+
},{}],16:[function(require,module,exports){
|
|
1325
|
+
'use strict';
|
|
1326
|
+
|
|
1355
1327
|
var GetIntrinsic = require('get-intrinsic');
|
|
1356
1328
|
|
|
1357
1329
|
var callBind = require('./');
|
|
@@ -1366,44 +1338,33 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1366
1338
|
return intrinsic;
|
|
1367
1339
|
};
|
|
1368
1340
|
|
|
1369
|
-
},{"./":
|
|
1341
|
+
},{"./":17,"get-intrinsic":31}],17:[function(require,module,exports){
|
|
1370
1342
|
'use strict';
|
|
1371
1343
|
|
|
1372
|
-
var bind = require('function-bind');
|
|
1373
|
-
var GetIntrinsic = require('get-intrinsic');
|
|
1374
1344
|
var setFunctionLength = require('set-function-length');
|
|
1375
1345
|
|
|
1376
|
-
var $TypeError = require('es-errors/type');
|
|
1377
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
1378
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1379
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
1380
|
-
|
|
1381
1346
|
var $defineProperty = require('es-define-property');
|
|
1382
|
-
|
|
1347
|
+
|
|
1348
|
+
var callBindBasic = require('call-bind-apply-helpers');
|
|
1349
|
+
var applyBind = require('call-bind-apply-helpers/applyBind');
|
|
1383
1350
|
|
|
1384
1351
|
module.exports = function callBind(originalFunction) {
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
}
|
|
1388
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
1352
|
+
var func = callBindBasic(arguments);
|
|
1353
|
+
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
1389
1354
|
return setFunctionLength(
|
|
1390
1355
|
func,
|
|
1391
|
-
1 +
|
|
1356
|
+
1 + (adjustedLength > 0 ? adjustedLength : 0),
|
|
1392
1357
|
true
|
|
1393
1358
|
);
|
|
1394
1359
|
};
|
|
1395
1360
|
|
|
1396
|
-
var applyBind = function applyBind() {
|
|
1397
|
-
return $reflectApply(bind, $apply, arguments);
|
|
1398
|
-
};
|
|
1399
|
-
|
|
1400
1361
|
if ($defineProperty) {
|
|
1401
1362
|
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
1402
1363
|
} else {
|
|
1403
1364
|
module.exports.apply = applyBind;
|
|
1404
1365
|
}
|
|
1405
1366
|
|
|
1406
|
-
},{"
|
|
1367
|
+
},{"call-bind-apply-helpers":14,"call-bind-apply-helpers/applyBind":11,"es-define-property":20,"set-function-length":55}],18:[function(require,module,exports){
|
|
1407
1368
|
'use strict';
|
|
1408
1369
|
|
|
1409
1370
|
var $defineProperty = require('es-define-property');
|
|
@@ -1461,13 +1422,43 @@ module.exports = function defineDataProperty(
|
|
|
1461
1422
|
}
|
|
1462
1423
|
};
|
|
1463
1424
|
|
|
1464
|
-
},{"es-define-property":
|
|
1425
|
+
},{"es-define-property":20,"es-errors/syntax":25,"es-errors/type":26,"gopd":36}],19:[function(require,module,exports){
|
|
1465
1426
|
'use strict';
|
|
1466
1427
|
|
|
1467
|
-
var
|
|
1428
|
+
var callBind = require('call-bind-apply-helpers');
|
|
1429
|
+
var gOPD = require('gopd');
|
|
1430
|
+
|
|
1431
|
+
var hasProtoAccessor;
|
|
1432
|
+
try {
|
|
1433
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
1434
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
1435
|
+
} catch (e) {
|
|
1436
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
1437
|
+
throw e;
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
// eslint-disable-next-line no-extra-parens
|
|
1442
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
1443
|
+
|
|
1444
|
+
var $Object = Object;
|
|
1445
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
1446
|
+
|
|
1447
|
+
/** @type {import('./get')} */
|
|
1448
|
+
module.exports = desc && typeof desc.get === 'function'
|
|
1449
|
+
? callBind([desc.get])
|
|
1450
|
+
: typeof $getPrototypeOf === 'function'
|
|
1451
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
1452
|
+
// eslint-disable-next-line eqeqeq
|
|
1453
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
1454
|
+
}
|
|
1455
|
+
: false;
|
|
1456
|
+
|
|
1457
|
+
},{"call-bind-apply-helpers":14,"gopd":36}],20:[function(require,module,exports){
|
|
1458
|
+
'use strict';
|
|
1468
1459
|
|
|
1469
1460
|
/** @type {import('.')} */
|
|
1470
|
-
var $defineProperty =
|
|
1461
|
+
var $defineProperty = Object.defineProperty || false;
|
|
1471
1462
|
if ($defineProperty) {
|
|
1472
1463
|
try {
|
|
1473
1464
|
$defineProperty({}, 'a', { value: 1 });
|
|
@@ -1479,49 +1470,55 @@ if ($defineProperty) {
|
|
|
1479
1470
|
|
|
1480
1471
|
module.exports = $defineProperty;
|
|
1481
1472
|
|
|
1482
|
-
},{
|
|
1473
|
+
},{}],21:[function(require,module,exports){
|
|
1483
1474
|
'use strict';
|
|
1484
1475
|
|
|
1485
1476
|
/** @type {import('./eval')} */
|
|
1486
1477
|
module.exports = EvalError;
|
|
1487
1478
|
|
|
1488
|
-
},{}],
|
|
1479
|
+
},{}],22:[function(require,module,exports){
|
|
1489
1480
|
'use strict';
|
|
1490
1481
|
|
|
1491
1482
|
/** @type {import('.')} */
|
|
1492
1483
|
module.exports = Error;
|
|
1493
1484
|
|
|
1494
|
-
},{}],
|
|
1485
|
+
},{}],23:[function(require,module,exports){
|
|
1495
1486
|
'use strict';
|
|
1496
1487
|
|
|
1497
1488
|
/** @type {import('./range')} */
|
|
1498
1489
|
module.exports = RangeError;
|
|
1499
1490
|
|
|
1500
|
-
},{}],
|
|
1491
|
+
},{}],24:[function(require,module,exports){
|
|
1501
1492
|
'use strict';
|
|
1502
1493
|
|
|
1503
1494
|
/** @type {import('./ref')} */
|
|
1504
1495
|
module.exports = ReferenceError;
|
|
1505
1496
|
|
|
1506
|
-
},{}],
|
|
1497
|
+
},{}],25:[function(require,module,exports){
|
|
1507
1498
|
'use strict';
|
|
1508
1499
|
|
|
1509
1500
|
/** @type {import('./syntax')} */
|
|
1510
1501
|
module.exports = SyntaxError;
|
|
1511
1502
|
|
|
1512
|
-
},{}],
|
|
1503
|
+
},{}],26:[function(require,module,exports){
|
|
1513
1504
|
'use strict';
|
|
1514
1505
|
|
|
1515
1506
|
/** @type {import('./type')} */
|
|
1516
1507
|
module.exports = TypeError;
|
|
1517
1508
|
|
|
1518
|
-
},{}],
|
|
1509
|
+
},{}],27:[function(require,module,exports){
|
|
1519
1510
|
'use strict';
|
|
1520
1511
|
|
|
1521
1512
|
/** @type {import('./uri')} */
|
|
1522
1513
|
module.exports = URIError;
|
|
1523
1514
|
|
|
1524
|
-
},{}],
|
|
1515
|
+
},{}],28:[function(require,module,exports){
|
|
1516
|
+
'use strict';
|
|
1517
|
+
|
|
1518
|
+
/** @type {import('.')} */
|
|
1519
|
+
module.exports = Object;
|
|
1520
|
+
|
|
1521
|
+
},{}],29:[function(require,module,exports){
|
|
1525
1522
|
'use strict';
|
|
1526
1523
|
|
|
1527
1524
|
/* eslint no-invalid-this: 1 */
|
|
@@ -1607,18 +1604,20 @@ module.exports = function bind(that) {
|
|
|
1607
1604
|
return bound;
|
|
1608
1605
|
};
|
|
1609
1606
|
|
|
1610
|
-
},{}],
|
|
1607
|
+
},{}],30:[function(require,module,exports){
|
|
1611
1608
|
'use strict';
|
|
1612
1609
|
|
|
1613
1610
|
var implementation = require('./implementation');
|
|
1614
1611
|
|
|
1615
1612
|
module.exports = Function.prototype.bind || implementation;
|
|
1616
1613
|
|
|
1617
|
-
},{"./implementation":
|
|
1614
|
+
},{"./implementation":29}],31:[function(require,module,exports){
|
|
1618
1615
|
'use strict';
|
|
1619
1616
|
|
|
1620
1617
|
var undefined;
|
|
1621
1618
|
|
|
1619
|
+
var $Object = require('es-object-atoms');
|
|
1620
|
+
|
|
1622
1621
|
var $Error = require('es-errors');
|
|
1623
1622
|
var $EvalError = require('es-errors/eval');
|
|
1624
1623
|
var $RangeError = require('es-errors/range');
|
|
@@ -1627,6 +1626,14 @@ var $SyntaxError = require('es-errors/syntax');
|
|
|
1627
1626
|
var $TypeError = require('es-errors/type');
|
|
1628
1627
|
var $URIError = require('es-errors/uri');
|
|
1629
1628
|
|
|
1629
|
+
var abs = require('math-intrinsics/abs');
|
|
1630
|
+
var floor = require('math-intrinsics/floor');
|
|
1631
|
+
var max = require('math-intrinsics/max');
|
|
1632
|
+
var min = require('math-intrinsics/min');
|
|
1633
|
+
var pow = require('math-intrinsics/pow');
|
|
1634
|
+
var round = require('math-intrinsics/round');
|
|
1635
|
+
var sign = require('math-intrinsics/sign');
|
|
1636
|
+
|
|
1630
1637
|
var $Function = Function;
|
|
1631
1638
|
|
|
1632
1639
|
// eslint-disable-next-line consistent-return
|
|
@@ -1636,14 +1643,8 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
1636
1643
|
} catch (e) {}
|
|
1637
1644
|
};
|
|
1638
1645
|
|
|
1639
|
-
var $gOPD =
|
|
1640
|
-
|
|
1641
|
-
try {
|
|
1642
|
-
$gOPD({}, '');
|
|
1643
|
-
} catch (e) {
|
|
1644
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
1645
|
-
}
|
|
1646
|
-
}
|
|
1646
|
+
var $gOPD = require('gopd');
|
|
1647
|
+
var $defineProperty = require('es-define-property');
|
|
1647
1648
|
|
|
1648
1649
|
var throwTypeError = function () {
|
|
1649
1650
|
throw new $TypeError();
|
|
@@ -1666,13 +1667,13 @@ var ThrowTypeError = $gOPD
|
|
|
1666
1667
|
: throwTypeError;
|
|
1667
1668
|
|
|
1668
1669
|
var hasSymbols = require('has-symbols')();
|
|
1669
|
-
var hasProto = require('has-proto')();
|
|
1670
1670
|
|
|
1671
|
-
var getProto =
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
);
|
|
1671
|
+
var getProto = require('get-proto');
|
|
1672
|
+
var $ObjectGPO = require('get-proto/Object.getPrototypeOf');
|
|
1673
|
+
var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');
|
|
1674
|
+
|
|
1675
|
+
var $apply = require('call-bind-apply-helpers/functionApply');
|
|
1676
|
+
var $call = require('call-bind-apply-helpers/functionCall');
|
|
1676
1677
|
|
|
1677
1678
|
var needsEval = {};
|
|
1678
1679
|
|
|
@@ -1703,6 +1704,7 @@ var INTRINSICS = {
|
|
|
1703
1704
|
'%Error%': $Error,
|
|
1704
1705
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
1705
1706
|
'%EvalError%': $EvalError,
|
|
1707
|
+
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
|
|
1706
1708
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
1707
1709
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
1708
1710
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -1719,7 +1721,8 @@ var INTRINSICS = {
|
|
|
1719
1721
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
1720
1722
|
'%Math%': Math,
|
|
1721
1723
|
'%Number%': Number,
|
|
1722
|
-
'%Object%': Object,
|
|
1724
|
+
'%Object%': $Object,
|
|
1725
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
1723
1726
|
'%parseFloat%': parseFloat,
|
|
1724
1727
|
'%parseInt%': parseInt,
|
|
1725
1728
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
@@ -1745,7 +1748,20 @@ var INTRINSICS = {
|
|
|
1745
1748
|
'%URIError%': $URIError,
|
|
1746
1749
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
1747
1750
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
1748
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
1751
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
1752
|
+
|
|
1753
|
+
'%Function.prototype.call%': $call,
|
|
1754
|
+
'%Function.prototype.apply%': $apply,
|
|
1755
|
+
'%Object.defineProperty%': $defineProperty,
|
|
1756
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
1757
|
+
'%Math.abs%': abs,
|
|
1758
|
+
'%Math.floor%': floor,
|
|
1759
|
+
'%Math.max%': max,
|
|
1760
|
+
'%Math.min%': min,
|
|
1761
|
+
'%Math.pow%': pow,
|
|
1762
|
+
'%Math.round%': round,
|
|
1763
|
+
'%Math.sign%': sign,
|
|
1764
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
1749
1765
|
};
|
|
1750
1766
|
|
|
1751
1767
|
if (getProto) {
|
|
@@ -1840,11 +1856,11 @@ var LEGACY_ALIASES = {
|
|
|
1840
1856
|
|
|
1841
1857
|
var bind = require('function-bind');
|
|
1842
1858
|
var hasOwn = require('hasown');
|
|
1843
|
-
var $concat = bind.call(
|
|
1844
|
-
var $spliceApply = bind.call(
|
|
1845
|
-
var $replace = bind.call(
|
|
1846
|
-
var $strSlice = bind.call(
|
|
1847
|
-
var $exec = bind.call(
|
|
1859
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
1860
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
1861
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
1862
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
1863
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
1848
1864
|
|
|
1849
1865
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
1850
1866
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -1975,12 +1991,60 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
1975
1991
|
return value;
|
|
1976
1992
|
};
|
|
1977
1993
|
|
|
1978
|
-
},{"es-errors":
|
|
1994
|
+
},{"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){
|
|
1979
1995
|
'use strict';
|
|
1980
1996
|
|
|
1981
|
-
var
|
|
1997
|
+
var $Object = require('es-object-atoms');
|
|
1998
|
+
|
|
1999
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
2000
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
2001
|
+
|
|
2002
|
+
},{"es-object-atoms":28}],33:[function(require,module,exports){
|
|
2003
|
+
'use strict';
|
|
2004
|
+
|
|
2005
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
2006
|
+
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
2007
|
+
|
|
2008
|
+
},{}],34:[function(require,module,exports){
|
|
2009
|
+
'use strict';
|
|
2010
|
+
|
|
2011
|
+
var reflectGetProto = require('./Reflect.getPrototypeOf');
|
|
2012
|
+
var originalGetProto = require('./Object.getPrototypeOf');
|
|
2013
|
+
|
|
2014
|
+
var getDunderProto = require('dunder-proto/get');
|
|
2015
|
+
|
|
2016
|
+
/** @type {import('.')} */
|
|
2017
|
+
module.exports = reflectGetProto
|
|
2018
|
+
? function getProto(O) {
|
|
2019
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
2020
|
+
return reflectGetProto(O);
|
|
2021
|
+
}
|
|
2022
|
+
: originalGetProto
|
|
2023
|
+
? function getProto(O) {
|
|
2024
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
2025
|
+
throw new TypeError('getProto: not an object');
|
|
2026
|
+
}
|
|
2027
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
2028
|
+
return originalGetProto(O);
|
|
2029
|
+
}
|
|
2030
|
+
: getDunderProto
|
|
2031
|
+
? function getProto(O) {
|
|
2032
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
2033
|
+
return getDunderProto(O);
|
|
2034
|
+
}
|
|
2035
|
+
: null;
|
|
2036
|
+
|
|
2037
|
+
},{"./Object.getPrototypeOf":32,"./Reflect.getPrototypeOf":33,"dunder-proto/get":19}],35:[function(require,module,exports){
|
|
2038
|
+
'use strict';
|
|
2039
|
+
|
|
2040
|
+
/** @type {import('./gOPD')} */
|
|
2041
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
2042
|
+
|
|
2043
|
+
},{}],36:[function(require,module,exports){
|
|
2044
|
+
'use strict';
|
|
1982
2045
|
|
|
1983
|
-
|
|
2046
|
+
/** @type {import('.')} */
|
|
2047
|
+
var $gOPD = require('./gOPD');
|
|
1984
2048
|
|
|
1985
2049
|
if ($gOPD) {
|
|
1986
2050
|
try {
|
|
@@ -1993,7 +2057,7 @@ if ($gOPD) {
|
|
|
1993
2057
|
|
|
1994
2058
|
module.exports = $gOPD;
|
|
1995
2059
|
|
|
1996
|
-
},{"
|
|
2060
|
+
},{"./gOPD":35}],37:[function(require,module,exports){
|
|
1997
2061
|
'use strict';
|
|
1998
2062
|
|
|
1999
2063
|
var $defineProperty = require('es-define-property');
|
|
@@ -2017,29 +2081,13 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
2017
2081
|
|
|
2018
2082
|
module.exports = hasPropertyDescriptors;
|
|
2019
2083
|
|
|
2020
|
-
},{"es-define-property":
|
|
2021
|
-
'use strict';
|
|
2022
|
-
|
|
2023
|
-
var test = {
|
|
2024
|
-
__proto__: null,
|
|
2025
|
-
foo: {}
|
|
2026
|
-
};
|
|
2027
|
-
|
|
2028
|
-
var $Object = Object;
|
|
2029
|
-
|
|
2030
|
-
/** @type {import('.')} */
|
|
2031
|
-
module.exports = function hasProto() {
|
|
2032
|
-
// @ts-expect-error: TS errors on an inherited property for some reason
|
|
2033
|
-
return { __proto__: test }.foo === test.foo
|
|
2034
|
-
&& !(test instanceof $Object);
|
|
2035
|
-
};
|
|
2036
|
-
|
|
2037
|
-
},{}],27:[function(require,module,exports){
|
|
2084
|
+
},{"es-define-property":20}],38:[function(require,module,exports){
|
|
2038
2085
|
'use strict';
|
|
2039
2086
|
|
|
2040
2087
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
2041
2088
|
var hasSymbolSham = require('./shams');
|
|
2042
2089
|
|
|
2090
|
+
/** @type {import('.')} */
|
|
2043
2091
|
module.exports = function hasNativeSymbols() {
|
|
2044
2092
|
if (typeof origSymbol !== 'function') { return false; }
|
|
2045
2093
|
if (typeof Symbol !== 'function') { return false; }
|
|
@@ -2049,14 +2097,16 @@ module.exports = function hasNativeSymbols() {
|
|
|
2049
2097
|
return hasSymbolSham();
|
|
2050
2098
|
};
|
|
2051
2099
|
|
|
2052
|
-
},{"./shams":
|
|
2100
|
+
},{"./shams":39}],39:[function(require,module,exports){
|
|
2053
2101
|
'use strict';
|
|
2054
2102
|
|
|
2103
|
+
/** @type {import('./shams')} */
|
|
2055
2104
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
2056
2105
|
module.exports = function hasSymbols() {
|
|
2057
2106
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
2058
2107
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
2059
2108
|
|
|
2109
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
2060
2110
|
var obj = {};
|
|
2061
2111
|
var sym = Symbol('test');
|
|
2062
2112
|
var symObj = Object(sym);
|
|
@@ -2075,7 +2125,7 @@ module.exports = function hasSymbols() {
|
|
|
2075
2125
|
|
|
2076
2126
|
var symVal = 42;
|
|
2077
2127
|
obj[sym] = symVal;
|
|
2078
|
-
for (
|
|
2128
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
2079
2129
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
2080
2130
|
|
|
2081
2131
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -2086,14 +2136,15 @@ module.exports = function hasSymbols() {
|
|
|
2086
2136
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
2087
2137
|
|
|
2088
2138
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
2089
|
-
|
|
2139
|
+
// eslint-disable-next-line no-extra-parens
|
|
2140
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
2090
2141
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
2091
2142
|
}
|
|
2092
2143
|
|
|
2093
2144
|
return true;
|
|
2094
2145
|
};
|
|
2095
2146
|
|
|
2096
|
-
},{}],
|
|
2147
|
+
},{}],40:[function(require,module,exports){
|
|
2097
2148
|
'use strict';
|
|
2098
2149
|
|
|
2099
2150
|
var call = Function.prototype.call;
|
|
@@ -2103,7 +2154,64 @@ var bind = require('function-bind');
|
|
|
2103
2154
|
/** @type {import('.')} */
|
|
2104
2155
|
module.exports = bind.call(call, $hasOwn);
|
|
2105
2156
|
|
|
2106
|
-
},{"function-bind":
|
|
2157
|
+
},{"function-bind":30}],41:[function(require,module,exports){
|
|
2158
|
+
'use strict';
|
|
2159
|
+
|
|
2160
|
+
/** @type {import('./abs')} */
|
|
2161
|
+
module.exports = Math.abs;
|
|
2162
|
+
|
|
2163
|
+
},{}],42:[function(require,module,exports){
|
|
2164
|
+
'use strict';
|
|
2165
|
+
|
|
2166
|
+
/** @type {import('./floor')} */
|
|
2167
|
+
module.exports = Math.floor;
|
|
2168
|
+
|
|
2169
|
+
},{}],43:[function(require,module,exports){
|
|
2170
|
+
'use strict';
|
|
2171
|
+
|
|
2172
|
+
/** @type {import('./isNaN')} */
|
|
2173
|
+
module.exports = Number.isNaN || function isNaN(a) {
|
|
2174
|
+
return a !== a;
|
|
2175
|
+
};
|
|
2176
|
+
|
|
2177
|
+
},{}],44:[function(require,module,exports){
|
|
2178
|
+
'use strict';
|
|
2179
|
+
|
|
2180
|
+
/** @type {import('./max')} */
|
|
2181
|
+
module.exports = Math.max;
|
|
2182
|
+
|
|
2183
|
+
},{}],45:[function(require,module,exports){
|
|
2184
|
+
'use strict';
|
|
2185
|
+
|
|
2186
|
+
/** @type {import('./min')} */
|
|
2187
|
+
module.exports = Math.min;
|
|
2188
|
+
|
|
2189
|
+
},{}],46:[function(require,module,exports){
|
|
2190
|
+
'use strict';
|
|
2191
|
+
|
|
2192
|
+
/** @type {import('./pow')} */
|
|
2193
|
+
module.exports = Math.pow;
|
|
2194
|
+
|
|
2195
|
+
},{}],47:[function(require,module,exports){
|
|
2196
|
+
'use strict';
|
|
2197
|
+
|
|
2198
|
+
/** @type {import('./round')} */
|
|
2199
|
+
module.exports = Math.round;
|
|
2200
|
+
|
|
2201
|
+
},{}],48:[function(require,module,exports){
|
|
2202
|
+
'use strict';
|
|
2203
|
+
|
|
2204
|
+
var $isNaN = require('./isNaN');
|
|
2205
|
+
|
|
2206
|
+
/** @type {import('./sign')} */
|
|
2207
|
+
module.exports = function sign(number) {
|
|
2208
|
+
if ($isNaN(number) || number === 0) {
|
|
2209
|
+
return number;
|
|
2210
|
+
}
|
|
2211
|
+
return number < 0 ? -1 : +1;
|
|
2212
|
+
};
|
|
2213
|
+
|
|
2214
|
+
},{"./isNaN":43}],49:[function(require,module,exports){
|
|
2107
2215
|
(function (global){(function (){
|
|
2108
2216
|
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
2109
2217
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
@@ -2634,7 +2742,7 @@ function arrObjKeys(obj, inspect) {
|
|
|
2634
2742
|
}
|
|
2635
2743
|
|
|
2636
2744
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
2637
|
-
},{"./util.inspect":9}],
|
|
2745
|
+
},{"./util.inspect":9}],50:[function(require,module,exports){
|
|
2638
2746
|
'use strict';
|
|
2639
2747
|
|
|
2640
2748
|
var replace = String.prototype.replace;
|
|
@@ -2659,7 +2767,7 @@ module.exports = {
|
|
|
2659
2767
|
RFC3986: Format.RFC3986
|
|
2660
2768
|
};
|
|
2661
2769
|
|
|
2662
|
-
},{}],
|
|
2770
|
+
},{}],51:[function(require,module,exports){
|
|
2663
2771
|
'use strict';
|
|
2664
2772
|
|
|
2665
2773
|
var stringify = require('./stringify');
|
|
@@ -2672,7 +2780,7 @@ module.exports = {
|
|
|
2672
2780
|
stringify: stringify
|
|
2673
2781
|
};
|
|
2674
2782
|
|
|
2675
|
-
},{"./formats":
|
|
2783
|
+
},{"./formats":50,"./parse":52,"./stringify":53}],52:[function(require,module,exports){
|
|
2676
2784
|
'use strict';
|
|
2677
2785
|
|
|
2678
2786
|
var utils = require('./utils');
|
|
@@ -2962,7 +3070,7 @@ module.exports = function (str, opts) {
|
|
|
2962
3070
|
return utils.compact(obj);
|
|
2963
3071
|
};
|
|
2964
3072
|
|
|
2965
|
-
},{"./utils":
|
|
3073
|
+
},{"./utils":54}],53:[function(require,module,exports){
|
|
2966
3074
|
'use strict';
|
|
2967
3075
|
|
|
2968
3076
|
var getSideChannel = require('side-channel');
|
|
@@ -3315,7 +3423,7 @@ module.exports = function (object, opts) {
|
|
|
3315
3423
|
return joined.length > 0 ? prefix + joined : '';
|
|
3316
3424
|
};
|
|
3317
3425
|
|
|
3318
|
-
},{"./formats":
|
|
3426
|
+
},{"./formats":50,"./utils":54,"side-channel":56}],54:[function(require,module,exports){
|
|
3319
3427
|
'use strict';
|
|
3320
3428
|
|
|
3321
3429
|
var formats = require('./formats');
|
|
@@ -3582,7 +3690,7 @@ module.exports = {
|
|
|
3582
3690
|
merge: merge
|
|
3583
3691
|
};
|
|
3584
3692
|
|
|
3585
|
-
},{"./formats":
|
|
3693
|
+
},{"./formats":50}],55:[function(require,module,exports){
|
|
3586
3694
|
'use strict';
|
|
3587
3695
|
|
|
3588
3696
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -3626,7 +3734,7 @@ module.exports = function setFunctionLength(fn, length) {
|
|
|
3626
3734
|
return fn;
|
|
3627
3735
|
};
|
|
3628
3736
|
|
|
3629
|
-
},{"define-data-property":
|
|
3737
|
+
},{"define-data-property":18,"es-errors/type":26,"get-intrinsic":31,"gopd":36,"has-property-descriptors":37}],56:[function(require,module,exports){
|
|
3630
3738
|
'use strict';
|
|
3631
3739
|
|
|
3632
3740
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -3757,5 +3865,5 @@ module.exports = function getSideChannel() {
|
|
|
3757
3865
|
return channel;
|
|
3758
3866
|
};
|
|
3759
3867
|
|
|
3760
|
-
},{"call-bind/callBound":
|
|
3868
|
+
},{"call-bind/callBound":16,"es-errors/type":26,"get-intrinsic":31,"object-inspect":49}]},{},[4])(4)
|
|
3761
3869
|
});
|