comprodls-sdk 2.46.1 → 2.48.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/dist/comprodls-sdk.js +453 -456
- package/dist/comprodls-sdk.min.js +20 -20
- package/lib/services/analytics/index.js +11 -6
- package/lib/services/auth/index.js +1 -0
- package/package.json +1 -1
package/dist/comprodls-sdk.js
CHANGED
|
@@ -799,7 +799,7 @@ function addClassIdQueryParam(url, classId) {
|
|
|
799
799
|
function setupAPIToken(request, token) {
|
|
800
800
|
return request.set('Authorization', token.access_token);
|
|
801
801
|
};
|
|
802
|
-
},{"../../../config":2,"../../../helpers":3,"../errors":7,"./validations":6,"q":58,"string-template":
|
|
802
|
+
},{"../../../config":2,"../../../helpers":3,"../errors":7,"./validations":6,"q":58,"string-template":84,"superagent":85}],6:[function(require,module,exports){
|
|
803
803
|
/*************************************************************************
|
|
804
804
|
*
|
|
805
805
|
* COMPRO CONFIDENTIAL
|
|
@@ -1131,7 +1131,7 @@ validator.validators.contains = function(value, options) {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
1133
|
};
|
|
1134
|
-
},{"./errors":7,"validate.js":
|
|
1134
|
+
},{"./errors":7,"validate.js":90}],10:[function(require,module,exports){
|
|
1135
1135
|
/*************************************************************************
|
|
1136
1136
|
*
|
|
1137
1137
|
* COMPRO CONFIDENTIAL
|
|
@@ -1254,7 +1254,7 @@ function getSingleInvitation(organizationId, options) {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
1256
|
|
|
1257
|
-
},{"../helpers":3,"q":58,"superagent":
|
|
1257
|
+
},{"../helpers":3,"q":58,"superagent":85}],11:[function(require,module,exports){
|
|
1258
1258
|
/*************************************************************************
|
|
1259
1259
|
*
|
|
1260
1260
|
* COMPRO CONFIDENTIAL
|
|
@@ -1465,7 +1465,7 @@ Activity.prototype.getQuestionsCount = function () {
|
|
|
1465
1465
|
return dfd.promise;
|
|
1466
1466
|
}
|
|
1467
1467
|
|
|
1468
|
-
},{"../../helpers":3,"./attempt":12,"extend":
|
|
1468
|
+
},{"../../helpers":3,"./attempt":12,"extend":44,"q":58,"superagent":85}],12:[function(require,module,exports){
|
|
1469
1469
|
/*************************************************************************
|
|
1470
1470
|
*
|
|
1471
1471
|
* COMPRO CONFIDENTIAL
|
|
@@ -1898,7 +1898,7 @@ Attempt.prototype.submit = function (userresponse) {
|
|
|
1898
1898
|
return dfd.promise;
|
|
1899
1899
|
};
|
|
1900
1900
|
|
|
1901
|
-
},{"../../helpers":3,"extend":
|
|
1901
|
+
},{"../../helpers":3,"extend":44,"q":58,"superagent":85}],13:[function(require,module,exports){
|
|
1902
1902
|
/*************************************************************************
|
|
1903
1903
|
*
|
|
1904
1904
|
* COMPRO CONFIDENTIAL
|
|
@@ -3461,7 +3461,8 @@ function getAllAssignedPathsOfClass(options) {
|
|
|
3461
3461
|
|
|
3462
3462
|
/* options = {
|
|
3463
3463
|
"classid": "string", // required
|
|
3464
|
-
"assignedPathId" : "string",
|
|
3464
|
+
"assignedPathId" : "string",
|
|
3465
|
+
"ext_assignedpathid" : "string",
|
|
3465
3466
|
"productcode" : "string" //required
|
|
3466
3467
|
};
|
|
3467
3468
|
*/
|
|
@@ -3472,7 +3473,7 @@ function getAssignedPathAnalytics(options) {
|
|
|
3472
3473
|
var err = helpers.validations.isAuthenticated(self.orgId, self.token);
|
|
3473
3474
|
if(err) { dfd.reject(err); }
|
|
3474
3475
|
else {
|
|
3475
|
-
if(options && options.classid && options.
|
|
3476
|
+
if(options && options.classid && options.productcode) {
|
|
3476
3477
|
// Passed all validations, Contruct API url
|
|
3477
3478
|
var url = self.config.DEFAULT_HOSTS.ANALYTICS + self.config.ANALYTICS_API_URLS.getAssignedPathAnalytics;
|
|
3478
3479
|
url = helpers.api.constructAPIUrl(url, { orgId: self.orgId });
|
|
@@ -3480,6 +3481,7 @@ function getAssignedPathAnalytics(options) {
|
|
|
3480
3481
|
var queryParams = {
|
|
3481
3482
|
classid: options.classid,
|
|
3482
3483
|
assignedpathid: options.assignedPathId,
|
|
3484
|
+
ext_assignedpathid: options.ext_assignedpathid,
|
|
3483
3485
|
productcode: options.productcode
|
|
3484
3486
|
};
|
|
3485
3487
|
// Setup request with URL and Params
|
|
@@ -3501,7 +3503,7 @@ function getAssignedPathAnalytics(options) {
|
|
|
3501
3503
|
}
|
|
3502
3504
|
else {
|
|
3503
3505
|
err = {};
|
|
3504
|
-
err.message = err.description = 'Mandatory params - classid or
|
|
3506
|
+
err.message = err.description = 'Mandatory params - classid or productcode not found in request options.';
|
|
3505
3507
|
err = new DLSError(helpers.errors.ERROR_TYPES.SDK_ERROR, err);
|
|
3506
3508
|
dfd.reject(err);
|
|
3507
3509
|
}
|
|
@@ -3562,7 +3564,8 @@ function getMyAssignedPathsOfClass(options) {
|
|
|
3562
3564
|
/* options = {
|
|
3563
3565
|
"classid": "string", // required
|
|
3564
3566
|
"userid" : "string", // required
|
|
3565
|
-
"assignedPathId" : "string",
|
|
3567
|
+
"assignedPathId" : "string",
|
|
3568
|
+
"ext_assignedpathid": "string",
|
|
3566
3569
|
"progress" : "true/false",
|
|
3567
3570
|
"group" : "true/false"
|
|
3568
3571
|
};
|
|
@@ -3574,7 +3577,7 @@ function getMyParticularAssignedPathOfClass(options) {
|
|
|
3574
3577
|
var err = helpers.validations.isAuthenticated(self.orgId, self.token);
|
|
3575
3578
|
if(err) { dfd.reject(err); }
|
|
3576
3579
|
else {
|
|
3577
|
-
if(options && options.classid && options.userid
|
|
3580
|
+
if(options && options.classid && options.userid ) {
|
|
3578
3581
|
|
|
3579
3582
|
// Passed all validations, Contruct API url
|
|
3580
3583
|
var url = self.config.DEFAULT_HOSTS.ANALYTICS + self.config.ANALYTICS_API_URLS.getMyAssignedPathsOfClass;
|
|
@@ -3586,6 +3589,8 @@ function getMyParticularAssignedPathOfClass(options) {
|
|
|
3586
3589
|
|
|
3587
3590
|
if(options.progress) { queryParams.progress = options.progress; }
|
|
3588
3591
|
if(options.group) { queryParams.group = options.group; }
|
|
3592
|
+
if(options.assignedpathid) { queryParams.assignedpathid = options.assignedpathid; }
|
|
3593
|
+
if(options.ext_assignedpathid) {queryParams.ext_assignedpathid = options.ext_assignedpathid;}
|
|
3589
3594
|
|
|
3590
3595
|
// Setup request with URL and Params
|
|
3591
3596
|
var requestAPI = request.get(url).query(queryParams);
|
|
@@ -3605,7 +3610,7 @@ function getMyParticularAssignedPathOfClass(options) {
|
|
|
3605
3610
|
}
|
|
3606
3611
|
else {
|
|
3607
3612
|
err = {};
|
|
3608
|
-
err.message = err.description = 'Mandatory params - classid, userid
|
|
3613
|
+
err.message = err.description = 'Mandatory params - classid, userid not found in ' +
|
|
3609
3614
|
'request options.';
|
|
3610
3615
|
err = new DLSError(helpers.errors.ERROR_TYPES.SDK_ERROR, err);
|
|
3611
3616
|
dfd.reject(err);
|
|
@@ -3822,7 +3827,7 @@ function postProgressTimeseries(options) {
|
|
|
3822
3827
|
return dfd.promise;
|
|
3823
3828
|
}
|
|
3824
3829
|
|
|
3825
|
-
},{"../../helpers":3,"agentkeepalive":36,"q":58,"superagent":
|
|
3830
|
+
},{"../../helpers":3,"agentkeepalive":36,"q":58,"superagent":85}],15:[function(require,module,exports){
|
|
3826
3831
|
/*************************************************************************
|
|
3827
3832
|
*
|
|
3828
3833
|
* COMPRO CONFIDENTIAL
|
|
@@ -4262,7 +4267,7 @@ function getUserActivityMeta(options) {
|
|
|
4262
4267
|
}
|
|
4263
4268
|
return dfd.promise;
|
|
4264
4269
|
}
|
|
4265
|
-
},{"../../helpers":3,"q":58,"superagent":
|
|
4270
|
+
},{"../../helpers":3,"q":58,"superagent":85}],16:[function(require,module,exports){
|
|
4266
4271
|
/*************************************************************************
|
|
4267
4272
|
*
|
|
4268
4273
|
* COMPRO CONFIDENTIAL
|
|
@@ -6406,6 +6411,7 @@ options = {
|
|
|
6406
6411
|
"classid": "classid", //mandatory
|
|
6407
6412
|
"data": {
|
|
6408
6413
|
"title": "assigned path title", //mandatory
|
|
6414
|
+
"ext_assignedpathid": 'string', //optional
|
|
6409
6415
|
"duedate": "epoch due date", //mandatory
|
|
6410
6416
|
"startdate": "epoch start date", //optional
|
|
6411
6417
|
"shared_progress": true, //optional, default=true
|
|
@@ -8336,7 +8342,7 @@ function getAllCustomComponents(options) {
|
|
|
8336
8342
|
return deferred.promise;
|
|
8337
8343
|
}
|
|
8338
8344
|
|
|
8339
|
-
},{"../../helpers":3,"../../helpers/lib/api/converter":4,"agentkeepalive":36,"q":58,"superagent":
|
|
8345
|
+
},{"../../helpers":3,"../../helpers/lib/api/converter":4,"agentkeepalive":36,"q":58,"superagent":85}],17:[function(require,module,exports){
|
|
8340
8346
|
/*************************************************************************
|
|
8341
8347
|
*
|
|
8342
8348
|
* COMPRO CONFIDENTIAL
|
|
@@ -9047,7 +9053,7 @@ function getClassesOfAGradeformat(options) {
|
|
|
9047
9053
|
return deferred.promise;
|
|
9048
9054
|
}
|
|
9049
9055
|
|
|
9050
|
-
},{"../../helpers":3,"agentkeepalive":36,"q":58,"superagent":
|
|
9056
|
+
},{"../../helpers":3,"agentkeepalive":36,"q":58,"superagent":85}],18:[function(require,module,exports){
|
|
9051
9057
|
/*************************************************************************
|
|
9052
9058
|
*
|
|
9053
9059
|
* COMPRO CONFIDENTIAL
|
|
@@ -9517,7 +9523,7 @@ function updateConnectionForUser(orgid, token, config, options, action) {
|
|
|
9517
9523
|
return dfd.promise;
|
|
9518
9524
|
}
|
|
9519
9525
|
|
|
9520
|
-
},{"../../helpers":3,"q":58,"superagent":
|
|
9526
|
+
},{"../../helpers":3,"q":58,"superagent":85}],19:[function(require,module,exports){
|
|
9521
9527
|
/*************************************************************************
|
|
9522
9528
|
*
|
|
9523
9529
|
* COMPRO CONFIDENTIAL
|
|
@@ -9829,7 +9835,7 @@ function getAllDataSyncManagersOfAGroup(options) {
|
|
|
9829
9835
|
return deferred.promise;
|
|
9830
9836
|
}
|
|
9831
9837
|
|
|
9832
|
-
},{"../../helpers":3,"agentkeepalive":36,"q":58,"superagent":
|
|
9838
|
+
},{"../../helpers":3,"agentkeepalive":36,"q":58,"superagent":85}],20:[function(require,module,exports){
|
|
9833
9839
|
/*************************************************************************
|
|
9834
9840
|
*
|
|
9835
9841
|
* COMPRO CONFIDENTIAL
|
|
@@ -9975,7 +9981,7 @@ function getAllDocumentsInAFolder(options) {
|
|
|
9975
9981
|
return dfd.promise;
|
|
9976
9982
|
}
|
|
9977
9983
|
|
|
9978
|
-
},{"../../helpers":3,"q":58,"superagent":
|
|
9984
|
+
},{"../../helpers":3,"q":58,"superagent":85}],21:[function(require,module,exports){
|
|
9979
9985
|
/*************************************************************************
|
|
9980
9986
|
*
|
|
9981
9987
|
* COMPRO CONFIDENTIAL
|
|
@@ -10532,7 +10538,7 @@ function deleteSchedule(options) {
|
|
|
10532
10538
|
return deferred.promise;
|
|
10533
10539
|
}
|
|
10534
10540
|
|
|
10535
|
-
},{"../../helpers":3,"../../helpers/lib/api/converter":4,"agentkeepalive":36,"q":58,"superagent":
|
|
10541
|
+
},{"../../helpers":3,"../../helpers/lib/api/converter":4,"agentkeepalive":36,"q":58,"superagent":85}],22:[function(require,module,exports){
|
|
10536
10542
|
/*************************************************************************
|
|
10537
10543
|
*
|
|
10538
10544
|
* COMPRO CONFIDENTIAL
|
|
@@ -10857,7 +10863,7 @@ function resendSingleInvitation(options) {
|
|
|
10857
10863
|
return dfd.promise;
|
|
10858
10864
|
}
|
|
10859
10865
|
|
|
10860
|
-
},{"../../helpers":3,"q":58,"superagent":
|
|
10866
|
+
},{"../../helpers":3,"q":58,"superagent":85}],23:[function(require,module,exports){
|
|
10861
10867
|
/*************************************************************************
|
|
10862
10868
|
*
|
|
10863
10869
|
* COMPRO CONFIDENTIAL
|
|
@@ -11318,7 +11324,7 @@ function createStatement(options) {
|
|
|
11318
11324
|
}*/
|
|
11319
11325
|
|
|
11320
11326
|
|
|
11321
|
-
},{"../../helpers":3,"q":58,"tincanjs":
|
|
11327
|
+
},{"../../helpers":3,"q":58,"tincanjs":87}],24:[function(require,module,exports){
|
|
11322
11328
|
/*************************************************************************
|
|
11323
11329
|
*
|
|
11324
11330
|
* COMPRO CONFIDENTIAL
|
|
@@ -11666,7 +11672,7 @@ function getSingleProductFamily(options) {
|
|
|
11666
11672
|
return dfd.promise;
|
|
11667
11673
|
}
|
|
11668
11674
|
|
|
11669
|
-
},{"../../helpers":3,"q":58,"superagent":
|
|
11675
|
+
},{"../../helpers":3,"q":58,"superagent":85}],25:[function(require,module,exports){
|
|
11670
11676
|
/*************************************************************************
|
|
11671
11677
|
*
|
|
11672
11678
|
* COMPRO CONFIDENTIAL
|
|
@@ -12266,7 +12272,7 @@ function getAllProductFamilies(options) {
|
|
|
12266
12272
|
return dfd.promise;
|
|
12267
12273
|
}
|
|
12268
12274
|
|
|
12269
|
-
},{"../../helpers":3,"q":58,"superagent":
|
|
12275
|
+
},{"../../helpers":3,"q":58,"superagent":85}],26:[function(require,module,exports){
|
|
12270
12276
|
/*************************************************************************
|
|
12271
12277
|
*
|
|
12272
12278
|
* COMPRO CONFIDENTIAL
|
|
@@ -12466,7 +12472,7 @@ function grantByAccountIdOnExtUserId(options) {
|
|
|
12466
12472
|
}
|
|
12467
12473
|
|
|
12468
12474
|
|
|
12469
|
-
},{"../../helpers":3,"./pubnubClientWrapper":27,"q":58,"superagent":
|
|
12475
|
+
},{"../../helpers":3,"./pubnubClientWrapper":27,"q":58,"superagent":85}],27:[function(require,module,exports){
|
|
12470
12476
|
var pubNub = require("pubnub");
|
|
12471
12477
|
var EventEmitter = require("events").EventEmitter;
|
|
12472
12478
|
var helpers = require('../../helpers');
|
|
@@ -12679,7 +12685,7 @@ module.exports = function () {
|
|
|
12679
12685
|
|
|
12680
12686
|
}; //End of Client Wrapper module
|
|
12681
12687
|
|
|
12682
|
-
},{"../../helpers":3,"events":
|
|
12688
|
+
},{"../../helpers":3,"events":43,"pubnub":56}],28:[function(require,module,exports){
|
|
12683
12689
|
/*************************************************************************
|
|
12684
12690
|
*
|
|
12685
12691
|
* COMPRO CONFIDENTIAL
|
|
@@ -13146,7 +13152,7 @@ function deleteRule(options) {
|
|
|
13146
13152
|
return dfd.promise;
|
|
13147
13153
|
}
|
|
13148
13154
|
|
|
13149
|
-
},{"../../helpers":3,"q":58,"superagent":
|
|
13155
|
+
},{"../../helpers":3,"q":58,"superagent":85}],29:[function(require,module,exports){
|
|
13150
13156
|
/*************************************************************************
|
|
13151
13157
|
*
|
|
13152
13158
|
* COMPRO CONFIDENTIAL
|
|
@@ -14302,7 +14308,7 @@ function updateInstituteTitle(options){
|
|
|
14302
14308
|
return dfd.promise;
|
|
14303
14309
|
}
|
|
14304
14310
|
|
|
14305
|
-
},{"../../helpers":3,"agentkeepalive":36,"q":58,"superagent":
|
|
14311
|
+
},{"../../helpers":3,"agentkeepalive":36,"q":58,"superagent":85}],30:[function(require,module,exports){
|
|
14306
14312
|
/*************************************************************************
|
|
14307
14313
|
*
|
|
14308
14314
|
* COMPRO CONFIDENTIAL
|
|
@@ -14479,7 +14485,7 @@ function provisionSpacesToSuperAdmin(options) {
|
|
|
14479
14485
|
return dfd.promise;
|
|
14480
14486
|
}
|
|
14481
14487
|
|
|
14482
|
-
},{"../../helpers":3,"q":58,"superagent":
|
|
14488
|
+
},{"../../helpers":3,"q":58,"superagent":85}],31:[function(require,module,exports){
|
|
14483
14489
|
/*************************************************************************
|
|
14484
14490
|
*
|
|
14485
14491
|
* COMPRO CONFIDENTIAL
|
|
@@ -14916,7 +14922,7 @@ function getAllTags(options) {
|
|
|
14916
14922
|
return dfd.promise;
|
|
14917
14923
|
}
|
|
14918
14924
|
|
|
14919
|
-
},{"../../helpers":3,"q":58,"superagent":
|
|
14925
|
+
},{"../../helpers":3,"q":58,"superagent":85}],32:[function(require,module,exports){
|
|
14920
14926
|
/*************************************************************************
|
|
14921
14927
|
*
|
|
14922
14928
|
* COMPRO CONFIDENTIAL
|
|
@@ -15382,7 +15388,7 @@ function updateWorkflowRequest(options) {
|
|
|
15382
15388
|
}
|
|
15383
15389
|
return dfd.promise;
|
|
15384
15390
|
}
|
|
15385
|
-
},{"./../../helpers":3,"q":58,"superagent":
|
|
15391
|
+
},{"./../../helpers":3,"q":58,"superagent":85}],33:[function(require,module,exports){
|
|
15386
15392
|
/*************************************************************************
|
|
15387
15393
|
*
|
|
15388
15394
|
* COMPRO CONFIDENTIAL
|
|
@@ -15659,7 +15665,7 @@ function resetUserProductProgress(options) {
|
|
|
15659
15665
|
return dfd.promise;
|
|
15660
15666
|
}
|
|
15661
15667
|
|
|
15662
|
-
},{"../../helpers":3,"q":58,"superagent":
|
|
15668
|
+
},{"../../helpers":3,"q":58,"superagent":85}],34:[function(require,module,exports){
|
|
15663
15669
|
/*************************************************************************
|
|
15664
15670
|
*
|
|
15665
15671
|
* COMPRO CONFIDENTIAL
|
|
@@ -15775,7 +15781,7 @@ function authWithToken(organizationId, token, options) {
|
|
|
15775
15781
|
return dfd.promise;
|
|
15776
15782
|
};
|
|
15777
15783
|
|
|
15778
|
-
},{"../helpers":3,"./validations":35,"q":58,"superagent":
|
|
15784
|
+
},{"../helpers":3,"./validations":35,"q":58,"superagent":85}],35:[function(require,module,exports){
|
|
15779
15785
|
/*************************************************************************
|
|
15780
15786
|
*
|
|
15781
15787
|
* COMPRO CONFIDENTIAL
|
|
@@ -15873,6 +15879,8 @@ module.exports.HttpsAgent = noop;
|
|
|
15873
15879
|
function noop () {}
|
|
15874
15880
|
|
|
15875
15881
|
},{}],37:[function(require,module,exports){
|
|
15882
|
+
|
|
15883
|
+
},{}],38:[function(require,module,exports){
|
|
15876
15884
|
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
15877
15885
|
|
|
15878
15886
|
;(function (exports) {
|
|
@@ -15998,8 +16006,6 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
|
15998
16006
|
exports.fromByteArray = uint8ToBase64
|
|
15999
16007
|
}(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
|
|
16000
16008
|
|
|
16001
|
-
},{}],38:[function(require,module,exports){
|
|
16002
|
-
|
|
16003
16009
|
},{}],39:[function(require,module,exports){
|
|
16004
16010
|
(function (global){
|
|
16005
16011
|
/*!
|
|
@@ -17552,7 +17558,7 @@ function blitBuffer (src, dst, offset, length) {
|
|
|
17552
17558
|
}
|
|
17553
17559
|
|
|
17554
17560
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
17555
|
-
},{"base64-js":
|
|
17561
|
+
},{"base64-js":38,"ieee754":47,"isarray":40}],40:[function(require,module,exports){
|
|
17556
17562
|
var toString = {}.toString;
|
|
17557
17563
|
|
|
17558
17564
|
module.exports = Array.isArray || function (arr) {
|
|
@@ -17621,169 +17627,6 @@ module.exports = {
|
|
|
17621
17627
|
}
|
|
17622
17628
|
|
|
17623
17629
|
},{}],42:[function(require,module,exports){
|
|
17624
|
-
|
|
17625
|
-
/**
|
|
17626
|
-
* Expose `Emitter`.
|
|
17627
|
-
*/
|
|
17628
|
-
|
|
17629
|
-
module.exports = Emitter;
|
|
17630
|
-
|
|
17631
|
-
/**
|
|
17632
|
-
* Initialize a new `Emitter`.
|
|
17633
|
-
*
|
|
17634
|
-
* @api public
|
|
17635
|
-
*/
|
|
17636
|
-
|
|
17637
|
-
function Emitter(obj) {
|
|
17638
|
-
if (obj) return mixin(obj);
|
|
17639
|
-
};
|
|
17640
|
-
|
|
17641
|
-
/**
|
|
17642
|
-
* Mixin the emitter properties.
|
|
17643
|
-
*
|
|
17644
|
-
* @param {Object} obj
|
|
17645
|
-
* @return {Object}
|
|
17646
|
-
* @api private
|
|
17647
|
-
*/
|
|
17648
|
-
|
|
17649
|
-
function mixin(obj) {
|
|
17650
|
-
for (var key in Emitter.prototype) {
|
|
17651
|
-
obj[key] = Emitter.prototype[key];
|
|
17652
|
-
}
|
|
17653
|
-
return obj;
|
|
17654
|
-
}
|
|
17655
|
-
|
|
17656
|
-
/**
|
|
17657
|
-
* Listen on the given `event` with `fn`.
|
|
17658
|
-
*
|
|
17659
|
-
* @param {String} event
|
|
17660
|
-
* @param {Function} fn
|
|
17661
|
-
* @return {Emitter}
|
|
17662
|
-
* @api public
|
|
17663
|
-
*/
|
|
17664
|
-
|
|
17665
|
-
Emitter.prototype.on =
|
|
17666
|
-
Emitter.prototype.addEventListener = function(event, fn){
|
|
17667
|
-
this._callbacks = this._callbacks || {};
|
|
17668
|
-
(this._callbacks['$' + event] = this._callbacks['$' + event] || [])
|
|
17669
|
-
.push(fn);
|
|
17670
|
-
return this;
|
|
17671
|
-
};
|
|
17672
|
-
|
|
17673
|
-
/**
|
|
17674
|
-
* Adds an `event` listener that will be invoked a single
|
|
17675
|
-
* time then automatically removed.
|
|
17676
|
-
*
|
|
17677
|
-
* @param {String} event
|
|
17678
|
-
* @param {Function} fn
|
|
17679
|
-
* @return {Emitter}
|
|
17680
|
-
* @api public
|
|
17681
|
-
*/
|
|
17682
|
-
|
|
17683
|
-
Emitter.prototype.once = function(event, fn){
|
|
17684
|
-
function on() {
|
|
17685
|
-
this.off(event, on);
|
|
17686
|
-
fn.apply(this, arguments);
|
|
17687
|
-
}
|
|
17688
|
-
|
|
17689
|
-
on.fn = fn;
|
|
17690
|
-
this.on(event, on);
|
|
17691
|
-
return this;
|
|
17692
|
-
};
|
|
17693
|
-
|
|
17694
|
-
/**
|
|
17695
|
-
* Remove the given callback for `event` or all
|
|
17696
|
-
* registered callbacks.
|
|
17697
|
-
*
|
|
17698
|
-
* @param {String} event
|
|
17699
|
-
* @param {Function} fn
|
|
17700
|
-
* @return {Emitter}
|
|
17701
|
-
* @api public
|
|
17702
|
-
*/
|
|
17703
|
-
|
|
17704
|
-
Emitter.prototype.off =
|
|
17705
|
-
Emitter.prototype.removeListener =
|
|
17706
|
-
Emitter.prototype.removeAllListeners =
|
|
17707
|
-
Emitter.prototype.removeEventListener = function(event, fn){
|
|
17708
|
-
this._callbacks = this._callbacks || {};
|
|
17709
|
-
|
|
17710
|
-
// all
|
|
17711
|
-
if (0 == arguments.length) {
|
|
17712
|
-
this._callbacks = {};
|
|
17713
|
-
return this;
|
|
17714
|
-
}
|
|
17715
|
-
|
|
17716
|
-
// specific event
|
|
17717
|
-
var callbacks = this._callbacks['$' + event];
|
|
17718
|
-
if (!callbacks) return this;
|
|
17719
|
-
|
|
17720
|
-
// remove all handlers
|
|
17721
|
-
if (1 == arguments.length) {
|
|
17722
|
-
delete this._callbacks['$' + event];
|
|
17723
|
-
return this;
|
|
17724
|
-
}
|
|
17725
|
-
|
|
17726
|
-
// remove specific handler
|
|
17727
|
-
var cb;
|
|
17728
|
-
for (var i = 0; i < callbacks.length; i++) {
|
|
17729
|
-
cb = callbacks[i];
|
|
17730
|
-
if (cb === fn || cb.fn === fn) {
|
|
17731
|
-
callbacks.splice(i, 1);
|
|
17732
|
-
break;
|
|
17733
|
-
}
|
|
17734
|
-
}
|
|
17735
|
-
return this;
|
|
17736
|
-
};
|
|
17737
|
-
|
|
17738
|
-
/**
|
|
17739
|
-
* Emit `event` with the given args.
|
|
17740
|
-
*
|
|
17741
|
-
* @param {String} event
|
|
17742
|
-
* @param {Mixed} ...
|
|
17743
|
-
* @return {Emitter}
|
|
17744
|
-
*/
|
|
17745
|
-
|
|
17746
|
-
Emitter.prototype.emit = function(event){
|
|
17747
|
-
this._callbacks = this._callbacks || {};
|
|
17748
|
-
var args = [].slice.call(arguments, 1)
|
|
17749
|
-
, callbacks = this._callbacks['$' + event];
|
|
17750
|
-
|
|
17751
|
-
if (callbacks) {
|
|
17752
|
-
callbacks = callbacks.slice(0);
|
|
17753
|
-
for (var i = 0, len = callbacks.length; i < len; ++i) {
|
|
17754
|
-
callbacks[i].apply(this, args);
|
|
17755
|
-
}
|
|
17756
|
-
}
|
|
17757
|
-
|
|
17758
|
-
return this;
|
|
17759
|
-
};
|
|
17760
|
-
|
|
17761
|
-
/**
|
|
17762
|
-
* Return array of callbacks for `event`.
|
|
17763
|
-
*
|
|
17764
|
-
* @param {String} event
|
|
17765
|
-
* @return {Array}
|
|
17766
|
-
* @api public
|
|
17767
|
-
*/
|
|
17768
|
-
|
|
17769
|
-
Emitter.prototype.listeners = function(event){
|
|
17770
|
-
this._callbacks = this._callbacks || {};
|
|
17771
|
-
return this._callbacks['$' + event] || [];
|
|
17772
|
-
};
|
|
17773
|
-
|
|
17774
|
-
/**
|
|
17775
|
-
* Check if this emitter has `event` handlers.
|
|
17776
|
-
*
|
|
17777
|
-
* @param {String} event
|
|
17778
|
-
* @return {Boolean}
|
|
17779
|
-
* @api public
|
|
17780
|
-
*/
|
|
17781
|
-
|
|
17782
|
-
Emitter.prototype.hasListeners = function(event){
|
|
17783
|
-
return !! this.listeners(event).length;
|
|
17784
|
-
};
|
|
17785
|
-
|
|
17786
|
-
},{}],43:[function(require,module,exports){
|
|
17787
17630
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
17788
17631
|
//
|
|
17789
17632
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -17892,7 +17735,7 @@ function objectToString(o) {
|
|
|
17892
17735
|
return Object.prototype.toString.call(o);
|
|
17893
17736
|
}
|
|
17894
17737
|
|
|
17895
|
-
},{"buffer":39}],
|
|
17738
|
+
},{"buffer":39}],43:[function(require,module,exports){
|
|
17896
17739
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
17897
17740
|
//
|
|
17898
17741
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -18195,7 +18038,7 @@ function isUndefined(arg) {
|
|
|
18195
18038
|
return arg === void 0;
|
|
18196
18039
|
}
|
|
18197
18040
|
|
|
18198
|
-
},{}],
|
|
18041
|
+
},{}],44:[function(require,module,exports){
|
|
18199
18042
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
18200
18043
|
var toStr = Object.prototype.toString;
|
|
18201
18044
|
var defineProperty = Object.defineProperty;
|
|
@@ -18316,7 +18159,7 @@ module.exports = function extend() {
|
|
|
18316
18159
|
return target;
|
|
18317
18160
|
};
|
|
18318
18161
|
|
|
18319
|
-
},{}],
|
|
18162
|
+
},{}],45:[function(require,module,exports){
|
|
18320
18163
|
|
|
18321
18164
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
18322
18165
|
var toString = Object.prototype.toString;
|
|
@@ -18340,7 +18183,7 @@ module.exports = function forEach (obj, fn, ctx) {
|
|
|
18340
18183
|
};
|
|
18341
18184
|
|
|
18342
18185
|
|
|
18343
|
-
},{}],
|
|
18186
|
+
},{}],46:[function(require,module,exports){
|
|
18344
18187
|
var http = require('http');
|
|
18345
18188
|
|
|
18346
18189
|
var https = module.exports;
|
|
@@ -18356,7 +18199,7 @@ https.request = function (params, cb) {
|
|
|
18356
18199
|
return http.request.call(this, params, cb);
|
|
18357
18200
|
}
|
|
18358
18201
|
|
|
18359
|
-
},{"http":
|
|
18202
|
+
},{"http":80}],47:[function(require,module,exports){
|
|
18360
18203
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
18361
18204
|
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
18362
18205
|
var e, m
|
|
@@ -18443,7 +18286,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
18443
18286
|
buffer[offset + i - d] |= s * 128
|
|
18444
18287
|
}
|
|
18445
18288
|
|
|
18446
|
-
},{}],
|
|
18289
|
+
},{}],48:[function(require,module,exports){
|
|
18447
18290
|
|
|
18448
18291
|
var indexOf = [].indexOf;
|
|
18449
18292
|
|
|
@@ -18454,6 +18297,35 @@ module.exports = function(arr, obj){
|
|
|
18454
18297
|
}
|
|
18455
18298
|
return -1;
|
|
18456
18299
|
};
|
|
18300
|
+
},{}],49:[function(require,module,exports){
|
|
18301
|
+
if (typeof Object.create === 'function') {
|
|
18302
|
+
// implementation from standard node.js 'util' module
|
|
18303
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
18304
|
+
if (superCtor) {
|
|
18305
|
+
ctor.super_ = superCtor
|
|
18306
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
18307
|
+
constructor: {
|
|
18308
|
+
value: ctor,
|
|
18309
|
+
enumerable: false,
|
|
18310
|
+
writable: true,
|
|
18311
|
+
configurable: true
|
|
18312
|
+
}
|
|
18313
|
+
})
|
|
18314
|
+
}
|
|
18315
|
+
};
|
|
18316
|
+
} else {
|
|
18317
|
+
// old school shim for old browsers
|
|
18318
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
18319
|
+
if (superCtor) {
|
|
18320
|
+
ctor.super_ = superCtor
|
|
18321
|
+
var TempCtor = function () {}
|
|
18322
|
+
TempCtor.prototype = superCtor.prototype
|
|
18323
|
+
ctor.prototype = new TempCtor()
|
|
18324
|
+
ctor.prototype.constructor = ctor
|
|
18325
|
+
}
|
|
18326
|
+
}
|
|
18327
|
+
}
|
|
18328
|
+
|
|
18457
18329
|
},{}],50:[function(require,module,exports){
|
|
18458
18330
|
'use strict';
|
|
18459
18331
|
|
|
@@ -21703,9 +21575,165 @@ exports.decode = exports.parse = require('./decode');
|
|
|
21703
21575
|
exports.encode = exports.stringify = require('./encode');
|
|
21704
21576
|
|
|
21705
21577
|
},{"./decode":59,"./encode":60}],62:[function(require,module,exports){
|
|
21578
|
+
|
|
21579
|
+
/**
|
|
21580
|
+
* Reduce `arr` with `fn`.
|
|
21581
|
+
*
|
|
21582
|
+
* @param {Array} arr
|
|
21583
|
+
* @param {Function} fn
|
|
21584
|
+
* @param {Mixed} initial
|
|
21585
|
+
*
|
|
21586
|
+
* TODO: combatible error handling?
|
|
21587
|
+
*/
|
|
21588
|
+
|
|
21589
|
+
module.exports = function(arr, fn, initial){
|
|
21590
|
+
var idx = 0;
|
|
21591
|
+
var len = arr.length;
|
|
21592
|
+
var curr = arguments.length == 3
|
|
21593
|
+
? initial
|
|
21594
|
+
: arr[idx++];
|
|
21595
|
+
|
|
21596
|
+
while (idx < len) {
|
|
21597
|
+
curr = fn.call(null, curr, arr[idx], ++idx, arr);
|
|
21598
|
+
}
|
|
21599
|
+
|
|
21600
|
+
return curr;
|
|
21601
|
+
};
|
|
21602
|
+
},{}],63:[function(require,module,exports){
|
|
21603
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
21604
|
+
//
|
|
21605
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
21606
|
+
// copy of this software and associated documentation files (the
|
|
21607
|
+
// "Software"), to deal in the Software without restriction, including
|
|
21608
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
21609
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
21610
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
21611
|
+
// following conditions:
|
|
21612
|
+
//
|
|
21613
|
+
// The above copyright notice and this permission notice shall be included
|
|
21614
|
+
// in all copies or substantial portions of the Software.
|
|
21615
|
+
//
|
|
21616
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
21617
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
21618
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
21619
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
21620
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
21621
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
21622
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21623
|
+
|
|
21624
|
+
module.exports = Stream;
|
|
21625
|
+
|
|
21626
|
+
var EE = require('events').EventEmitter;
|
|
21627
|
+
var inherits = require('inherits');
|
|
21628
|
+
|
|
21629
|
+
inherits(Stream, EE);
|
|
21630
|
+
Stream.Readable = require('readable-stream/readable.js');
|
|
21631
|
+
Stream.Writable = require('readable-stream/writable.js');
|
|
21632
|
+
Stream.Duplex = require('readable-stream/duplex.js');
|
|
21633
|
+
Stream.Transform = require('readable-stream/transform.js');
|
|
21634
|
+
Stream.PassThrough = require('readable-stream/passthrough.js');
|
|
21635
|
+
|
|
21636
|
+
// Backwards-compat with node 0.4.x
|
|
21637
|
+
Stream.Stream = Stream;
|
|
21638
|
+
|
|
21639
|
+
|
|
21640
|
+
|
|
21641
|
+
// old-style streams. Note that the pipe method (the only relevant
|
|
21642
|
+
// part of this class) is overridden in the Readable class.
|
|
21643
|
+
|
|
21644
|
+
function Stream() {
|
|
21645
|
+
EE.call(this);
|
|
21646
|
+
}
|
|
21647
|
+
|
|
21648
|
+
Stream.prototype.pipe = function(dest, options) {
|
|
21649
|
+
var source = this;
|
|
21650
|
+
|
|
21651
|
+
function ondata(chunk) {
|
|
21652
|
+
if (dest.writable) {
|
|
21653
|
+
if (false === dest.write(chunk) && source.pause) {
|
|
21654
|
+
source.pause();
|
|
21655
|
+
}
|
|
21656
|
+
}
|
|
21657
|
+
}
|
|
21658
|
+
|
|
21659
|
+
source.on('data', ondata);
|
|
21660
|
+
|
|
21661
|
+
function ondrain() {
|
|
21662
|
+
if (source.readable && source.resume) {
|
|
21663
|
+
source.resume();
|
|
21664
|
+
}
|
|
21665
|
+
}
|
|
21666
|
+
|
|
21667
|
+
dest.on('drain', ondrain);
|
|
21668
|
+
|
|
21669
|
+
// If the 'end' option is not supplied, dest.end() will be called when
|
|
21670
|
+
// source gets the 'end' or 'close' events. Only dest.end() once.
|
|
21671
|
+
if (!dest._isStdio && (!options || options.end !== false)) {
|
|
21672
|
+
source.on('end', onend);
|
|
21673
|
+
source.on('close', onclose);
|
|
21674
|
+
}
|
|
21675
|
+
|
|
21676
|
+
var didOnEnd = false;
|
|
21677
|
+
function onend() {
|
|
21678
|
+
if (didOnEnd) return;
|
|
21679
|
+
didOnEnd = true;
|
|
21680
|
+
|
|
21681
|
+
dest.end();
|
|
21682
|
+
}
|
|
21683
|
+
|
|
21684
|
+
|
|
21685
|
+
function onclose() {
|
|
21686
|
+
if (didOnEnd) return;
|
|
21687
|
+
didOnEnd = true;
|
|
21688
|
+
|
|
21689
|
+
if (typeof dest.destroy === 'function') dest.destroy();
|
|
21690
|
+
}
|
|
21691
|
+
|
|
21692
|
+
// don't leave dangling pipes when there are errors.
|
|
21693
|
+
function onerror(er) {
|
|
21694
|
+
cleanup();
|
|
21695
|
+
if (EE.listenerCount(this, 'error') === 0) {
|
|
21696
|
+
throw er; // Unhandled stream error in pipe.
|
|
21697
|
+
}
|
|
21698
|
+
}
|
|
21699
|
+
|
|
21700
|
+
source.on('error', onerror);
|
|
21701
|
+
dest.on('error', onerror);
|
|
21702
|
+
|
|
21703
|
+
// remove all the event listeners that were added.
|
|
21704
|
+
function cleanup() {
|
|
21705
|
+
source.removeListener('data', ondata);
|
|
21706
|
+
dest.removeListener('drain', ondrain);
|
|
21707
|
+
|
|
21708
|
+
source.removeListener('end', onend);
|
|
21709
|
+
source.removeListener('close', onclose);
|
|
21710
|
+
|
|
21711
|
+
source.removeListener('error', onerror);
|
|
21712
|
+
dest.removeListener('error', onerror);
|
|
21713
|
+
|
|
21714
|
+
source.removeListener('end', cleanup);
|
|
21715
|
+
source.removeListener('close', cleanup);
|
|
21716
|
+
|
|
21717
|
+
dest.removeListener('close', cleanup);
|
|
21718
|
+
}
|
|
21719
|
+
|
|
21720
|
+
source.on('end', cleanup);
|
|
21721
|
+
source.on('close', cleanup);
|
|
21722
|
+
|
|
21723
|
+
dest.on('close', cleanup);
|
|
21724
|
+
|
|
21725
|
+
dest.emit('pipe', source);
|
|
21726
|
+
|
|
21727
|
+
// Allow for unix-like usage: A.pipe(B).pipe(C)
|
|
21728
|
+
return dest;
|
|
21729
|
+
};
|
|
21730
|
+
|
|
21731
|
+
},{"events":43,"inherits":49,"readable-stream/duplex.js":65,"readable-stream/passthrough.js":74,"readable-stream/readable.js":75,"readable-stream/transform.js":76,"readable-stream/writable.js":77}],64:[function(require,module,exports){
|
|
21732
|
+
arguments[4][40][0].apply(exports,arguments)
|
|
21733
|
+
},{"dup":40}],65:[function(require,module,exports){
|
|
21706
21734
|
module.exports = require('./lib/_stream_duplex.js');
|
|
21707
21735
|
|
|
21708
|
-
},{"./lib/_stream_duplex.js":
|
|
21736
|
+
},{"./lib/_stream_duplex.js":66}],66:[function(require,module,exports){
|
|
21709
21737
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
21710
21738
|
//
|
|
21711
21739
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -21837,7 +21865,7 @@ Duplex.prototype._destroy = function (err, cb) {
|
|
|
21837
21865
|
|
|
21838
21866
|
pna.nextTick(cb, err);
|
|
21839
21867
|
};
|
|
21840
|
-
},{"./_stream_readable":
|
|
21868
|
+
},{"./_stream_readable":68,"./_stream_writable":70,"core-util-is":42,"inherits":49,"process-nextick-args":54}],67:[function(require,module,exports){
|
|
21841
21869
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
21842
21870
|
//
|
|
21843
21871
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -21885,7 +21913,7 @@ function PassThrough(options) {
|
|
|
21885
21913
|
PassThrough.prototype._transform = function (chunk, encoding, cb) {
|
|
21886
21914
|
cb(null, chunk);
|
|
21887
21915
|
};
|
|
21888
|
-
},{"./_stream_transform":
|
|
21916
|
+
},{"./_stream_transform":69,"core-util-is":42,"inherits":49}],68:[function(require,module,exports){
|
|
21889
21917
|
(function (process,global){
|
|
21890
21918
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
21891
21919
|
//
|
|
@@ -21942,7 +21970,7 @@ var Stream = require('./internal/streams/stream');
|
|
|
21942
21970
|
/*<replacement>*/
|
|
21943
21971
|
|
|
21944
21972
|
var Buffer = require('safe-buffer').Buffer;
|
|
21945
|
-
var OurUint8Array =
|
|
21973
|
+
var OurUint8Array = global.Uint8Array || function () {};
|
|
21946
21974
|
function _uint8ArrayToBuffer(chunk) {
|
|
21947
21975
|
return Buffer.from(chunk);
|
|
21948
21976
|
}
|
|
@@ -22512,8 +22540,8 @@ Readable.prototype.pipe = function (dest, pipeOpts) {
|
|
|
22512
22540
|
// also returned false.
|
|
22513
22541
|
// => Check whether `dest` is still a piping destination.
|
|
22514
22542
|
if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
|
|
22515
|
-
debug('false write response, pause',
|
|
22516
|
-
|
|
22543
|
+
debug('false write response, pause', src._readableState.awaitDrain);
|
|
22544
|
+
src._readableState.awaitDrain++;
|
|
22517
22545
|
increasedAwaitDrain = true;
|
|
22518
22546
|
}
|
|
22519
22547
|
src.pause();
|
|
@@ -22607,7 +22635,7 @@ Readable.prototype.unpipe = function (dest) {
|
|
|
22607
22635
|
state.flowing = false;
|
|
22608
22636
|
|
|
22609
22637
|
for (var i = 0; i < len; i++) {
|
|
22610
|
-
dests[i].emit('unpipe', this,
|
|
22638
|
+
dests[i].emit('unpipe', this, unpipeInfo);
|
|
22611
22639
|
}return this;
|
|
22612
22640
|
}
|
|
22613
22641
|
|
|
@@ -22907,7 +22935,7 @@ function indexOf(xs, x) {
|
|
|
22907
22935
|
return -1;
|
|
22908
22936
|
}
|
|
22909
22937
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
22910
|
-
},{"./_stream_duplex":
|
|
22938
|
+
},{"./_stream_duplex":66,"./internal/streams/BufferList":71,"./internal/streams/destroy":72,"./internal/streams/stream":73,"_process":55,"core-util-is":42,"events":43,"inherits":49,"isarray":64,"process-nextick-args":54,"safe-buffer":78,"string_decoder/":79,"util":37}],69:[function(require,module,exports){
|
|
22911
22939
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
22912
22940
|
//
|
|
22913
22941
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -23122,7 +23150,7 @@ function done(stream, er, data) {
|
|
|
23122
23150
|
|
|
23123
23151
|
return stream.push(null);
|
|
23124
23152
|
}
|
|
23125
|
-
},{"./_stream_duplex":
|
|
23153
|
+
},{"./_stream_duplex":66,"core-util-is":42,"inherits":49}],70:[function(require,module,exports){
|
|
23126
23154
|
(function (process,global){
|
|
23127
23155
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
23128
23156
|
//
|
|
@@ -23207,7 +23235,7 @@ var Stream = require('./internal/streams/stream');
|
|
|
23207
23235
|
/*<replacement>*/
|
|
23208
23236
|
|
|
23209
23237
|
var Buffer = require('safe-buffer').Buffer;
|
|
23210
|
-
var OurUint8Array =
|
|
23238
|
+
var OurUint8Array = global.Uint8Array || function () {};
|
|
23211
23239
|
function _uint8ArrayToBuffer(chunk) {
|
|
23212
23240
|
return Buffer.from(chunk);
|
|
23213
23241
|
}
|
|
@@ -23475,7 +23503,7 @@ Writable.prototype.uncork = function () {
|
|
|
23475
23503
|
if (state.corked) {
|
|
23476
23504
|
state.corked--;
|
|
23477
23505
|
|
|
23478
|
-
if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);
|
|
23506
|
+
if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);
|
|
23479
23507
|
}
|
|
23480
23508
|
};
|
|
23481
23509
|
|
|
@@ -23717,7 +23745,7 @@ Writable.prototype.end = function (chunk, encoding, cb) {
|
|
|
23717
23745
|
}
|
|
23718
23746
|
|
|
23719
23747
|
// ignore unnecessary end() calls.
|
|
23720
|
-
if (!state.ending) endWritable(this, state, cb);
|
|
23748
|
+
if (!state.ending && !state.finished) endWritable(this, state, cb);
|
|
23721
23749
|
};
|
|
23722
23750
|
|
|
23723
23751
|
function needFinish(state) {
|
|
@@ -23778,9 +23806,11 @@ function onCorkedFinish(corkReq, state, err) {
|
|
|
23778
23806
|
cb(err);
|
|
23779
23807
|
entry = entry.next;
|
|
23780
23808
|
}
|
|
23781
|
-
|
|
23782
|
-
|
|
23783
|
-
|
|
23809
|
+
if (state.corkedRequestsFree) {
|
|
23810
|
+
state.corkedRequestsFree.next = corkReq;
|
|
23811
|
+
} else {
|
|
23812
|
+
state.corkedRequestsFree = corkReq;
|
|
23813
|
+
}
|
|
23784
23814
|
}
|
|
23785
23815
|
|
|
23786
23816
|
Object.defineProperty(Writable.prototype, 'destroyed', {
|
|
@@ -23810,7 +23840,7 @@ Writable.prototype._destroy = function (err, cb) {
|
|
|
23810
23840
|
cb(err);
|
|
23811
23841
|
};
|
|
23812
23842
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
23813
|
-
},{"./_stream_duplex":
|
|
23843
|
+
},{"./_stream_duplex":66,"./internal/streams/destroy":72,"./internal/streams/stream":73,"_process":55,"core-util-is":42,"inherits":49,"process-nextick-args":54,"safe-buffer":78,"util-deprecate":89}],71:[function(require,module,exports){
|
|
23814
23844
|
'use strict';
|
|
23815
23845
|
|
|
23816
23846
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -23869,6 +23899,7 @@ module.exports = function () {
|
|
|
23869
23899
|
|
|
23870
23900
|
BufferList.prototype.concat = function concat(n) {
|
|
23871
23901
|
if (this.length === 0) return Buffer.alloc(0);
|
|
23902
|
+
if (this.length === 1) return this.head.data;
|
|
23872
23903
|
var ret = Buffer.allocUnsafe(n >>> 0);
|
|
23873
23904
|
var p = this.head;
|
|
23874
23905
|
var i = 0;
|
|
@@ -23889,7 +23920,7 @@ if (util && util.inspect && util.inspect.custom) {
|
|
|
23889
23920
|
return this.constructor.name + ' ' + obj;
|
|
23890
23921
|
};
|
|
23891
23922
|
}
|
|
23892
|
-
},{"safe-buffer":
|
|
23923
|
+
},{"safe-buffer":78,"util":37}],72:[function(require,module,exports){
|
|
23893
23924
|
'use strict';
|
|
23894
23925
|
|
|
23895
23926
|
/*<replacement>*/
|
|
@@ -23907,15 +23938,9 @@ function destroy(err, cb) {
|
|
|
23907
23938
|
if (readableDestroyed || writableDestroyed) {
|
|
23908
23939
|
if (cb) {
|
|
23909
23940
|
cb(err);
|
|
23910
|
-
} else if (err) {
|
|
23911
|
-
|
|
23912
|
-
pna.nextTick(emitErrorNT, this, err);
|
|
23913
|
-
} else if (!this._writableState.errorEmitted) {
|
|
23914
|
-
this._writableState.errorEmitted = true;
|
|
23915
|
-
pna.nextTick(emitErrorNT, this, err);
|
|
23916
|
-
}
|
|
23941
|
+
} else if (err && (!this._writableState || !this._writableState.errorEmitted)) {
|
|
23942
|
+
pna.nextTick(emitErrorNT, this, err);
|
|
23917
23943
|
}
|
|
23918
|
-
|
|
23919
23944
|
return this;
|
|
23920
23945
|
}
|
|
23921
23946
|
|
|
@@ -23933,11 +23958,9 @@ function destroy(err, cb) {
|
|
|
23933
23958
|
|
|
23934
23959
|
this._destroy(err || null, function (err) {
|
|
23935
23960
|
if (!cb && err) {
|
|
23936
|
-
|
|
23937
|
-
|
|
23938
|
-
} else if (!_this._writableState.errorEmitted) {
|
|
23961
|
+
pna.nextTick(emitErrorNT, _this, err);
|
|
23962
|
+
if (_this._writableState) {
|
|
23939
23963
|
_this._writableState.errorEmitted = true;
|
|
23940
|
-
pna.nextTick(emitErrorNT, _this, err);
|
|
23941
23964
|
}
|
|
23942
23965
|
} else if (cb) {
|
|
23943
23966
|
cb(err);
|
|
@@ -23959,8 +23982,6 @@ function undestroy() {
|
|
|
23959
23982
|
this._writableState.destroyed = false;
|
|
23960
23983
|
this._writableState.ended = false;
|
|
23961
23984
|
this._writableState.ending = false;
|
|
23962
|
-
this._writableState.finalCalled = false;
|
|
23963
|
-
this._writableState.prefinished = false;
|
|
23964
23985
|
this._writableState.finished = false;
|
|
23965
23986
|
this._writableState.errorEmitted = false;
|
|
23966
23987
|
}
|
|
@@ -23974,41 +23995,28 @@ module.exports = {
|
|
|
23974
23995
|
destroy: destroy,
|
|
23975
23996
|
undestroy: undestroy
|
|
23976
23997
|
};
|
|
23977
|
-
},{"process-nextick-args":54}],
|
|
23998
|
+
},{"process-nextick-args":54}],73:[function(require,module,exports){
|
|
23978
23999
|
module.exports = require('events').EventEmitter;
|
|
23979
24000
|
|
|
23980
|
-
},{"events":
|
|
23981
|
-
|
|
23982
|
-
// implementation from standard node.js 'util' module
|
|
23983
|
-
module.exports = function inherits(ctor, superCtor) {
|
|
23984
|
-
if (superCtor) {
|
|
23985
|
-
ctor.super_ = superCtor
|
|
23986
|
-
ctor.prototype = Object.create(superCtor.prototype, {
|
|
23987
|
-
constructor: {
|
|
23988
|
-
value: ctor,
|
|
23989
|
-
enumerable: false,
|
|
23990
|
-
writable: true,
|
|
23991
|
-
configurable: true
|
|
23992
|
-
}
|
|
23993
|
-
})
|
|
23994
|
-
}
|
|
23995
|
-
};
|
|
23996
|
-
} else {
|
|
23997
|
-
// old school shim for old browsers
|
|
23998
|
-
module.exports = function inherits(ctor, superCtor) {
|
|
23999
|
-
if (superCtor) {
|
|
24000
|
-
ctor.super_ = superCtor
|
|
24001
|
-
var TempCtor = function () {}
|
|
24002
|
-
TempCtor.prototype = superCtor.prototype
|
|
24003
|
-
ctor.prototype = new TempCtor()
|
|
24004
|
-
ctor.prototype.constructor = ctor
|
|
24005
|
-
}
|
|
24006
|
-
}
|
|
24007
|
-
}
|
|
24001
|
+
},{"events":43}],74:[function(require,module,exports){
|
|
24002
|
+
module.exports = require('./readable').PassThrough
|
|
24008
24003
|
|
|
24009
|
-
},{}],
|
|
24010
|
-
|
|
24011
|
-
|
|
24004
|
+
},{"./readable":75}],75:[function(require,module,exports){
|
|
24005
|
+
exports = module.exports = require('./lib/_stream_readable.js');
|
|
24006
|
+
exports.Stream = exports;
|
|
24007
|
+
exports.Readable = exports;
|
|
24008
|
+
exports.Writable = require('./lib/_stream_writable.js');
|
|
24009
|
+
exports.Duplex = require('./lib/_stream_duplex.js');
|
|
24010
|
+
exports.Transform = require('./lib/_stream_transform.js');
|
|
24011
|
+
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
|
24012
|
+
|
|
24013
|
+
},{"./lib/_stream_duplex.js":66,"./lib/_stream_passthrough.js":67,"./lib/_stream_readable.js":68,"./lib/_stream_transform.js":69,"./lib/_stream_writable.js":70}],76:[function(require,module,exports){
|
|
24014
|
+
module.exports = require('./readable').Transform
|
|
24015
|
+
|
|
24016
|
+
},{"./readable":75}],77:[function(require,module,exports){
|
|
24017
|
+
module.exports = require('./lib/_stream_writable.js');
|
|
24018
|
+
|
|
24019
|
+
},{"./lib/_stream_writable.js":70}],78:[function(require,module,exports){
|
|
24012
24020
|
/* eslint-disable node/no-deprecated-api */
|
|
24013
24021
|
var buffer = require('buffer')
|
|
24014
24022
|
var Buffer = buffer.Buffer
|
|
@@ -24072,7 +24080,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
|
|
|
24072
24080
|
return buffer.SlowBuffer(size)
|
|
24073
24081
|
}
|
|
24074
24082
|
|
|
24075
|
-
},{"buffer":39}],
|
|
24083
|
+
},{"buffer":39}],79:[function(require,module,exports){
|
|
24076
24084
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
24077
24085
|
//
|
|
24078
24086
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -24369,181 +24377,7 @@ function simpleWrite(buf) {
|
|
|
24369
24377
|
function simpleEnd(buf) {
|
|
24370
24378
|
return buf && buf.length ? this.write(buf) : '';
|
|
24371
24379
|
}
|
|
24372
|
-
},{"safe-buffer":
|
|
24373
|
-
module.exports = require('./readable').PassThrough
|
|
24374
|
-
|
|
24375
|
-
},{"./readable":76}],76:[function(require,module,exports){
|
|
24376
|
-
exports = module.exports = require('./lib/_stream_readable.js');
|
|
24377
|
-
exports.Stream = exports;
|
|
24378
|
-
exports.Readable = exports;
|
|
24379
|
-
exports.Writable = require('./lib/_stream_writable.js');
|
|
24380
|
-
exports.Duplex = require('./lib/_stream_duplex.js');
|
|
24381
|
-
exports.Transform = require('./lib/_stream_transform.js');
|
|
24382
|
-
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
|
24383
|
-
|
|
24384
|
-
},{"./lib/_stream_duplex.js":63,"./lib/_stream_passthrough.js":64,"./lib/_stream_readable.js":65,"./lib/_stream_transform.js":66,"./lib/_stream_writable.js":67}],77:[function(require,module,exports){
|
|
24385
|
-
module.exports = require('./readable').Transform
|
|
24386
|
-
|
|
24387
|
-
},{"./readable":76}],78:[function(require,module,exports){
|
|
24388
|
-
module.exports = require('./lib/_stream_writable.js');
|
|
24389
|
-
|
|
24390
|
-
},{"./lib/_stream_writable.js":67}],79:[function(require,module,exports){
|
|
24391
|
-
|
|
24392
|
-
/**
|
|
24393
|
-
* Reduce `arr` with `fn`.
|
|
24394
|
-
*
|
|
24395
|
-
* @param {Array} arr
|
|
24396
|
-
* @param {Function} fn
|
|
24397
|
-
* @param {Mixed} initial
|
|
24398
|
-
*
|
|
24399
|
-
* TODO: combatible error handling?
|
|
24400
|
-
*/
|
|
24401
|
-
|
|
24402
|
-
module.exports = function(arr, fn, initial){
|
|
24403
|
-
var idx = 0;
|
|
24404
|
-
var len = arr.length;
|
|
24405
|
-
var curr = arguments.length == 3
|
|
24406
|
-
? initial
|
|
24407
|
-
: arr[idx++];
|
|
24408
|
-
|
|
24409
|
-
while (idx < len) {
|
|
24410
|
-
curr = fn.call(null, curr, arr[idx], ++idx, arr);
|
|
24411
|
-
}
|
|
24412
|
-
|
|
24413
|
-
return curr;
|
|
24414
|
-
};
|
|
24415
|
-
},{}],80:[function(require,module,exports){
|
|
24416
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
24417
|
-
//
|
|
24418
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
24419
|
-
// copy of this software and associated documentation files (the
|
|
24420
|
-
// "Software"), to deal in the Software without restriction, including
|
|
24421
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
24422
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
24423
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
24424
|
-
// following conditions:
|
|
24425
|
-
//
|
|
24426
|
-
// The above copyright notice and this permission notice shall be included
|
|
24427
|
-
// in all copies or substantial portions of the Software.
|
|
24428
|
-
//
|
|
24429
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
24430
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
24431
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
24432
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
24433
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
24434
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
24435
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
24436
|
-
|
|
24437
|
-
module.exports = Stream;
|
|
24438
|
-
|
|
24439
|
-
var EE = require('events').EventEmitter;
|
|
24440
|
-
var inherits = require('inherits');
|
|
24441
|
-
|
|
24442
|
-
inherits(Stream, EE);
|
|
24443
|
-
Stream.Readable = require('readable-stream/readable.js');
|
|
24444
|
-
Stream.Writable = require('readable-stream/writable.js');
|
|
24445
|
-
Stream.Duplex = require('readable-stream/duplex.js');
|
|
24446
|
-
Stream.Transform = require('readable-stream/transform.js');
|
|
24447
|
-
Stream.PassThrough = require('readable-stream/passthrough.js');
|
|
24448
|
-
|
|
24449
|
-
// Backwards-compat with node 0.4.x
|
|
24450
|
-
Stream.Stream = Stream;
|
|
24451
|
-
|
|
24452
|
-
|
|
24453
|
-
|
|
24454
|
-
// old-style streams. Note that the pipe method (the only relevant
|
|
24455
|
-
// part of this class) is overridden in the Readable class.
|
|
24456
|
-
|
|
24457
|
-
function Stream() {
|
|
24458
|
-
EE.call(this);
|
|
24459
|
-
}
|
|
24460
|
-
|
|
24461
|
-
Stream.prototype.pipe = function(dest, options) {
|
|
24462
|
-
var source = this;
|
|
24463
|
-
|
|
24464
|
-
function ondata(chunk) {
|
|
24465
|
-
if (dest.writable) {
|
|
24466
|
-
if (false === dest.write(chunk) && source.pause) {
|
|
24467
|
-
source.pause();
|
|
24468
|
-
}
|
|
24469
|
-
}
|
|
24470
|
-
}
|
|
24471
|
-
|
|
24472
|
-
source.on('data', ondata);
|
|
24473
|
-
|
|
24474
|
-
function ondrain() {
|
|
24475
|
-
if (source.readable && source.resume) {
|
|
24476
|
-
source.resume();
|
|
24477
|
-
}
|
|
24478
|
-
}
|
|
24479
|
-
|
|
24480
|
-
dest.on('drain', ondrain);
|
|
24481
|
-
|
|
24482
|
-
// If the 'end' option is not supplied, dest.end() will be called when
|
|
24483
|
-
// source gets the 'end' or 'close' events. Only dest.end() once.
|
|
24484
|
-
if (!dest._isStdio && (!options || options.end !== false)) {
|
|
24485
|
-
source.on('end', onend);
|
|
24486
|
-
source.on('close', onclose);
|
|
24487
|
-
}
|
|
24488
|
-
|
|
24489
|
-
var didOnEnd = false;
|
|
24490
|
-
function onend() {
|
|
24491
|
-
if (didOnEnd) return;
|
|
24492
|
-
didOnEnd = true;
|
|
24493
|
-
|
|
24494
|
-
dest.end();
|
|
24495
|
-
}
|
|
24496
|
-
|
|
24497
|
-
|
|
24498
|
-
function onclose() {
|
|
24499
|
-
if (didOnEnd) return;
|
|
24500
|
-
didOnEnd = true;
|
|
24501
|
-
|
|
24502
|
-
if (typeof dest.destroy === 'function') dest.destroy();
|
|
24503
|
-
}
|
|
24504
|
-
|
|
24505
|
-
// don't leave dangling pipes when there are errors.
|
|
24506
|
-
function onerror(er) {
|
|
24507
|
-
cleanup();
|
|
24508
|
-
if (EE.listenerCount(this, 'error') === 0) {
|
|
24509
|
-
throw er; // Unhandled stream error in pipe.
|
|
24510
|
-
}
|
|
24511
|
-
}
|
|
24512
|
-
|
|
24513
|
-
source.on('error', onerror);
|
|
24514
|
-
dest.on('error', onerror);
|
|
24515
|
-
|
|
24516
|
-
// remove all the event listeners that were added.
|
|
24517
|
-
function cleanup() {
|
|
24518
|
-
source.removeListener('data', ondata);
|
|
24519
|
-
dest.removeListener('drain', ondrain);
|
|
24520
|
-
|
|
24521
|
-
source.removeListener('end', onend);
|
|
24522
|
-
source.removeListener('close', onclose);
|
|
24523
|
-
|
|
24524
|
-
source.removeListener('error', onerror);
|
|
24525
|
-
dest.removeListener('error', onerror);
|
|
24526
|
-
|
|
24527
|
-
source.removeListener('end', cleanup);
|
|
24528
|
-
source.removeListener('close', cleanup);
|
|
24529
|
-
|
|
24530
|
-
dest.removeListener('close', cleanup);
|
|
24531
|
-
}
|
|
24532
|
-
|
|
24533
|
-
source.on('end', cleanup);
|
|
24534
|
-
source.on('close', cleanup);
|
|
24535
|
-
|
|
24536
|
-
dest.on('close', cleanup);
|
|
24537
|
-
|
|
24538
|
-
dest.emit('pipe', source);
|
|
24539
|
-
|
|
24540
|
-
// Allow for unix-like usage: A.pipe(B).pipe(C)
|
|
24541
|
-
return dest;
|
|
24542
|
-
};
|
|
24543
|
-
|
|
24544
|
-
},{"events":44,"inherits":81,"readable-stream/duplex.js":62,"readable-stream/passthrough.js":75,"readable-stream/readable.js":76,"readable-stream/transform.js":77,"readable-stream/writable.js":78}],81:[function(require,module,exports){
|
|
24545
|
-
arguments[4][71][0].apply(exports,arguments)
|
|
24546
|
-
},{"dup":71}],82:[function(require,module,exports){
|
|
24380
|
+
},{"safe-buffer":78}],80:[function(require,module,exports){
|
|
24547
24381
|
var ClientRequest = require('./lib/request')
|
|
24548
24382
|
var extend = require('xtend')
|
|
24549
24383
|
var statusCodes = require('builtin-status-codes')
|
|
@@ -24618,7 +24452,7 @@ http.METHODS = [
|
|
|
24618
24452
|
'UNLOCK',
|
|
24619
24453
|
'UNSUBSCRIBE'
|
|
24620
24454
|
]
|
|
24621
|
-
},{"./lib/request":
|
|
24455
|
+
},{"./lib/request":82,"builtin-status-codes":41,"url":88,"xtend":92}],81:[function(require,module,exports){
|
|
24622
24456
|
(function (global){
|
|
24623
24457
|
exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableByteStream)
|
|
24624
24458
|
|
|
@@ -24662,7 +24496,7 @@ function isFunction (value) {
|
|
|
24662
24496
|
xhr = null // Help gc
|
|
24663
24497
|
|
|
24664
24498
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
24665
|
-
},{}],
|
|
24499
|
+
},{}],82:[function(require,module,exports){
|
|
24666
24500
|
(function (process,global,Buffer){
|
|
24667
24501
|
// var Base64 = require('Base64')
|
|
24668
24502
|
var capability = require('./capability')
|
|
@@ -24944,7 +24778,7 @@ var unsafeHeaders = [
|
|
|
24944
24778
|
]
|
|
24945
24779
|
|
|
24946
24780
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
|
|
24947
|
-
},{"./capability":
|
|
24781
|
+
},{"./capability":81,"./response":83,"_process":55,"buffer":39,"foreach":45,"indexof":48,"inherits":49,"object-keys":51,"stream":63}],83:[function(require,module,exports){
|
|
24948
24782
|
(function (process,global,Buffer){
|
|
24949
24783
|
var capability = require('./capability')
|
|
24950
24784
|
var foreach = require('foreach')
|
|
@@ -25121,9 +24955,7 @@ IncomingMessage.prototype._onXHRProgress = function () {
|
|
|
25121
24955
|
}
|
|
25122
24956
|
|
|
25123
24957
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
|
|
25124
|
-
},{"./capability":
|
|
25125
|
-
arguments[4][71][0].apply(exports,arguments)
|
|
25126
|
-
},{"dup":71}],87:[function(require,module,exports){
|
|
24958
|
+
},{"./capability":81,"_process":55,"buffer":39,"foreach":45,"inherits":49,"stream":63}],84:[function(require,module,exports){
|
|
25127
24959
|
var nargs = /\{([0-9a-zA-Z_]+)\}/g
|
|
25128
24960
|
|
|
25129
24961
|
module.exports = template
|
|
@@ -25161,7 +24993,7 @@ function template(string) {
|
|
|
25161
24993
|
})
|
|
25162
24994
|
}
|
|
25163
24995
|
|
|
25164
|
-
},{}],
|
|
24996
|
+
},{}],85:[function(require,module,exports){
|
|
25165
24997
|
/**
|
|
25166
24998
|
* Module dependencies.
|
|
25167
24999
|
*/
|
|
@@ -26354,7 +26186,172 @@ request.put = function(url, data, fn){
|
|
|
26354
26186
|
|
|
26355
26187
|
module.exports = request;
|
|
26356
26188
|
|
|
26357
|
-
},{"emitter":
|
|
26189
|
+
},{"emitter":86,"reduce":62}],86:[function(require,module,exports){
|
|
26190
|
+
|
|
26191
|
+
/**
|
|
26192
|
+
* Expose `Emitter`.
|
|
26193
|
+
*/
|
|
26194
|
+
|
|
26195
|
+
if (typeof module !== 'undefined') {
|
|
26196
|
+
module.exports = Emitter;
|
|
26197
|
+
}
|
|
26198
|
+
|
|
26199
|
+
/**
|
|
26200
|
+
* Initialize a new `Emitter`.
|
|
26201
|
+
*
|
|
26202
|
+
* @api public
|
|
26203
|
+
*/
|
|
26204
|
+
|
|
26205
|
+
function Emitter(obj) {
|
|
26206
|
+
if (obj) return mixin(obj);
|
|
26207
|
+
};
|
|
26208
|
+
|
|
26209
|
+
/**
|
|
26210
|
+
* Mixin the emitter properties.
|
|
26211
|
+
*
|
|
26212
|
+
* @param {Object} obj
|
|
26213
|
+
* @return {Object}
|
|
26214
|
+
* @api private
|
|
26215
|
+
*/
|
|
26216
|
+
|
|
26217
|
+
function mixin(obj) {
|
|
26218
|
+
for (var key in Emitter.prototype) {
|
|
26219
|
+
obj[key] = Emitter.prototype[key];
|
|
26220
|
+
}
|
|
26221
|
+
return obj;
|
|
26222
|
+
}
|
|
26223
|
+
|
|
26224
|
+
/**
|
|
26225
|
+
* Listen on the given `event` with `fn`.
|
|
26226
|
+
*
|
|
26227
|
+
* @param {String} event
|
|
26228
|
+
* @param {Function} fn
|
|
26229
|
+
* @return {Emitter}
|
|
26230
|
+
* @api public
|
|
26231
|
+
*/
|
|
26232
|
+
|
|
26233
|
+
Emitter.prototype.on =
|
|
26234
|
+
Emitter.prototype.addEventListener = function(event, fn){
|
|
26235
|
+
this._callbacks = this._callbacks || {};
|
|
26236
|
+
(this._callbacks['$' + event] = this._callbacks['$' + event] || [])
|
|
26237
|
+
.push(fn);
|
|
26238
|
+
return this;
|
|
26239
|
+
};
|
|
26240
|
+
|
|
26241
|
+
/**
|
|
26242
|
+
* Adds an `event` listener that will be invoked a single
|
|
26243
|
+
* time then automatically removed.
|
|
26244
|
+
*
|
|
26245
|
+
* @param {String} event
|
|
26246
|
+
* @param {Function} fn
|
|
26247
|
+
* @return {Emitter}
|
|
26248
|
+
* @api public
|
|
26249
|
+
*/
|
|
26250
|
+
|
|
26251
|
+
Emitter.prototype.once = function(event, fn){
|
|
26252
|
+
function on() {
|
|
26253
|
+
this.off(event, on);
|
|
26254
|
+
fn.apply(this, arguments);
|
|
26255
|
+
}
|
|
26256
|
+
|
|
26257
|
+
on.fn = fn;
|
|
26258
|
+
this.on(event, on);
|
|
26259
|
+
return this;
|
|
26260
|
+
};
|
|
26261
|
+
|
|
26262
|
+
/**
|
|
26263
|
+
* Remove the given callback for `event` or all
|
|
26264
|
+
* registered callbacks.
|
|
26265
|
+
*
|
|
26266
|
+
* @param {String} event
|
|
26267
|
+
* @param {Function} fn
|
|
26268
|
+
* @return {Emitter}
|
|
26269
|
+
* @api public
|
|
26270
|
+
*/
|
|
26271
|
+
|
|
26272
|
+
Emitter.prototype.off =
|
|
26273
|
+
Emitter.prototype.removeListener =
|
|
26274
|
+
Emitter.prototype.removeAllListeners =
|
|
26275
|
+
Emitter.prototype.removeEventListener = function(event, fn){
|
|
26276
|
+
this._callbacks = this._callbacks || {};
|
|
26277
|
+
|
|
26278
|
+
// all
|
|
26279
|
+
if (0 == arguments.length) {
|
|
26280
|
+
this._callbacks = {};
|
|
26281
|
+
return this;
|
|
26282
|
+
}
|
|
26283
|
+
|
|
26284
|
+
// specific event
|
|
26285
|
+
var callbacks = this._callbacks['$' + event];
|
|
26286
|
+
if (!callbacks) return this;
|
|
26287
|
+
|
|
26288
|
+
// remove all handlers
|
|
26289
|
+
if (1 == arguments.length) {
|
|
26290
|
+
delete this._callbacks['$' + event];
|
|
26291
|
+
return this;
|
|
26292
|
+
}
|
|
26293
|
+
|
|
26294
|
+
// remove specific handler
|
|
26295
|
+
var cb;
|
|
26296
|
+
for (var i = 0; i < callbacks.length; i++) {
|
|
26297
|
+
cb = callbacks[i];
|
|
26298
|
+
if (cb === fn || cb.fn === fn) {
|
|
26299
|
+
callbacks.splice(i, 1);
|
|
26300
|
+
break;
|
|
26301
|
+
}
|
|
26302
|
+
}
|
|
26303
|
+
return this;
|
|
26304
|
+
};
|
|
26305
|
+
|
|
26306
|
+
/**
|
|
26307
|
+
* Emit `event` with the given args.
|
|
26308
|
+
*
|
|
26309
|
+
* @param {String} event
|
|
26310
|
+
* @param {Mixed} ...
|
|
26311
|
+
* @return {Emitter}
|
|
26312
|
+
*/
|
|
26313
|
+
|
|
26314
|
+
Emitter.prototype.emit = function(event){
|
|
26315
|
+
this._callbacks = this._callbacks || {};
|
|
26316
|
+
var args = [].slice.call(arguments, 1)
|
|
26317
|
+
, callbacks = this._callbacks['$' + event];
|
|
26318
|
+
|
|
26319
|
+
if (callbacks) {
|
|
26320
|
+
callbacks = callbacks.slice(0);
|
|
26321
|
+
for (var i = 0, len = callbacks.length; i < len; ++i) {
|
|
26322
|
+
callbacks[i].apply(this, args);
|
|
26323
|
+
}
|
|
26324
|
+
}
|
|
26325
|
+
|
|
26326
|
+
return this;
|
|
26327
|
+
};
|
|
26328
|
+
|
|
26329
|
+
/**
|
|
26330
|
+
* Return array of callbacks for `event`.
|
|
26331
|
+
*
|
|
26332
|
+
* @param {String} event
|
|
26333
|
+
* @return {Array}
|
|
26334
|
+
* @api public
|
|
26335
|
+
*/
|
|
26336
|
+
|
|
26337
|
+
Emitter.prototype.listeners = function(event){
|
|
26338
|
+
this._callbacks = this._callbacks || {};
|
|
26339
|
+
return this._callbacks['$' + event] || [];
|
|
26340
|
+
};
|
|
26341
|
+
|
|
26342
|
+
/**
|
|
26343
|
+
* Check if this emitter has `event` handlers.
|
|
26344
|
+
*
|
|
26345
|
+
* @param {String} event
|
|
26346
|
+
* @return {Boolean}
|
|
26347
|
+
* @api public
|
|
26348
|
+
*/
|
|
26349
|
+
|
|
26350
|
+
Emitter.prototype.hasListeners = function(event){
|
|
26351
|
+
return !! this.listeners(event).length;
|
|
26352
|
+
};
|
|
26353
|
+
|
|
26354
|
+
},{}],87:[function(require,module,exports){
|
|
26358
26355
|
(function (Buffer){
|
|
26359
26356
|
"0.50.0";
|
|
26360
26357
|
/*
|
|
@@ -34551,7 +34548,7 @@ TinCan client library
|
|
|
34551
34548
|
}());
|
|
34552
34549
|
|
|
34553
34550
|
}).call(this,require("buffer").Buffer)
|
|
34554
|
-
},{"buffer":39,"querystring":61,"xhr2":
|
|
34551
|
+
},{"buffer":39,"querystring":61,"xhr2":91}],88:[function(require,module,exports){
|
|
34555
34552
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
34556
34553
|
//
|
|
34557
34554
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -35260,7 +35257,7 @@ function isNullOrUndefined(arg) {
|
|
|
35260
35257
|
return arg == null;
|
|
35261
35258
|
}
|
|
35262
35259
|
|
|
35263
|
-
},{"punycode":57,"querystring":61}],
|
|
35260
|
+
},{"punycode":57,"querystring":61}],89:[function(require,module,exports){
|
|
35264
35261
|
(function (global){
|
|
35265
35262
|
|
|
35266
35263
|
/**
|
|
@@ -35331,7 +35328,7 @@ function config (name) {
|
|
|
35331
35328
|
}
|
|
35332
35329
|
|
|
35333
35330
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
35334
|
-
},{}],
|
|
35331
|
+
},{}],90:[function(require,module,exports){
|
|
35335
35332
|
/*!
|
|
35336
35333
|
* validate.js 0.9.0
|
|
35337
35334
|
*
|
|
@@ -36419,7 +36416,7 @@ function config (name) {
|
|
|
36419
36416
|
typeof module !== 'undefined' ? /* istanbul ignore next */ module : null,
|
|
36420
36417
|
typeof define !== 'undefined' ? /* istanbul ignore next */ define : null);
|
|
36421
36418
|
|
|
36422
|
-
},{}],
|
|
36419
|
+
},{}],91:[function(require,module,exports){
|
|
36423
36420
|
(function (process,Buffer){
|
|
36424
36421
|
// Generated by CoffeeScript 1.6.3
|
|
36425
36422
|
(function() {
|
|
@@ -37257,7 +37254,7 @@ function config (name) {
|
|
|
37257
37254
|
}).call(this);
|
|
37258
37255
|
|
|
37259
37256
|
}).call(this,require('_process'),require("buffer").Buffer)
|
|
37260
|
-
},{"_process":55,"buffer":39,"http":
|
|
37257
|
+
},{"_process":55,"buffer":39,"http":80,"https":46,"os":53,"url":88}],92:[function(require,module,exports){
|
|
37261
37258
|
module.exports = extend
|
|
37262
37259
|
|
|
37263
37260
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|