@tuya-sat/sdf-main-sdk 0.8.6-cube7.0.0 → 0.8.6-cube7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/releases/yarn-1.22.19.cjs +707 -707
- package/dist/{131.ff6ce3bf.chunk.js → 131.ee040db4.chunk.js} +1 -1
- package/dist/{131.ff6ce3bf.chunk.js.map → 131.ee040db4.chunk.js.map} +1 -1
- package/dist/main.bundle.js +1 -1
- package/dist/main.bundle.js.map +1 -1
- package/dist/main.css +5 -0
- package/dist/main.css.map +1 -1
- package/dist/manifest.json +2 -2
- package/package.json +1 -1
|
@@ -98,192 +98,192 @@ module.exports = require("path");
|
|
|
98
98
|
/* unused harmony export __makeTemplateObject */
|
|
99
99
|
/* unused harmony export __importStar */
|
|
100
100
|
/* unused harmony export __importDefault */
|
|
101
|
-
/*! *****************************************************************************
|
|
102
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
103
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
104
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
105
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
106
|
-
|
|
107
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
108
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
109
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
110
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
111
|
-
|
|
112
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
113
|
-
and limitations under the License.
|
|
114
|
-
***************************************************************************** */
|
|
115
|
-
/* global Reflect, Promise */
|
|
116
|
-
|
|
117
|
-
var extendStatics = function(d, b) {
|
|
118
|
-
extendStatics = Object.setPrototypeOf ||
|
|
119
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
120
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
121
|
-
return extendStatics(d, b);
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
function __extends(d, b) {
|
|
125
|
-
extendStatics(d, b);
|
|
126
|
-
function __() { this.constructor = d; }
|
|
127
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
var __assign = function() {
|
|
131
|
-
__assign = Object.assign || function __assign(t) {
|
|
132
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
133
|
-
s = arguments[i];
|
|
134
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
135
|
-
}
|
|
136
|
-
return t;
|
|
137
|
-
}
|
|
138
|
-
return __assign.apply(this, arguments);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function __rest(s, e) {
|
|
142
|
-
var t = {};
|
|
143
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
144
|
-
t[p] = s[p];
|
|
145
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
146
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
147
|
-
t[p[i]] = s[p[i]];
|
|
148
|
-
return t;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function __decorate(decorators, target, key, desc) {
|
|
152
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
153
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
154
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
155
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function __param(paramIndex, decorator) {
|
|
159
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
function __metadata(metadataKey, metadataValue) {
|
|
163
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
167
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
168
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
169
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
170
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
171
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function __generator(thisArg, body) {
|
|
176
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
177
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
178
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
179
|
-
function step(op) {
|
|
180
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
181
|
-
while (_) try {
|
|
182
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
183
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
184
|
-
switch (op[0]) {
|
|
185
|
-
case 0: case 1: t = op; break;
|
|
186
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
187
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
188
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
189
|
-
default:
|
|
190
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
191
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
192
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
193
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
194
|
-
if (t[2]) _.ops.pop();
|
|
195
|
-
_.trys.pop(); continue;
|
|
196
|
-
}
|
|
197
|
-
op = body.call(thisArg, _);
|
|
198
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
199
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
function __exportStar(m, exports) {
|
|
204
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
function __values(o) {
|
|
208
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
209
|
-
if (m) return m.call(o);
|
|
210
|
-
return {
|
|
211
|
-
next: function () {
|
|
212
|
-
if (o && i >= o.length) o = void 0;
|
|
213
|
-
return { value: o && o[i++], done: !o };
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
function __read(o, n) {
|
|
219
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
220
|
-
if (!m) return o;
|
|
221
|
-
var i = m.call(o), r, ar = [], e;
|
|
222
|
-
try {
|
|
223
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
224
|
-
}
|
|
225
|
-
catch (error) { e = { error: error }; }
|
|
226
|
-
finally {
|
|
227
|
-
try {
|
|
228
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
229
|
-
}
|
|
230
|
-
finally { if (e) throw e.error; }
|
|
231
|
-
}
|
|
232
|
-
return ar;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
function __spread() {
|
|
236
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
237
|
-
ar = ar.concat(__read(arguments[i]));
|
|
238
|
-
return ar;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
function __await(v) {
|
|
242
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
246
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
247
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
248
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
249
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
250
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
251
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
252
|
-
function fulfill(value) { resume("next", value); }
|
|
253
|
-
function reject(value) { resume("throw", value); }
|
|
254
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
function __asyncDelegator(o) {
|
|
258
|
-
var i, p;
|
|
259
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
260
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
function __asyncValues(o) {
|
|
264
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
265
|
-
var m = o[Symbol.asyncIterator], i;
|
|
266
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
267
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
268
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
function __makeTemplateObject(cooked, raw) {
|
|
272
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
273
|
-
return cooked;
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
function __importStar(mod) {
|
|
277
|
-
if (mod && mod.__esModule) return mod;
|
|
278
|
-
var result = {};
|
|
279
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
280
|
-
result.default = mod;
|
|
281
|
-
return result;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
function __importDefault(mod) {
|
|
285
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
286
|
-
}
|
|
101
|
+
/*! *****************************************************************************
|
|
102
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
103
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
104
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
105
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
106
|
+
|
|
107
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
108
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
109
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
110
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
111
|
+
|
|
112
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
113
|
+
and limitations under the License.
|
|
114
|
+
***************************************************************************** */
|
|
115
|
+
/* global Reflect, Promise */
|
|
116
|
+
|
|
117
|
+
var extendStatics = function(d, b) {
|
|
118
|
+
extendStatics = Object.setPrototypeOf ||
|
|
119
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
120
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
121
|
+
return extendStatics(d, b);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
function __extends(d, b) {
|
|
125
|
+
extendStatics(d, b);
|
|
126
|
+
function __() { this.constructor = d; }
|
|
127
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
var __assign = function() {
|
|
131
|
+
__assign = Object.assign || function __assign(t) {
|
|
132
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
133
|
+
s = arguments[i];
|
|
134
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
135
|
+
}
|
|
136
|
+
return t;
|
|
137
|
+
}
|
|
138
|
+
return __assign.apply(this, arguments);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function __rest(s, e) {
|
|
142
|
+
var t = {};
|
|
143
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
144
|
+
t[p] = s[p];
|
|
145
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
146
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
147
|
+
t[p[i]] = s[p[i]];
|
|
148
|
+
return t;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function __decorate(decorators, target, key, desc) {
|
|
152
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
153
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
154
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
155
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function __param(paramIndex, decorator) {
|
|
159
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function __metadata(metadataKey, metadataValue) {
|
|
163
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
167
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
168
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
169
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
170
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
171
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function __generator(thisArg, body) {
|
|
176
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
177
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
178
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
179
|
+
function step(op) {
|
|
180
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
181
|
+
while (_) try {
|
|
182
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
183
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
184
|
+
switch (op[0]) {
|
|
185
|
+
case 0: case 1: t = op; break;
|
|
186
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
187
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
188
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
189
|
+
default:
|
|
190
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
191
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
192
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
193
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
194
|
+
if (t[2]) _.ops.pop();
|
|
195
|
+
_.trys.pop(); continue;
|
|
196
|
+
}
|
|
197
|
+
op = body.call(thisArg, _);
|
|
198
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
199
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
function __exportStar(m, exports) {
|
|
204
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function __values(o) {
|
|
208
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
209
|
+
if (m) return m.call(o);
|
|
210
|
+
return {
|
|
211
|
+
next: function () {
|
|
212
|
+
if (o && i >= o.length) o = void 0;
|
|
213
|
+
return { value: o && o[i++], done: !o };
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function __read(o, n) {
|
|
219
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
220
|
+
if (!m) return o;
|
|
221
|
+
var i = m.call(o), r, ar = [], e;
|
|
222
|
+
try {
|
|
223
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
224
|
+
}
|
|
225
|
+
catch (error) { e = { error: error }; }
|
|
226
|
+
finally {
|
|
227
|
+
try {
|
|
228
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
229
|
+
}
|
|
230
|
+
finally { if (e) throw e.error; }
|
|
231
|
+
}
|
|
232
|
+
return ar;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
function __spread() {
|
|
236
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
237
|
+
ar = ar.concat(__read(arguments[i]));
|
|
238
|
+
return ar;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
function __await(v) {
|
|
242
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
246
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
247
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
248
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
249
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
250
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
251
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
252
|
+
function fulfill(value) { resume("next", value); }
|
|
253
|
+
function reject(value) { resume("throw", value); }
|
|
254
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
function __asyncDelegator(o) {
|
|
258
|
+
var i, p;
|
|
259
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
260
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function __asyncValues(o) {
|
|
264
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
265
|
+
var m = o[Symbol.asyncIterator], i;
|
|
266
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
267
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
268
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
function __makeTemplateObject(cooked, raw) {
|
|
272
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
273
|
+
return cooked;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
function __importStar(mod) {
|
|
277
|
+
if (mod && mod.__esModule) return mod;
|
|
278
|
+
var result = {};
|
|
279
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
280
|
+
result.default = mod;
|
|
281
|
+
return result;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function __importDefault(mod) {
|
|
285
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
286
|
+
}
|
|
287
287
|
|
|
288
288
|
|
|
289
289
|
/***/ }),
|
|
@@ -4368,7 +4368,7 @@ function coerce(version) {
|
|
|
4368
4368
|
if (match == null)
|
|
4369
4369
|
return null;
|
|
4370
4370
|
|
|
4371
|
-
return parse((match[1] || '0') + '.' + (match[2] || '0') + '.' + (match[3] || '0'));
|
|
4371
|
+
return parse((match[1] || '0') + '.' + (match[2] || '0') + '.' + (match[3] || '0'));
|
|
4372
4372
|
}
|
|
4373
4373
|
|
|
4374
4374
|
|
|
@@ -32717,7 +32717,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
32717
32717
|
|
|
32718
32718
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
32719
32719
|
|
|
32720
|
-
const DEFAULT_REGISTRY = 'https://registry.
|
|
32720
|
+
const DEFAULT_REGISTRY = 'https://registry.npmmirror.com/';
|
|
32721
32721
|
const REGEX_REGISTRY_ENFORCED_HTTPS = /^https?:\/\/([^\/]+\.)?(yarnpkg\.com|npmjs\.(org|com))(\/|$)/;
|
|
32722
32722
|
const REGEX_REGISTRY_HTTP_PROTOCOL = /^https?:/i;
|
|
32723
32723
|
const REGEX_REGISTRY_PREFIX = /^(https?:)?\/\//i;
|
|
@@ -34487,7 +34487,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
34487
34487
|
// This will be bundled directly in the .js file for production builds
|
|
34488
34488
|
var _require = __webpack_require__(195); /**
|
|
34489
34489
|
* Determines the current version of Yarn itself.
|
|
34490
|
-
*
|
|
34490
|
+
*
|
|
34491
34491
|
*/
|
|
34492
34492
|
|
|
34493
34493
|
const version = _require.version,
|
|
@@ -40052,7 +40052,7 @@ ECFieldElementFp.prototype.modReduce = function(x)
|
|
|
40052
40052
|
{
|
|
40053
40053
|
u = u.multiply(this.getR());
|
|
40054
40054
|
}
|
|
40055
|
-
x = u.add(v);
|
|
40055
|
+
x = u.add(v);
|
|
40056
40056
|
}
|
|
40057
40057
|
while (x.compareTo(q) >= 0)
|
|
40058
40058
|
{
|
|
@@ -40584,18 +40584,18 @@ function mkdirP (p, opts, f, made) {
|
|
|
40584
40584
|
else if (!opts || typeof opts !== 'object') {
|
|
40585
40585
|
opts = { mode: opts };
|
|
40586
40586
|
}
|
|
40587
|
-
|
|
40587
|
+
|
|
40588
40588
|
var mode = opts.mode;
|
|
40589
40589
|
var xfs = opts.fs || fs;
|
|
40590
|
-
|
|
40590
|
+
|
|
40591
40591
|
if (mode === undefined) {
|
|
40592
40592
|
mode = _0777 & (~process.umask());
|
|
40593
40593
|
}
|
|
40594
40594
|
if (!made) made = null;
|
|
40595
|
-
|
|
40595
|
+
|
|
40596
40596
|
var cb = f || function () {};
|
|
40597
40597
|
p = path.resolve(p);
|
|
40598
|
-
|
|
40598
|
+
|
|
40599
40599
|
xfs.mkdir(p, mode, function (er) {
|
|
40600
40600
|
if (!er) {
|
|
40601
40601
|
made = made || p;
|
|
@@ -40628,10 +40628,10 @@ mkdirP.sync = function sync (p, opts, made) {
|
|
|
40628
40628
|
if (!opts || typeof opts !== 'object') {
|
|
40629
40629
|
opts = { mode: opts };
|
|
40630
40630
|
}
|
|
40631
|
-
|
|
40631
|
+
|
|
40632
40632
|
var mode = opts.mode;
|
|
40633
40633
|
var xfs = opts.fs || fs;
|
|
40634
|
-
|
|
40634
|
+
|
|
40635
40635
|
if (mode === undefined) {
|
|
40636
40636
|
mode = _0777 & (~process.umask());
|
|
40637
40637
|
}
|
|
@@ -43952,28 +43952,28 @@ function extractWorkspaces(manifest) {
|
|
|
43952
43952
|
/* 163 */
|
|
43953
43953
|
/***/ (function(module, exports) {
|
|
43954
43954
|
|
|
43955
|
-
module.exports = function(module) {
|
|
43956
|
-
if(!module.webpackPolyfill) {
|
|
43957
|
-
module.deprecate = function() {};
|
|
43958
|
-
module.paths = [];
|
|
43959
|
-
// module.parent = undefined by default
|
|
43960
|
-
if(!module.children) module.children = [];
|
|
43961
|
-
Object.defineProperty(module, "loaded", {
|
|
43962
|
-
enumerable: true,
|
|
43963
|
-
get: function() {
|
|
43964
|
-
return module.l;
|
|
43965
|
-
}
|
|
43966
|
-
});
|
|
43967
|
-
Object.defineProperty(module, "id", {
|
|
43968
|
-
enumerable: true,
|
|
43969
|
-
get: function() {
|
|
43970
|
-
return module.i;
|
|
43971
|
-
}
|
|
43972
|
-
});
|
|
43973
|
-
module.webpackPolyfill = 1;
|
|
43974
|
-
}
|
|
43975
|
-
return module;
|
|
43976
|
-
};
|
|
43955
|
+
module.exports = function(module) {
|
|
43956
|
+
if(!module.webpackPolyfill) {
|
|
43957
|
+
module.deprecate = function() {};
|
|
43958
|
+
module.paths = [];
|
|
43959
|
+
// module.parent = undefined by default
|
|
43960
|
+
if(!module.children) module.children = [];
|
|
43961
|
+
Object.defineProperty(module, "loaded", {
|
|
43962
|
+
enumerable: true,
|
|
43963
|
+
get: function() {
|
|
43964
|
+
return module.l;
|
|
43965
|
+
}
|
|
43966
|
+
});
|
|
43967
|
+
Object.defineProperty(module, "id", {
|
|
43968
|
+
enumerable: true,
|
|
43969
|
+
get: function() {
|
|
43970
|
+
return module.i;
|
|
43971
|
+
}
|
|
43972
|
+
});
|
|
43973
|
+
module.webpackPolyfill = 1;
|
|
43974
|
+
}
|
|
43975
|
+
return module;
|
|
43976
|
+
};
|
|
43977
43977
|
|
|
43978
43978
|
|
|
43979
43979
|
/***/ }),
|
|
@@ -80319,11 +80319,11 @@ exports.ECKey = function(curve, key, isPublic)
|
|
|
80319
80319
|
// var y = key.slice(bytes+1);
|
|
80320
80320
|
// this.P = new ECPointFp(curve,
|
|
80321
80321
|
// curve.fromBigInteger(new BigInteger(x.toString("hex"), 16)),
|
|
80322
|
-
// curve.fromBigInteger(new BigInteger(y.toString("hex"), 16)));
|
|
80322
|
+
// curve.fromBigInteger(new BigInteger(y.toString("hex"), 16)));
|
|
80323
80323
|
this.P = curve.decodePointHex(key.toString("hex"));
|
|
80324
80324
|
}else{
|
|
80325
80325
|
if(key.length != bytes) return false;
|
|
80326
|
-
priv = new BigInteger(key.toString("hex"), 16);
|
|
80326
|
+
priv = new BigInteger(key.toString("hex"), 16);
|
|
80327
80327
|
}
|
|
80328
80328
|
}else{
|
|
80329
80329
|
var n1 = n.subtract(BigInteger.ONE);
|
|
@@ -80345,7 +80345,7 @@ exports.ECKey = function(curve, key, isPublic)
|
|
|
80345
80345
|
if(!key || !key.P) return false;
|
|
80346
80346
|
var S = key.P.multiply(priv);
|
|
80347
80347
|
return Buffer.from(unstupid(S.getX().toBigInteger().toString(16),bytes*2),"hex");
|
|
80348
|
-
}
|
|
80348
|
+
}
|
|
80349
80349
|
}
|
|
80350
80350
|
}
|
|
80351
80351
|
|
|
@@ -88679,7 +88679,7 @@ inherits(DestroyableTransform, Transform)
|
|
|
88679
88679
|
DestroyableTransform.prototype.destroy = function(err) {
|
|
88680
88680
|
if (this._destroyed) return
|
|
88681
88681
|
this._destroyed = true
|
|
88682
|
-
|
|
88682
|
+
|
|
88683
88683
|
var self = this
|
|
88684
88684
|
process.nextTick(function() {
|
|
88685
88685
|
if (err)
|
|
@@ -88800,7 +88800,7 @@ function bytesToUuid(buf, offset) {
|
|
|
88800
88800
|
var i = offset || 0;
|
|
88801
88801
|
var bth = byteToHex;
|
|
88802
88802
|
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
|
|
88803
|
-
return ([bth[buf[i++]], bth[buf[i++]],
|
|
88803
|
+
return ([bth[buf[i++]], bth[buf[i++]],
|
|
88804
88804
|
bth[buf[i++]], bth[buf[i++]], '-',
|
|
88805
88805
|
bth[buf[i++]], bth[buf[i++]], '-',
|
|
88806
88806
|
bth[buf[i++]], bth[buf[i++]], '-',
|
|
@@ -89152,7 +89152,7 @@ threshold'), { code: 'ECOMPROMISED' }));
|
|
|
89152
89152
|
// on process exit
|
|
89153
89153
|
|
|
89154
89154
|
// We first check that `lock.updateTimeout.unref` exists because some users
|
|
89155
|
-
// may be using this module outside of NodeJS (e.g., in an electron app),
|
|
89155
|
+
// may be using this module outside of NodeJS (e.g., in an electron app),
|
|
89156
89156
|
// and in those cases `setTimeout` return an integer.
|
|
89157
89157
|
if (lock.updateTimeout.unref) {
|
|
89158
89158
|
lock.updateTimeout.unref();
|
|
@@ -90920,7 +90920,7 @@ var crypto = __webpack_require__(11)
|
|
|
90920
90920
|
* Valid keys.
|
|
90921
90921
|
*/
|
|
90922
90922
|
|
|
90923
|
-
var keys =
|
|
90923
|
+
var keys =
|
|
90924
90924
|
[ 'acl'
|
|
90925
90925
|
, 'location'
|
|
90926
90926
|
, 'logging'
|
|
@@ -90959,7 +90959,7 @@ module.exports.authorization = authorization
|
|
|
90959
90959
|
* @param {Object} options
|
|
90960
90960
|
* @return {String}
|
|
90961
90961
|
* @api private
|
|
90962
|
-
*/
|
|
90962
|
+
*/
|
|
90963
90963
|
|
|
90964
90964
|
function hmacSha1 (options) {
|
|
90965
90965
|
return crypto.createHmac('sha1', options.secret).update(options.message).digest('base64')
|
|
@@ -90968,8 +90968,8 @@ function hmacSha1 (options) {
|
|
|
90968
90968
|
module.exports.hmacSha1 = hmacSha1
|
|
90969
90969
|
|
|
90970
90970
|
/**
|
|
90971
|
-
* Create a base64 sha1 HMAC for `options`.
|
|
90972
|
-
*
|
|
90971
|
+
* Create a base64 sha1 HMAC for `options`.
|
|
90972
|
+
*
|
|
90973
90973
|
* @param {Object} options
|
|
90974
90974
|
* @return {String}
|
|
90975
90975
|
* @api private
|
|
@@ -90982,10 +90982,10 @@ function sign (options) {
|
|
|
90982
90982
|
module.exports.sign = sign
|
|
90983
90983
|
|
|
90984
90984
|
/**
|
|
90985
|
-
* Create a base64 sha1 HMAC for `options`.
|
|
90985
|
+
* Create a base64 sha1 HMAC for `options`.
|
|
90986
90986
|
*
|
|
90987
90987
|
* Specifically to be used with S3 presigned URLs
|
|
90988
|
-
*
|
|
90988
|
+
*
|
|
90989
90989
|
* @param {Object} options
|
|
90990
90990
|
* @return {String}
|
|
90991
90991
|
* @api private
|
|
@@ -91001,7 +91001,7 @@ module.exports.signQuery= signQuery
|
|
|
91001
91001
|
* Return a string for sign() with the given `options`.
|
|
91002
91002
|
*
|
|
91003
91003
|
* Spec:
|
|
91004
|
-
*
|
|
91004
|
+
*
|
|
91005
91005
|
* <verb>\n
|
|
91006
91006
|
* <md5>\n
|
|
91007
91007
|
* <content-type>\n
|
|
@@ -91017,7 +91017,7 @@ module.exports.signQuery= signQuery
|
|
|
91017
91017
|
function stringToSign (options) {
|
|
91018
91018
|
var headers = options.amazonHeaders || ''
|
|
91019
91019
|
if (headers) headers += '\n'
|
|
91020
|
-
var r =
|
|
91020
|
+
var r =
|
|
91021
91021
|
[ options.verb
|
|
91022
91022
|
, options.md5
|
|
91023
91023
|
, options.contentType
|
|
@@ -91033,7 +91033,7 @@ module.exports.stringToSign = stringToSign
|
|
|
91033
91033
|
* for S3 presigned URLs
|
|
91034
91034
|
*
|
|
91035
91035
|
* Spec:
|
|
91036
|
-
*
|
|
91036
|
+
*
|
|
91037
91037
|
* <date>\n
|
|
91038
91038
|
* <resource>
|
|
91039
91039
|
*
|
|
@@ -105875,155 +105875,155 @@ module.exports = function (fromModel) {
|
|
|
105875
105875
|
/* 578 */
|
|
105876
105876
|
/***/ (function(module, exports) {
|
|
105877
105877
|
|
|
105878
|
-
module.exports = {
|
|
105879
|
-
"aliceblue": [240, 248, 255],
|
|
105880
|
-
"antiquewhite": [250, 235, 215],
|
|
105881
|
-
"aqua": [0, 255, 255],
|
|
105882
|
-
"aquamarine": [127, 255, 212],
|
|
105883
|
-
"azure": [240, 255, 255],
|
|
105884
|
-
"beige": [245, 245, 220],
|
|
105885
|
-
"bisque": [255, 228, 196],
|
|
105886
|
-
"black": [0, 0, 0],
|
|
105887
|
-
"blanchedalmond": [255, 235, 205],
|
|
105888
|
-
"blue": [0, 0, 255],
|
|
105889
|
-
"blueviolet": [138, 43, 226],
|
|
105890
|
-
"brown": [165, 42, 42],
|
|
105891
|
-
"burlywood": [222, 184, 135],
|
|
105892
|
-
"cadetblue": [95, 158, 160],
|
|
105893
|
-
"chartreuse": [127, 255, 0],
|
|
105894
|
-
"chocolate": [210, 105, 30],
|
|
105895
|
-
"coral": [255, 127, 80],
|
|
105896
|
-
"cornflowerblue": [100, 149, 237],
|
|
105897
|
-
"cornsilk": [255, 248, 220],
|
|
105898
|
-
"crimson": [220, 20, 60],
|
|
105899
|
-
"cyan": [0, 255, 255],
|
|
105900
|
-
"darkblue": [0, 0, 139],
|
|
105901
|
-
"darkcyan": [0, 139, 139],
|
|
105902
|
-
"darkgoldenrod": [184, 134, 11],
|
|
105903
|
-
"darkgray": [169, 169, 169],
|
|
105904
|
-
"darkgreen": [0, 100, 0],
|
|
105905
|
-
"darkgrey": [169, 169, 169],
|
|
105906
|
-
"darkkhaki": [189, 183, 107],
|
|
105907
|
-
"darkmagenta": [139, 0, 139],
|
|
105908
|
-
"darkolivegreen": [85, 107, 47],
|
|
105909
|
-
"darkorange": [255, 140, 0],
|
|
105910
|
-
"darkorchid": [153, 50, 204],
|
|
105911
|
-
"darkred": [139, 0, 0],
|
|
105912
|
-
"darksalmon": [233, 150, 122],
|
|
105913
|
-
"darkseagreen": [143, 188, 143],
|
|
105914
|
-
"darkslateblue": [72, 61, 139],
|
|
105915
|
-
"darkslategray": [47, 79, 79],
|
|
105916
|
-
"darkslategrey": [47, 79, 79],
|
|
105917
|
-
"darkturquoise": [0, 206, 209],
|
|
105918
|
-
"darkviolet": [148, 0, 211],
|
|
105919
|
-
"deeppink": [255, 20, 147],
|
|
105920
|
-
"deepskyblue": [0, 191, 255],
|
|
105921
|
-
"dimgray": [105, 105, 105],
|
|
105922
|
-
"dimgrey": [105, 105, 105],
|
|
105923
|
-
"dodgerblue": [30, 144, 255],
|
|
105924
|
-
"firebrick": [178, 34, 34],
|
|
105925
|
-
"floralwhite": [255, 250, 240],
|
|
105926
|
-
"forestgreen": [34, 139, 34],
|
|
105927
|
-
"fuchsia": [255, 0, 255],
|
|
105928
|
-
"gainsboro": [220, 220, 220],
|
|
105929
|
-
"ghostwhite": [248, 248, 255],
|
|
105930
|
-
"gold": [255, 215, 0],
|
|
105931
|
-
"goldenrod": [218, 165, 32],
|
|
105932
|
-
"gray": [128, 128, 128],
|
|
105933
|
-
"green": [0, 128, 0],
|
|
105934
|
-
"greenyellow": [173, 255, 47],
|
|
105935
|
-
"grey": [128, 128, 128],
|
|
105936
|
-
"honeydew": [240, 255, 240],
|
|
105937
|
-
"hotpink": [255, 105, 180],
|
|
105938
|
-
"indianred": [205, 92, 92],
|
|
105939
|
-
"indigo": [75, 0, 130],
|
|
105940
|
-
"ivory": [255, 255, 240],
|
|
105941
|
-
"khaki": [240, 230, 140],
|
|
105942
|
-
"lavender": [230, 230, 250],
|
|
105943
|
-
"lavenderblush": [255, 240, 245],
|
|
105944
|
-
"lawngreen": [124, 252, 0],
|
|
105945
|
-
"lemonchiffon": [255, 250, 205],
|
|
105946
|
-
"lightblue": [173, 216, 230],
|
|
105947
|
-
"lightcoral": [240, 128, 128],
|
|
105948
|
-
"lightcyan": [224, 255, 255],
|
|
105949
|
-
"lightgoldenrodyellow": [250, 250, 210],
|
|
105950
|
-
"lightgray": [211, 211, 211],
|
|
105951
|
-
"lightgreen": [144, 238, 144],
|
|
105952
|
-
"lightgrey": [211, 211, 211],
|
|
105953
|
-
"lightpink": [255, 182, 193],
|
|
105954
|
-
"lightsalmon": [255, 160, 122],
|
|
105955
|
-
"lightseagreen": [32, 178, 170],
|
|
105956
|
-
"lightskyblue": [135, 206, 250],
|
|
105957
|
-
"lightslategray": [119, 136, 153],
|
|
105958
|
-
"lightslategrey": [119, 136, 153],
|
|
105959
|
-
"lightsteelblue": [176, 196, 222],
|
|
105960
|
-
"lightyellow": [255, 255, 224],
|
|
105961
|
-
"lime": [0, 255, 0],
|
|
105962
|
-
"limegreen": [50, 205, 50],
|
|
105963
|
-
"linen": [250, 240, 230],
|
|
105964
|
-
"magenta": [255, 0, 255],
|
|
105965
|
-
"maroon": [128, 0, 0],
|
|
105966
|
-
"mediumaquamarine": [102, 205, 170],
|
|
105967
|
-
"mediumblue": [0, 0, 205],
|
|
105968
|
-
"mediumorchid": [186, 85, 211],
|
|
105969
|
-
"mediumpurple": [147, 112, 219],
|
|
105970
|
-
"mediumseagreen": [60, 179, 113],
|
|
105971
|
-
"mediumslateblue": [123, 104, 238],
|
|
105972
|
-
"mediumspringgreen": [0, 250, 154],
|
|
105973
|
-
"mediumturquoise": [72, 209, 204],
|
|
105974
|
-
"mediumvioletred": [199, 21, 133],
|
|
105975
|
-
"midnightblue": [25, 25, 112],
|
|
105976
|
-
"mintcream": [245, 255, 250],
|
|
105977
|
-
"mistyrose": [255, 228, 225],
|
|
105978
|
-
"moccasin": [255, 228, 181],
|
|
105979
|
-
"navajowhite": [255, 222, 173],
|
|
105980
|
-
"navy": [0, 0, 128],
|
|
105981
|
-
"oldlace": [253, 245, 230],
|
|
105982
|
-
"olive": [128, 128, 0],
|
|
105983
|
-
"olivedrab": [107, 142, 35],
|
|
105984
|
-
"orange": [255, 165, 0],
|
|
105985
|
-
"orangered": [255, 69, 0],
|
|
105986
|
-
"orchid": [218, 112, 214],
|
|
105987
|
-
"palegoldenrod": [238, 232, 170],
|
|
105988
|
-
"palegreen": [152, 251, 152],
|
|
105989
|
-
"paleturquoise": [175, 238, 238],
|
|
105990
|
-
"palevioletred": [219, 112, 147],
|
|
105991
|
-
"papayawhip": [255, 239, 213],
|
|
105992
|
-
"peachpuff": [255, 218, 185],
|
|
105993
|
-
"peru": [205, 133, 63],
|
|
105994
|
-
"pink": [255, 192, 203],
|
|
105995
|
-
"plum": [221, 160, 221],
|
|
105996
|
-
"powderblue": [176, 224, 230],
|
|
105997
|
-
"purple": [128, 0, 128],
|
|
105998
|
-
"rebeccapurple": [102, 51, 153],
|
|
105999
|
-
"red": [255, 0, 0],
|
|
106000
|
-
"rosybrown": [188, 143, 143],
|
|
106001
|
-
"royalblue": [65, 105, 225],
|
|
106002
|
-
"saddlebrown": [139, 69, 19],
|
|
106003
|
-
"salmon": [250, 128, 114],
|
|
106004
|
-
"sandybrown": [244, 164, 96],
|
|
106005
|
-
"seagreen": [46, 139, 87],
|
|
106006
|
-
"seashell": [255, 245, 238],
|
|
106007
|
-
"sienna": [160, 82, 45],
|
|
106008
|
-
"silver": [192, 192, 192],
|
|
106009
|
-
"skyblue": [135, 206, 235],
|
|
106010
|
-
"slateblue": [106, 90, 205],
|
|
106011
|
-
"slategray": [112, 128, 144],
|
|
106012
|
-
"slategrey": [112, 128, 144],
|
|
106013
|
-
"snow": [255, 250, 250],
|
|
106014
|
-
"springgreen": [0, 255, 127],
|
|
106015
|
-
"steelblue": [70, 130, 180],
|
|
106016
|
-
"tan": [210, 180, 140],
|
|
106017
|
-
"teal": [0, 128, 128],
|
|
106018
|
-
"thistle": [216, 191, 216],
|
|
106019
|
-
"tomato": [255, 99, 71],
|
|
106020
|
-
"turquoise": [64, 224, 208],
|
|
106021
|
-
"violet": [238, 130, 238],
|
|
106022
|
-
"wheat": [245, 222, 179],
|
|
106023
|
-
"white": [255, 255, 255],
|
|
106024
|
-
"whitesmoke": [245, 245, 245],
|
|
106025
|
-
"yellow": [255, 255, 0],
|
|
106026
|
-
"yellowgreen": [154, 205, 50]
|
|
105878
|
+
module.exports = {
|
|
105879
|
+
"aliceblue": [240, 248, 255],
|
|
105880
|
+
"antiquewhite": [250, 235, 215],
|
|
105881
|
+
"aqua": [0, 255, 255],
|
|
105882
|
+
"aquamarine": [127, 255, 212],
|
|
105883
|
+
"azure": [240, 255, 255],
|
|
105884
|
+
"beige": [245, 245, 220],
|
|
105885
|
+
"bisque": [255, 228, 196],
|
|
105886
|
+
"black": [0, 0, 0],
|
|
105887
|
+
"blanchedalmond": [255, 235, 205],
|
|
105888
|
+
"blue": [0, 0, 255],
|
|
105889
|
+
"blueviolet": [138, 43, 226],
|
|
105890
|
+
"brown": [165, 42, 42],
|
|
105891
|
+
"burlywood": [222, 184, 135],
|
|
105892
|
+
"cadetblue": [95, 158, 160],
|
|
105893
|
+
"chartreuse": [127, 255, 0],
|
|
105894
|
+
"chocolate": [210, 105, 30],
|
|
105895
|
+
"coral": [255, 127, 80],
|
|
105896
|
+
"cornflowerblue": [100, 149, 237],
|
|
105897
|
+
"cornsilk": [255, 248, 220],
|
|
105898
|
+
"crimson": [220, 20, 60],
|
|
105899
|
+
"cyan": [0, 255, 255],
|
|
105900
|
+
"darkblue": [0, 0, 139],
|
|
105901
|
+
"darkcyan": [0, 139, 139],
|
|
105902
|
+
"darkgoldenrod": [184, 134, 11],
|
|
105903
|
+
"darkgray": [169, 169, 169],
|
|
105904
|
+
"darkgreen": [0, 100, 0],
|
|
105905
|
+
"darkgrey": [169, 169, 169],
|
|
105906
|
+
"darkkhaki": [189, 183, 107],
|
|
105907
|
+
"darkmagenta": [139, 0, 139],
|
|
105908
|
+
"darkolivegreen": [85, 107, 47],
|
|
105909
|
+
"darkorange": [255, 140, 0],
|
|
105910
|
+
"darkorchid": [153, 50, 204],
|
|
105911
|
+
"darkred": [139, 0, 0],
|
|
105912
|
+
"darksalmon": [233, 150, 122],
|
|
105913
|
+
"darkseagreen": [143, 188, 143],
|
|
105914
|
+
"darkslateblue": [72, 61, 139],
|
|
105915
|
+
"darkslategray": [47, 79, 79],
|
|
105916
|
+
"darkslategrey": [47, 79, 79],
|
|
105917
|
+
"darkturquoise": [0, 206, 209],
|
|
105918
|
+
"darkviolet": [148, 0, 211],
|
|
105919
|
+
"deeppink": [255, 20, 147],
|
|
105920
|
+
"deepskyblue": [0, 191, 255],
|
|
105921
|
+
"dimgray": [105, 105, 105],
|
|
105922
|
+
"dimgrey": [105, 105, 105],
|
|
105923
|
+
"dodgerblue": [30, 144, 255],
|
|
105924
|
+
"firebrick": [178, 34, 34],
|
|
105925
|
+
"floralwhite": [255, 250, 240],
|
|
105926
|
+
"forestgreen": [34, 139, 34],
|
|
105927
|
+
"fuchsia": [255, 0, 255],
|
|
105928
|
+
"gainsboro": [220, 220, 220],
|
|
105929
|
+
"ghostwhite": [248, 248, 255],
|
|
105930
|
+
"gold": [255, 215, 0],
|
|
105931
|
+
"goldenrod": [218, 165, 32],
|
|
105932
|
+
"gray": [128, 128, 128],
|
|
105933
|
+
"green": [0, 128, 0],
|
|
105934
|
+
"greenyellow": [173, 255, 47],
|
|
105935
|
+
"grey": [128, 128, 128],
|
|
105936
|
+
"honeydew": [240, 255, 240],
|
|
105937
|
+
"hotpink": [255, 105, 180],
|
|
105938
|
+
"indianred": [205, 92, 92],
|
|
105939
|
+
"indigo": [75, 0, 130],
|
|
105940
|
+
"ivory": [255, 255, 240],
|
|
105941
|
+
"khaki": [240, 230, 140],
|
|
105942
|
+
"lavender": [230, 230, 250],
|
|
105943
|
+
"lavenderblush": [255, 240, 245],
|
|
105944
|
+
"lawngreen": [124, 252, 0],
|
|
105945
|
+
"lemonchiffon": [255, 250, 205],
|
|
105946
|
+
"lightblue": [173, 216, 230],
|
|
105947
|
+
"lightcoral": [240, 128, 128],
|
|
105948
|
+
"lightcyan": [224, 255, 255],
|
|
105949
|
+
"lightgoldenrodyellow": [250, 250, 210],
|
|
105950
|
+
"lightgray": [211, 211, 211],
|
|
105951
|
+
"lightgreen": [144, 238, 144],
|
|
105952
|
+
"lightgrey": [211, 211, 211],
|
|
105953
|
+
"lightpink": [255, 182, 193],
|
|
105954
|
+
"lightsalmon": [255, 160, 122],
|
|
105955
|
+
"lightseagreen": [32, 178, 170],
|
|
105956
|
+
"lightskyblue": [135, 206, 250],
|
|
105957
|
+
"lightslategray": [119, 136, 153],
|
|
105958
|
+
"lightslategrey": [119, 136, 153],
|
|
105959
|
+
"lightsteelblue": [176, 196, 222],
|
|
105960
|
+
"lightyellow": [255, 255, 224],
|
|
105961
|
+
"lime": [0, 255, 0],
|
|
105962
|
+
"limegreen": [50, 205, 50],
|
|
105963
|
+
"linen": [250, 240, 230],
|
|
105964
|
+
"magenta": [255, 0, 255],
|
|
105965
|
+
"maroon": [128, 0, 0],
|
|
105966
|
+
"mediumaquamarine": [102, 205, 170],
|
|
105967
|
+
"mediumblue": [0, 0, 205],
|
|
105968
|
+
"mediumorchid": [186, 85, 211],
|
|
105969
|
+
"mediumpurple": [147, 112, 219],
|
|
105970
|
+
"mediumseagreen": [60, 179, 113],
|
|
105971
|
+
"mediumslateblue": [123, 104, 238],
|
|
105972
|
+
"mediumspringgreen": [0, 250, 154],
|
|
105973
|
+
"mediumturquoise": [72, 209, 204],
|
|
105974
|
+
"mediumvioletred": [199, 21, 133],
|
|
105975
|
+
"midnightblue": [25, 25, 112],
|
|
105976
|
+
"mintcream": [245, 255, 250],
|
|
105977
|
+
"mistyrose": [255, 228, 225],
|
|
105978
|
+
"moccasin": [255, 228, 181],
|
|
105979
|
+
"navajowhite": [255, 222, 173],
|
|
105980
|
+
"navy": [0, 0, 128],
|
|
105981
|
+
"oldlace": [253, 245, 230],
|
|
105982
|
+
"olive": [128, 128, 0],
|
|
105983
|
+
"olivedrab": [107, 142, 35],
|
|
105984
|
+
"orange": [255, 165, 0],
|
|
105985
|
+
"orangered": [255, 69, 0],
|
|
105986
|
+
"orchid": [218, 112, 214],
|
|
105987
|
+
"palegoldenrod": [238, 232, 170],
|
|
105988
|
+
"palegreen": [152, 251, 152],
|
|
105989
|
+
"paleturquoise": [175, 238, 238],
|
|
105990
|
+
"palevioletred": [219, 112, 147],
|
|
105991
|
+
"papayawhip": [255, 239, 213],
|
|
105992
|
+
"peachpuff": [255, 218, 185],
|
|
105993
|
+
"peru": [205, 133, 63],
|
|
105994
|
+
"pink": [255, 192, 203],
|
|
105995
|
+
"plum": [221, 160, 221],
|
|
105996
|
+
"powderblue": [176, 224, 230],
|
|
105997
|
+
"purple": [128, 0, 128],
|
|
105998
|
+
"rebeccapurple": [102, 51, 153],
|
|
105999
|
+
"red": [255, 0, 0],
|
|
106000
|
+
"rosybrown": [188, 143, 143],
|
|
106001
|
+
"royalblue": [65, 105, 225],
|
|
106002
|
+
"saddlebrown": [139, 69, 19],
|
|
106003
|
+
"salmon": [250, 128, 114],
|
|
106004
|
+
"sandybrown": [244, 164, 96],
|
|
106005
|
+
"seagreen": [46, 139, 87],
|
|
106006
|
+
"seashell": [255, 245, 238],
|
|
106007
|
+
"sienna": [160, 82, 45],
|
|
106008
|
+
"silver": [192, 192, 192],
|
|
106009
|
+
"skyblue": [135, 206, 235],
|
|
106010
|
+
"slateblue": [106, 90, 205],
|
|
106011
|
+
"slategray": [112, 128, 144],
|
|
106012
|
+
"slategrey": [112, 128, 144],
|
|
106013
|
+
"snow": [255, 250, 250],
|
|
106014
|
+
"springgreen": [0, 255, 127],
|
|
106015
|
+
"steelblue": [70, 130, 180],
|
|
106016
|
+
"tan": [210, 180, 140],
|
|
106017
|
+
"teal": [0, 128, 128],
|
|
106018
|
+
"thistle": [216, 191, 216],
|
|
106019
|
+
"tomato": [255, 99, 71],
|
|
106020
|
+
"turquoise": [64, 224, 208],
|
|
106021
|
+
"violet": [238, 130, 238],
|
|
106022
|
+
"wheat": [245, 222, 179],
|
|
106023
|
+
"white": [255, 255, 255],
|
|
106024
|
+
"whitesmoke": [245, 245, 245],
|
|
106025
|
+
"yellow": [255, 255, 0],
|
|
106026
|
+
"yellowgreen": [154, 205, 50]
|
|
106027
106027
|
};
|
|
106028
106028
|
|
|
106029
106029
|
/***/ }),
|
|
@@ -107423,7 +107423,7 @@ var CacheObject = function (conf) {
|
|
|
107423
107423
|
conf = conf || {};
|
|
107424
107424
|
conf.ttl = parseInt(conf.ttl, 10) || 300; //0 is not permissible
|
|
107425
107425
|
conf.cachesize = parseInt(conf.cachesize, 10) || 1000; //0 is not permissible
|
|
107426
|
-
|
|
107426
|
+
|
|
107427
107427
|
this.ttl = conf.ttl * 1000;
|
|
107428
107428
|
this.max = conf.cachesize;
|
|
107429
107429
|
|
|
@@ -107564,7 +107564,7 @@ var EnhanceDns = function (conf) {
|
|
|
107564
107564
|
//cache already exists, means this code has already execute ie method are already overwritten
|
|
107565
107565
|
return dns;
|
|
107566
107566
|
}
|
|
107567
|
-
|
|
107567
|
+
|
|
107568
107568
|
// original function storage
|
|
107569
107569
|
var backup_object = {
|
|
107570
107570
|
lookup : dns.lookup,
|
|
@@ -107580,7 +107580,7 @@ var EnhanceDns = function (conf) {
|
|
|
107580
107580
|
},
|
|
107581
107581
|
// cache storage instance
|
|
107582
107582
|
cache = conf.cache ? /*istanbul ignore next*/ new conf.cache(conf) : new CacheObject(conf);
|
|
107583
|
-
|
|
107583
|
+
|
|
107584
107584
|
// insert cache object to the instance
|
|
107585
107585
|
dns.internalCache = cache;
|
|
107586
107586
|
|
|
@@ -109146,8 +109146,8 @@ var util = __webpack_require__(3)
|
|
|
109146
109146
|
, net = __webpack_require__(164)
|
|
109147
109147
|
, tls = __webpack_require__(467)
|
|
109148
109148
|
, AgentSSL = __webpack_require__(196).Agent
|
|
109149
|
-
|
|
109150
|
-
function getConnectionName(host, port) {
|
|
109149
|
+
|
|
109150
|
+
function getConnectionName(host, port) {
|
|
109151
109151
|
var name = ''
|
|
109152
109152
|
if (typeof host === 'string') {
|
|
109153
109153
|
name = host + ':' + port
|
|
@@ -109156,7 +109156,7 @@ function getConnectionName(host, port) {
|
|
|
109156
109156
|
name = host.host + ':' + host.port + ':' + (host.localAddress ? (host.localAddress + ':') : ':')
|
|
109157
109157
|
}
|
|
109158
109158
|
return name
|
|
109159
|
-
}
|
|
109159
|
+
}
|
|
109160
109160
|
|
|
109161
109161
|
function ForeverAgent(options) {
|
|
109162
109162
|
var self = this
|
|
@@ -109174,7 +109174,7 @@ function ForeverAgent(options) {
|
|
|
109174
109174
|
} else if (self.sockets[name].length < self.minSockets) {
|
|
109175
109175
|
if (!self.freeSockets[name]) self.freeSockets[name] = []
|
|
109176
109176
|
self.freeSockets[name].push(socket)
|
|
109177
|
-
|
|
109177
|
+
|
|
109178
109178
|
// if an error happens while we don't use the socket anyway, meh, throw the socket away
|
|
109179
109179
|
var onIdleError = function() {
|
|
109180
109180
|
socket.destroy()
|
|
@@ -109200,7 +109200,7 @@ ForeverAgent.prototype.createConnection = net.createConnection
|
|
|
109200
109200
|
ForeverAgent.prototype.addRequestNoreuse = Agent.prototype.addRequest
|
|
109201
109201
|
ForeverAgent.prototype.addRequest = function(req, host, port) {
|
|
109202
109202
|
var name = getConnectionName(host, port)
|
|
109203
|
-
|
|
109203
|
+
|
|
109204
109204
|
if (typeof host !== 'string') {
|
|
109205
109205
|
var options = host
|
|
109206
109206
|
port = options.port
|
|
@@ -109229,7 +109229,7 @@ ForeverAgent.prototype.removeSocket = function(s, name, host, port) {
|
|
|
109229
109229
|
delete this.sockets[name]
|
|
109230
109230
|
delete this.requests[name]
|
|
109231
109231
|
}
|
|
109232
|
-
|
|
109232
|
+
|
|
109233
109233
|
if (this.freeSockets[name]) {
|
|
109234
109234
|
var index = this.freeSockets[name].indexOf(s)
|
|
109235
109235
|
if (index !== -1) {
|
|
@@ -120034,7 +120034,7 @@ function DBCSCodec(codecOptions, iconv) {
|
|
|
120034
120034
|
this.decodeTables = [];
|
|
120035
120035
|
this.decodeTables[0] = UNASSIGNED_NODE.slice(0); // Create root node.
|
|
120036
120036
|
|
|
120037
|
-
// Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here.
|
|
120037
|
+
// Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here.
|
|
120038
120038
|
this.decodeTableSeq = [];
|
|
120039
120039
|
|
|
120040
120040
|
// Actual mapping tables consist of chunks. Use them to fill up decode tables.
|
|
@@ -120043,7 +120043,7 @@ function DBCSCodec(codecOptions, iconv) {
|
|
|
120043
120043
|
|
|
120044
120044
|
this.defaultCharUnicode = iconv.defaultCharUnicode;
|
|
120045
120045
|
|
|
120046
|
-
|
|
120046
|
+
|
|
120047
120047
|
// Encode tables: Unicode -> DBCS.
|
|
120048
120048
|
|
|
120049
120049
|
// `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance.
|
|
@@ -120052,7 +120052,7 @@ function DBCSCodec(codecOptions, iconv) {
|
|
|
120052
120052
|
// == UNASSIGNED -> no conversion found. Output a default char.
|
|
120053
120053
|
// <= SEQ_START -> it's an index in encodeTableSeq, see below. The character starts a sequence.
|
|
120054
120054
|
this.encodeTable = [];
|
|
120055
|
-
|
|
120055
|
+
|
|
120056
120056
|
// `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of
|
|
120057
120057
|
// objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key
|
|
120058
120058
|
// means end of sequence (needed when one sequence is a strict subsequence of another).
|
|
@@ -120070,7 +120070,7 @@ function DBCSCodec(codecOptions, iconv) {
|
|
|
120070
120070
|
for (var j = val.from; j <= val.to; j++)
|
|
120071
120071
|
skipEncodeChars[j] = true;
|
|
120072
120072
|
}
|
|
120073
|
-
|
|
120073
|
+
|
|
120074
120074
|
// Use decode trie to recursively fill out encode tables.
|
|
120075
120075
|
this._fillEncodeTable(0, 0, skipEncodeChars);
|
|
120076
120076
|
|
|
@@ -120107,7 +120107,7 @@ function DBCSCodec(codecOptions, iconv) {
|
|
|
120107
120107
|
thirdByteNode[i] = NODE_START - fourthByteNodeIdx;
|
|
120108
120108
|
for (var i = 0x30; i <= 0x39; i++)
|
|
120109
120109
|
fourthByteNode[i] = GB18030_CODE
|
|
120110
|
-
}
|
|
120110
|
+
}
|
|
120111
120111
|
}
|
|
120112
120112
|
|
|
120113
120113
|
DBCSCodec.prototype.encoder = DBCSEncoder;
|
|
@@ -120172,7 +120172,7 @@ DBCSCodec.prototype._addDecodeChunk = function(chunk) {
|
|
|
120172
120172
|
else
|
|
120173
120173
|
writeTable[curAddr++] = code; // Basic char
|
|
120174
120174
|
}
|
|
120175
|
-
}
|
|
120175
|
+
}
|
|
120176
120176
|
else if (typeof part === "number") { // Integer, meaning increasing sequence starting with prev character.
|
|
120177
120177
|
var charCode = writeTable[curAddr - 1] + 1;
|
|
120178
120178
|
for (var l = 0; l < part; l++)
|
|
@@ -120203,7 +120203,7 @@ DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
|
|
|
120203
120203
|
}
|
|
120204
120204
|
|
|
120205
120205
|
DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
|
|
120206
|
-
|
|
120206
|
+
|
|
120207
120207
|
// Get the root of character tree according to first character of the sequence.
|
|
120208
120208
|
var uCode = seq[0];
|
|
120209
120209
|
var bucket = this._getEncodeBucket(uCode);
|
|
@@ -120264,7 +120264,7 @@ function DBCSEncoder(options, codec) {
|
|
|
120264
120264
|
// Encoder state
|
|
120265
120265
|
this.leadSurrogate = -1;
|
|
120266
120266
|
this.seqObj = undefined;
|
|
120267
|
-
|
|
120267
|
+
|
|
120268
120268
|
// Static data
|
|
120269
120269
|
this.encodeTable = codec.encodeTable;
|
|
120270
120270
|
this.encodeTableSeq = codec.encodeTableSeq;
|
|
@@ -120286,7 +120286,7 @@ DBCSEncoder.prototype.write = function(str) {
|
|
|
120286
120286
|
}
|
|
120287
120287
|
else {
|
|
120288
120288
|
var uCode = nextChar;
|
|
120289
|
-
nextChar = -1;
|
|
120289
|
+
nextChar = -1;
|
|
120290
120290
|
}
|
|
120291
120291
|
|
|
120292
120292
|
// 1. Handle surrogates.
|
|
@@ -120308,7 +120308,7 @@ DBCSEncoder.prototype.write = function(str) {
|
|
|
120308
120308
|
// Incomplete surrogate pair - only trail surrogate found.
|
|
120309
120309
|
uCode = UNASSIGNED;
|
|
120310
120310
|
}
|
|
120311
|
-
|
|
120311
|
+
|
|
120312
120312
|
}
|
|
120313
120313
|
}
|
|
120314
120314
|
else if (leadSurrogate !== -1) {
|
|
@@ -120349,7 +120349,7 @@ DBCSEncoder.prototype.write = function(str) {
|
|
|
120349
120349
|
var subtable = this.encodeTable[uCode >> 8];
|
|
120350
120350
|
if (subtable !== undefined)
|
|
120351
120351
|
dbcsCode = subtable[uCode & 0xFF];
|
|
120352
|
-
|
|
120352
|
+
|
|
120353
120353
|
if (dbcsCode <= SEQ_START) { // Sequence start
|
|
120354
120354
|
seqObj = this.encodeTableSeq[SEQ_START-dbcsCode];
|
|
120355
120355
|
continue;
|
|
@@ -120372,7 +120372,7 @@ DBCSEncoder.prototype.write = function(str) {
|
|
|
120372
120372
|
// 3. Write dbcsCode character.
|
|
120373
120373
|
if (dbcsCode === UNASSIGNED)
|
|
120374
120374
|
dbcsCode = this.defaultCharSingleByte;
|
|
120375
|
-
|
|
120375
|
+
|
|
120376
120376
|
if (dbcsCode < 0x100) {
|
|
120377
120377
|
newBuf[j++] = dbcsCode;
|
|
120378
120378
|
}
|
|
@@ -120419,7 +120419,7 @@ DBCSEncoder.prototype.end = function() {
|
|
|
120419
120419
|
newBuf[j++] = this.defaultCharSingleByte;
|
|
120420
120420
|
this.leadSurrogate = -1;
|
|
120421
120421
|
}
|
|
120422
|
-
|
|
120422
|
+
|
|
120423
120423
|
return newBuf.slice(0, j);
|
|
120424
120424
|
}
|
|
120425
120425
|
|
|
@@ -120443,21 +120443,21 @@ function DBCSDecoder(options, codec) {
|
|
|
120443
120443
|
|
|
120444
120444
|
DBCSDecoder.prototype.write = function(buf) {
|
|
120445
120445
|
var newBuf = Buffer.alloc(buf.length*2),
|
|
120446
|
-
nodeIdx = this.nodeIdx,
|
|
120446
|
+
nodeIdx = this.nodeIdx,
|
|
120447
120447
|
prevBuf = this.prevBuf, prevBufOffset = this.prevBuf.length,
|
|
120448
120448
|
seqStart = -this.prevBuf.length, // idx of the start of current parsed sequence.
|
|
120449
120449
|
uCode;
|
|
120450
120450
|
|
|
120451
120451
|
if (prevBufOffset > 0) // Make prev buf overlap a little to make it easier to slice later.
|
|
120452
120452
|
prevBuf = Buffer.concat([prevBuf, buf.slice(0, 10)]);
|
|
120453
|
-
|
|
120453
|
+
|
|
120454
120454
|
for (var i = 0, j = 0; i < buf.length; i++) {
|
|
120455
120455
|
var curByte = (i >= 0) ? buf[i] : prevBuf[i + prevBufOffset];
|
|
120456
120456
|
|
|
120457
120457
|
// Lookup in current trie node.
|
|
120458
120458
|
var uCode = this.decodeTables[nodeIdx][curByte];
|
|
120459
120459
|
|
|
120460
|
-
if (uCode >= 0) {
|
|
120460
|
+
if (uCode >= 0) {
|
|
120461
120461
|
// Normal character, just use it.
|
|
120462
120462
|
}
|
|
120463
120463
|
else if (uCode === UNASSIGNED) { // Unknown char.
|
|
@@ -120489,7 +120489,7 @@ DBCSDecoder.prototype.write = function(buf) {
|
|
|
120489
120489
|
throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
|
|
120490
120490
|
|
|
120491
120491
|
// Write the character to buffer, handling higher planes using surrogate pair.
|
|
120492
|
-
if (uCode > 0xFFFF) {
|
|
120492
|
+
if (uCode > 0xFFFF) {
|
|
120493
120493
|
uCode -= 0x10000;
|
|
120494
120494
|
var uCodeLead = 0xD800 + Math.floor(uCode / 0x400);
|
|
120495
120495
|
newBuf[j++] = uCodeLead & 0xFF;
|
|
@@ -120559,11 +120559,11 @@ function findIdx(table, val) {
|
|
|
120559
120559
|
// require()-s are direct to support Browserify.
|
|
120560
120560
|
|
|
120561
120561
|
module.exports = {
|
|
120562
|
-
|
|
120562
|
+
|
|
120563
120563
|
// == Japanese/ShiftJIS ====================================================
|
|
120564
120564
|
// All japanese encodings are based on JIS X set of standards:
|
|
120565
120565
|
// JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
|
|
120566
|
-
// JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
|
|
120566
|
+
// JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
|
|
120567
120567
|
// Has several variations in 1978, 1983, 1990 and 1997.
|
|
120568
120568
|
// JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.
|
|
120569
120569
|
// JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.
|
|
@@ -120581,7 +120581,7 @@ module.exports = {
|
|
|
120581
120581
|
// 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).
|
|
120582
120582
|
// * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.
|
|
120583
120583
|
// Used as-is in ISO2022 family.
|
|
120584
|
-
// * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
|
|
120584
|
+
// * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
|
|
120585
120585
|
// 0201-1976 Roman, 0208-1978, 0208-1983.
|
|
120586
120586
|
// * ISO2022-JP-1: Adds esc seq for 0212-1990.
|
|
120587
120587
|
// * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.
|
|
@@ -120693,7 +120693,7 @@ module.exports = {
|
|
|
120693
120693
|
// * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/
|
|
120694
120694
|
// * Big5-2003 (Taiwan standard) almost superset of cp950.
|
|
120695
120695
|
// * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.
|
|
120696
|
-
// * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
|
|
120696
|
+
// * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
|
|
120697
120697
|
// many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.
|
|
120698
120698
|
// Plus, it has 4 combining sequences.
|
|
120699
120699
|
// Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299
|
|
@@ -120704,7 +120704,7 @@ module.exports = {
|
|
|
120704
120704
|
// In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.
|
|
120705
120705
|
// Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt
|
|
120706
120706
|
// http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt
|
|
120707
|
-
//
|
|
120707
|
+
//
|
|
120708
120708
|
// Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder
|
|
120709
120709
|
// Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.
|
|
120710
120710
|
|
|
@@ -120750,7 +120750,7 @@ var modules = [
|
|
|
120750
120750
|
__webpack_require__(711),
|
|
120751
120751
|
];
|
|
120752
120752
|
|
|
120753
|
-
// Put all encoding/alias/codec definitions to single object and export it.
|
|
120753
|
+
// Put all encoding/alias/codec definitions to single object and export it.
|
|
120754
120754
|
for (var i = 0; i < modules.length; i++) {
|
|
120755
120755
|
var module = modules[i];
|
|
120756
120756
|
for (var enc in module)
|
|
@@ -120902,7 +120902,7 @@ function InternalDecoderCesu8(options, codec) {
|
|
|
120902
120902
|
}
|
|
120903
120903
|
|
|
120904
120904
|
InternalDecoderCesu8.prototype.write = function(buf) {
|
|
120905
|
-
var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes,
|
|
120905
|
+
var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes,
|
|
120906
120906
|
res = '';
|
|
120907
120907
|
for (var i = 0; i < buf.length; i++) {
|
|
120908
120908
|
var curByte = buf[i];
|
|
@@ -120963,17 +120963,17 @@ InternalDecoderCesu8.prototype.end = function() {
|
|
|
120963
120963
|
var Buffer = __webpack_require__(15).Buffer;
|
|
120964
120964
|
|
|
120965
120965
|
// Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that
|
|
120966
|
-
// correspond to encoded bytes (if 128 - then lower half is ASCII).
|
|
120966
|
+
// correspond to encoded bytes (if 128 - then lower half is ASCII).
|
|
120967
120967
|
|
|
120968
120968
|
exports._sbcs = SBCSCodec;
|
|
120969
120969
|
function SBCSCodec(codecOptions, iconv) {
|
|
120970
120970
|
if (!codecOptions)
|
|
120971
120971
|
throw new Error("SBCS codec is called without the data.")
|
|
120972
|
-
|
|
120972
|
+
|
|
120973
120973
|
// Prepare char buffer for decoding.
|
|
120974
120974
|
if (!codecOptions.chars || (codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256))
|
|
120975
120975
|
throw new Error("Encoding '"+codecOptions.type+"' has incorrect 'chars' (must be of len 128 or 256)");
|
|
120976
|
-
|
|
120976
|
+
|
|
120977
120977
|
if (codecOptions.chars.length === 128) {
|
|
120978
120978
|
var asciiString = "";
|
|
120979
120979
|
for (var i = 0; i < 128; i++)
|
|
@@ -120982,7 +120982,7 @@ function SBCSCodec(codecOptions, iconv) {
|
|
|
120982
120982
|
}
|
|
120983
120983
|
|
|
120984
120984
|
this.decodeBuf = Buffer.from(codecOptions.chars, 'ucs2');
|
|
120985
|
-
|
|
120985
|
+
|
|
120986
120986
|
// Encoding buffer.
|
|
120987
120987
|
var encodeBuf = Buffer.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));
|
|
120988
120988
|
|
|
@@ -121004,7 +121004,7 @@ SBCSEncoder.prototype.write = function(str) {
|
|
|
121004
121004
|
var buf = Buffer.alloc(str.length);
|
|
121005
121005
|
for (var i = 0; i < str.length; i++)
|
|
121006
121006
|
buf[i] = this.encodeBuf[str.charCodeAt(i)];
|
|
121007
|
-
|
|
121007
|
+
|
|
121008
121008
|
return buf;
|
|
121009
121009
|
}
|
|
121010
121010
|
|
|
@@ -121823,7 +121823,7 @@ Utf16Decoder.prototype.write = function(buf) {
|
|
|
121823
121823
|
// Codec is not chosen yet. Accumulate initial bytes.
|
|
121824
121824
|
this.initialBytes.push(buf);
|
|
121825
121825
|
this.initialBytesLen += buf.length;
|
|
121826
|
-
|
|
121826
|
+
|
|
121827
121827
|
if (this.initialBytesLen < 16) // We need more bytes to use space heuristic (see below)
|
|
121828
121828
|
return '';
|
|
121829
121829
|
|
|
@@ -121919,8 +121919,8 @@ Utf7Encoder.prototype.write = function(str) {
|
|
|
121919
121919
|
// Naive implementation.
|
|
121920
121920
|
// Non-direct chars are encoded as "+<base64>-"; single "+" char is encoded as "+-".
|
|
121921
121921
|
return Buffer.from(str.replace(nonDirectChars, function(chunk) {
|
|
121922
|
-
return "+" + (chunk === '+' ? '' :
|
|
121923
|
-
this.iconv.encode(chunk, 'utf16-be').toString('base64').replace(/=+$/, ''))
|
|
121922
|
+
return "+" + (chunk === '+' ? '' :
|
|
121923
|
+
this.iconv.encode(chunk, 'utf16-be').toString('base64').replace(/=+$/, ''))
|
|
121924
121924
|
+ "-";
|
|
121925
121925
|
}.bind(this)));
|
|
121926
121926
|
}
|
|
@@ -121942,7 +121942,7 @@ var base64Chars = [];
|
|
|
121942
121942
|
for (var i = 0; i < 256; i++)
|
|
121943
121943
|
base64Chars[i] = base64Regex.test(String.fromCharCode(i));
|
|
121944
121944
|
|
|
121945
|
-
var plusChar = '+'.charCodeAt(0),
|
|
121945
|
+
var plusChar = '+'.charCodeAt(0),
|
|
121946
121946
|
minusChar = '-'.charCodeAt(0),
|
|
121947
121947
|
andChar = '&'.charCodeAt(0);
|
|
121948
121948
|
|
|
@@ -122271,7 +122271,7 @@ module.exports = function (iconv) {
|
|
|
122271
122271
|
}
|
|
122272
122272
|
|
|
122273
122273
|
var nodeNativeEncodings = {
|
|
122274
|
-
'hex': true, 'utf8': true, 'utf-8': true, 'ascii': true, 'binary': true,
|
|
122274
|
+
'hex': true, 'utf8': true, 'utf-8': true, 'ascii': true, 'binary': true,
|
|
122275
122275
|
'base64': true, 'ucs2': true, 'ucs-2': true, 'utf16le': true, 'utf-16le': true,
|
|
122276
122276
|
};
|
|
122277
122277
|
|
|
@@ -122495,7 +122495,7 @@ iconv.encode = function encode(str, encoding, options) {
|
|
|
122495
122495
|
|
|
122496
122496
|
var res = encoder.write(str);
|
|
122497
122497
|
var trail = encoder.end();
|
|
122498
|
-
|
|
122498
|
+
|
|
122499
122499
|
return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res;
|
|
122500
122500
|
}
|
|
122501
122501
|
|
|
@@ -122535,7 +122535,7 @@ iconv._codecDataCache = {};
|
|
|
122535
122535
|
iconv.getCodec = function getCodec(encoding) {
|
|
122536
122536
|
if (!iconv.encodings)
|
|
122537
122537
|
iconv.encodings = __webpack_require__(712); // Lazy load all encoding definitions.
|
|
122538
|
-
|
|
122538
|
+
|
|
122539
122539
|
// Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
|
|
122540
122540
|
var enc = iconv._canonicalizeEncoding(encoding);
|
|
122541
122541
|
|
|
@@ -122559,7 +122559,7 @@ iconv.getCodec = function getCodec(encoding) {
|
|
|
122559
122559
|
|
|
122560
122560
|
if (!codecOptions.encodingName)
|
|
122561
122561
|
codecOptions.encodingName = enc;
|
|
122562
|
-
|
|
122562
|
+
|
|
122563
122563
|
enc = codecDef.type;
|
|
122564
122564
|
break;
|
|
122565
122565
|
|
|
@@ -122638,7 +122638,7 @@ var Buffer = __webpack_require__(64).Buffer,
|
|
|
122638
122638
|
|
|
122639
122639
|
// == Exports ==================================================================
|
|
122640
122640
|
module.exports = function(iconv) {
|
|
122641
|
-
|
|
122641
|
+
|
|
122642
122642
|
// Additional Public API.
|
|
122643
122643
|
iconv.encodeStream = function encodeStream(encoding, options) {
|
|
122644
122644
|
return new IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options);
|
|
@@ -122733,7 +122733,7 @@ IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {
|
|
|
122733
122733
|
IconvLiteDecoderStream.prototype._flush = function(done) {
|
|
122734
122734
|
try {
|
|
122735
122735
|
var res = this.conv.end();
|
|
122736
|
-
if (res && res.length) this.push(res, this.encoding);
|
|
122736
|
+
if (res && res.length) this.push(res, this.encoding);
|
|
122737
122737
|
done();
|
|
122738
122738
|
}
|
|
122739
122739
|
catch (e) {
|
|
@@ -123170,280 +123170,280 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
123170
123170
|
/* 744 */
|
|
123171
123171
|
/***/ (function(module, exports, __webpack_require__) {
|
|
123172
123172
|
|
|
123173
|
-
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
|
|
123174
|
-
* JSONSchema Validator - Validates JavaScript objects using JSON Schemas
|
|
123175
|
-
* (http://www.json.com/json-schema-proposal/)
|
|
123176
|
-
*
|
|
123177
|
-
* Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
|
|
123178
|
-
* Licensed under the MIT (MIT-LICENSE.txt) license.
|
|
123179
|
-
To use the validator call the validate function with an instance object and an optional schema object.
|
|
123180
|
-
If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),
|
|
123181
|
-
that schema will be used to validate and the schema parameter is not necessary (if both exist,
|
|
123182
|
-
both validations will occur).
|
|
123183
|
-
The validate method will return an array of validation errors. If there are no errors, then an
|
|
123184
|
-
empty list will be returned. A validation error will have two properties:
|
|
123185
|
-
"property" which indicates which property had the error
|
|
123186
|
-
"message" which indicates what the error was
|
|
123187
|
-
*/
|
|
123188
|
-
(function (root, factory) {
|
|
123189
|
-
if (true) {
|
|
123190
|
-
// AMD. Register as an anonymous module.
|
|
123191
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {
|
|
123192
|
-
return factory();
|
|
123173
|
+
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
|
|
123174
|
+
* JSONSchema Validator - Validates JavaScript objects using JSON Schemas
|
|
123175
|
+
* (http://www.json.com/json-schema-proposal/)
|
|
123176
|
+
*
|
|
123177
|
+
* Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
|
|
123178
|
+
* Licensed under the MIT (MIT-LICENSE.txt) license.
|
|
123179
|
+
To use the validator call the validate function with an instance object and an optional schema object.
|
|
123180
|
+
If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),
|
|
123181
|
+
that schema will be used to validate and the schema parameter is not necessary (if both exist,
|
|
123182
|
+
both validations will occur).
|
|
123183
|
+
The validate method will return an array of validation errors. If there are no errors, then an
|
|
123184
|
+
empty list will be returned. A validation error will have two properties:
|
|
123185
|
+
"property" which indicates which property had the error
|
|
123186
|
+
"message" which indicates what the error was
|
|
123187
|
+
*/
|
|
123188
|
+
(function (root, factory) {
|
|
123189
|
+
if (true) {
|
|
123190
|
+
// AMD. Register as an anonymous module.
|
|
123191
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {
|
|
123192
|
+
return factory();
|
|
123193
123193
|
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
|
123194
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
123195
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
123196
|
-
// Node. Does not work with strict CommonJS, but
|
|
123197
|
-
// only CommonJS-like environments that support module.exports,
|
|
123198
|
-
// like Node.
|
|
123199
|
-
module.exports = factory();
|
|
123200
|
-
} else {
|
|
123201
|
-
// Browser globals
|
|
123202
|
-
root.jsonSchema = factory();
|
|
123203
|
-
}
|
|
123204
|
-
}(this, function () {// setup primitive classes to be JSON Schema types
|
|
123205
|
-
var exports = validate
|
|
123206
|
-
exports.Integer = {type:"integer"};
|
|
123207
|
-
var primitiveConstructors = {
|
|
123208
|
-
String: String,
|
|
123209
|
-
Boolean: Boolean,
|
|
123210
|
-
Number: Number,
|
|
123211
|
-
Object: Object,
|
|
123212
|
-
Array: Array,
|
|
123213
|
-
Date: Date
|
|
123214
|
-
}
|
|
123215
|
-
exports.validate = validate;
|
|
123216
|
-
function validate(/*Any*/instance,/*Object*/schema) {
|
|
123217
|
-
// Summary:
|
|
123218
|
-
// To use the validator call JSONSchema.validate with an instance object and an optional schema object.
|
|
123219
|
-
// If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),
|
|
123220
|
-
// that schema will be used to validate and the schema parameter is not necessary (if both exist,
|
|
123221
|
-
// both validations will occur).
|
|
123222
|
-
// The validate method will return an object with two properties:
|
|
123223
|
-
// valid: A boolean indicating if the instance is valid by the schema
|
|
123224
|
-
// errors: An array of validation errors. If there are no errors, then an
|
|
123225
|
-
// empty list will be returned. A validation error will have two properties:
|
|
123226
|
-
// property: which indicates which property had the error
|
|
123227
|
-
// message: which indicates what the error was
|
|
123228
|
-
//
|
|
123229
|
-
return validate(instance, schema, {changing: false});//, coerce: false, existingOnly: false});
|
|
123230
|
-
};
|
|
123231
|
-
exports.checkPropertyChange = function(/*Any*/value,/*Object*/schema, /*String*/property) {
|
|
123232
|
-
// Summary:
|
|
123233
|
-
// The checkPropertyChange method will check to see if an value can legally be in property with the given schema
|
|
123234
|
-
// This is slightly different than the validate method in that it will fail if the schema is readonly and it will
|
|
123235
|
-
// not check for self-validation, it is assumed that the passed in value is already internally valid.
|
|
123236
|
-
// The checkPropertyChange method will return the same object type as validate, see JSONSchema.validate for
|
|
123237
|
-
// information.
|
|
123238
|
-
//
|
|
123239
|
-
return validate(value, schema, {changing: property || "property"});
|
|
123240
|
-
};
|
|
123241
|
-
var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*Object*/options) {
|
|
123242
|
-
|
|
123243
|
-
if (!options) options = {};
|
|
123244
|
-
var _changing = options.changing;
|
|
123245
|
-
|
|
123246
|
-
function getType(schema){
|
|
123247
|
-
return schema.type || (primitiveConstructors[schema.name] == schema && schema.name.toLowerCase());
|
|
123248
|
-
}
|
|
123249
|
-
var errors = [];
|
|
123250
|
-
// validate a value against a property definition
|
|
123251
|
-
function checkProp(value, schema, path,i){
|
|
123252
|
-
|
|
123253
|
-
var l;
|
|
123254
|
-
path += path ? typeof i == 'number' ? '[' + i + ']' : typeof i == 'undefined' ? '' : '.' + i : i;
|
|
123255
|
-
function addError(message){
|
|
123256
|
-
errors.push({property:path,message:message});
|
|
123257
|
-
}
|
|
123258
|
-
|
|
123259
|
-
if((typeof schema != 'object' || schema instanceof Array) && (path || typeof schema != 'function') && !(schema && getType(schema))){
|
|
123260
|
-
if(typeof schema == 'function'){
|
|
123261
|
-
if(!(value instanceof schema)){
|
|
123262
|
-
addError("is not an instance of the class/constructor " + schema.name);
|
|
123263
|
-
}
|
|
123264
|
-
}else if(schema){
|
|
123265
|
-
addError("Invalid schema/property definition " + schema);
|
|
123266
|
-
}
|
|
123267
|
-
return null;
|
|
123268
|
-
}
|
|
123269
|
-
if(_changing && schema.readonly){
|
|
123270
|
-
addError("is a readonly field, it can not be changed");
|
|
123271
|
-
}
|
|
123272
|
-
if(schema['extends']){ // if it extends another schema, it must pass that schema as well
|
|
123273
|
-
checkProp(value,schema['extends'],path,i);
|
|
123274
|
-
}
|
|
123275
|
-
// validate a value against a type definition
|
|
123276
|
-
function checkType(type,value){
|
|
123277
|
-
if(type){
|
|
123278
|
-
if(typeof type == 'string' && type != 'any' &&
|
|
123279
|
-
(type == 'null' ? value !== null : typeof value != type) &&
|
|
123280
|
-
!(value instanceof Array && type == 'array') &&
|
|
123281
|
-
!(value instanceof Date && type == 'date') &&
|
|
123282
|
-
!(type == 'integer' && value%1===0)){
|
|
123283
|
-
return [{property:path,message:(typeof value) + " value found, but a " + type + " is required"}];
|
|
123284
|
-
}
|
|
123285
|
-
if(type instanceof Array){
|
|
123286
|
-
var unionErrors=[];
|
|
123287
|
-
for(var j = 0; j < type.length; j++){ // a union type
|
|
123288
|
-
if(!(unionErrors=checkType(type[j],value)).length){
|
|
123289
|
-
break;
|
|
123290
|
-
}
|
|
123291
|
-
}
|
|
123292
|
-
if(unionErrors.length){
|
|
123293
|
-
return unionErrors;
|
|
123294
|
-
}
|
|
123295
|
-
}else if(typeof type == 'object'){
|
|
123296
|
-
var priorErrors = errors;
|
|
123297
|
-
errors = [];
|
|
123298
|
-
checkProp(value,type,path);
|
|
123299
|
-
var theseErrors = errors;
|
|
123300
|
-
errors = priorErrors;
|
|
123301
|
-
return theseErrors;
|
|
123302
|
-
}
|
|
123303
|
-
}
|
|
123304
|
-
return [];
|
|
123305
|
-
}
|
|
123306
|
-
if(value === undefined){
|
|
123307
|
-
if(schema.required){
|
|
123308
|
-
addError("is missing and it is required");
|
|
123309
|
-
}
|
|
123310
|
-
}else{
|
|
123311
|
-
errors = errors.concat(checkType(getType(schema),value));
|
|
123312
|
-
if(schema.disallow && !checkType(schema.disallow,value).length){
|
|
123313
|
-
addError(" disallowed value was matched");
|
|
123314
|
-
}
|
|
123315
|
-
if(value !== null){
|
|
123316
|
-
if(value instanceof Array){
|
|
123317
|
-
if(schema.items){
|
|
123318
|
-
var itemsIsArray = schema.items instanceof Array;
|
|
123319
|
-
var propDef = schema.items;
|
|
123320
|
-
for (i = 0, l = value.length; i < l; i += 1) {
|
|
123321
|
-
if (itemsIsArray)
|
|
123322
|
-
propDef = schema.items[i];
|
|
123323
|
-
if (options.coerce)
|
|
123324
|
-
value[i] = options.coerce(value[i], propDef);
|
|
123325
|
-
errors.concat(checkProp(value[i],propDef,path,i));
|
|
123326
|
-
}
|
|
123327
|
-
}
|
|
123328
|
-
if(schema.minItems && value.length < schema.minItems){
|
|
123329
|
-
addError("There must be a minimum of " + schema.minItems + " in the array");
|
|
123330
|
-
}
|
|
123331
|
-
if(schema.maxItems && value.length > schema.maxItems){
|
|
123332
|
-
addError("There must be a maximum of " + schema.maxItems + " in the array");
|
|
123333
|
-
}
|
|
123334
|
-
}else if(schema.properties || schema.additionalProperties){
|
|
123335
|
-
errors.concat(checkObj(value, schema.properties, path, schema.additionalProperties));
|
|
123336
|
-
}
|
|
123337
|
-
if(schema.pattern && typeof value == 'string' && !value.match(schema.pattern)){
|
|
123338
|
-
addError("does not match the regex pattern " + schema.pattern);
|
|
123339
|
-
}
|
|
123340
|
-
if(schema.maxLength && typeof value == 'string' && value.length > schema.maxLength){
|
|
123341
|
-
addError("may only be " + schema.maxLength + " characters long");
|
|
123342
|
-
}
|
|
123343
|
-
if(schema.minLength && typeof value == 'string' && value.length < schema.minLength){
|
|
123344
|
-
addError("must be at least " + schema.minLength + " characters long");
|
|
123345
|
-
}
|
|
123346
|
-
if(typeof schema.minimum !== undefined && typeof value == typeof schema.minimum &&
|
|
123347
|
-
schema.minimum > value){
|
|
123348
|
-
addError("must have a minimum value of " + schema.minimum);
|
|
123349
|
-
}
|
|
123350
|
-
if(typeof schema.maximum !== undefined && typeof value == typeof schema.maximum &&
|
|
123351
|
-
schema.maximum < value){
|
|
123352
|
-
addError("must have a maximum value of " + schema.maximum);
|
|
123353
|
-
}
|
|
123354
|
-
if(schema['enum']){
|
|
123355
|
-
var enumer = schema['enum'];
|
|
123356
|
-
l = enumer.length;
|
|
123357
|
-
var found;
|
|
123358
|
-
for(var j = 0; j < l; j++){
|
|
123359
|
-
if(enumer[j]===value){
|
|
123360
|
-
found=1;
|
|
123361
|
-
break;
|
|
123362
|
-
}
|
|
123363
|
-
}
|
|
123364
|
-
if(!found){
|
|
123365
|
-
addError("does not have a value in the enumeration " + enumer.join(", "));
|
|
123366
|
-
}
|
|
123367
|
-
}
|
|
123368
|
-
if(typeof schema.maxDecimal == 'number' &&
|
|
123369
|
-
(value.toString().match(new RegExp("\\.[0-9]{" + (schema.maxDecimal + 1) + ",}")))){
|
|
123370
|
-
addError("may only have " + schema.maxDecimal + " digits of decimal places");
|
|
123371
|
-
}
|
|
123372
|
-
}
|
|
123373
|
-
}
|
|
123374
|
-
return null;
|
|
123375
|
-
}
|
|
123376
|
-
// validate an object against a schema
|
|
123377
|
-
function checkObj(instance,objTypeDef,path,additionalProp){
|
|
123378
|
-
|
|
123379
|
-
if(typeof objTypeDef =='object'){
|
|
123380
|
-
if(typeof instance != 'object' || instance instanceof Array){
|
|
123381
|
-
errors.push({property:path,message:"an object is required"});
|
|
123382
|
-
}
|
|
123383
|
-
|
|
123384
|
-
for(var i in objTypeDef){
|
|
123385
|
-
if(objTypeDef.hasOwnProperty(i)){
|
|
123386
|
-
var value = instance[i];
|
|
123387
|
-
// skip _not_ specified properties
|
|
123388
|
-
if (value === undefined && options.existingOnly) continue;
|
|
123389
|
-
var propDef = objTypeDef[i];
|
|
123390
|
-
// set default
|
|
123391
|
-
if(value === undefined && propDef["default"]){
|
|
123392
|
-
value = instance[i] = propDef["default"];
|
|
123393
|
-
}
|
|
123394
|
-
if(options.coerce && i in instance){
|
|
123395
|
-
value = instance[i] = options.coerce(value, propDef);
|
|
123396
|
-
}
|
|
123397
|
-
checkProp(value,propDef,path,i);
|
|
123398
|
-
}
|
|
123399
|
-
}
|
|
123400
|
-
}
|
|
123401
|
-
for(i in instance){
|
|
123402
|
-
if(instance.hasOwnProperty(i) && !(i.charAt(0) == '_' && i.charAt(1) == '_') && objTypeDef && !objTypeDef[i] && additionalProp===false){
|
|
123403
|
-
if (options.filter) {
|
|
123404
|
-
delete instance[i];
|
|
123405
|
-
continue;
|
|
123406
|
-
} else {
|
|
123407
|
-
errors.push({property:path,message:(typeof value) + "The property " + i +
|
|
123408
|
-
" is not defined in the schema and the schema does not allow additional properties"});
|
|
123409
|
-
}
|
|
123410
|
-
}
|
|
123411
|
-
var requires = objTypeDef && objTypeDef[i] && objTypeDef[i].requires;
|
|
123412
|
-
if(requires && !(requires in instance)){
|
|
123413
|
-
errors.push({property:path,message:"the presence of the property " + i + " requires that " + requires + " also be present"});
|
|
123414
|
-
}
|
|
123415
|
-
value = instance[i];
|
|
123416
|
-
if(additionalProp && (!(objTypeDef && typeof objTypeDef == 'object') || !(i in objTypeDef))){
|
|
123417
|
-
if(options.coerce){
|
|
123418
|
-
value = instance[i] = options.coerce(value, additionalProp);
|
|
123419
|
-
}
|
|
123420
|
-
checkProp(value,additionalProp,path,i);
|
|
123421
|
-
}
|
|
123422
|
-
if(!_changing && value && value.$schema){
|
|
123423
|
-
errors = errors.concat(checkProp(value,value.$schema,path,i));
|
|
123424
|
-
}
|
|
123425
|
-
}
|
|
123426
|
-
return errors;
|
|
123427
|
-
}
|
|
123428
|
-
if(schema){
|
|
123429
|
-
checkProp(instance,schema,'',_changing || '');
|
|
123430
|
-
}
|
|
123431
|
-
if(!_changing && instance && instance.$schema){
|
|
123432
|
-
checkProp(instance,instance.$schema,'','');
|
|
123433
|
-
}
|
|
123434
|
-
return {valid:!errors.length,errors:errors};
|
|
123435
|
-
};
|
|
123436
|
-
exports.mustBeValid = function(result){
|
|
123437
|
-
// summary:
|
|
123438
|
-
// This checks to ensure that the result is valid and will throw an appropriate error message if it is not
|
|
123439
|
-
// result: the result returned from checkPropertyChange or validate
|
|
123440
|
-
if(!result.valid){
|
|
123441
|
-
throw new TypeError(result.errors.map(function(error){return "for property " + error.property + ': ' + error.message;}).join(", \n"));
|
|
123442
|
-
}
|
|
123443
|
-
}
|
|
123444
|
-
|
|
123445
|
-
return exports;
|
|
123446
|
-
}));
|
|
123194
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
123195
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
123196
|
+
// Node. Does not work with strict CommonJS, but
|
|
123197
|
+
// only CommonJS-like environments that support module.exports,
|
|
123198
|
+
// like Node.
|
|
123199
|
+
module.exports = factory();
|
|
123200
|
+
} else {
|
|
123201
|
+
// Browser globals
|
|
123202
|
+
root.jsonSchema = factory();
|
|
123203
|
+
}
|
|
123204
|
+
}(this, function () {// setup primitive classes to be JSON Schema types
|
|
123205
|
+
var exports = validate
|
|
123206
|
+
exports.Integer = {type:"integer"};
|
|
123207
|
+
var primitiveConstructors = {
|
|
123208
|
+
String: String,
|
|
123209
|
+
Boolean: Boolean,
|
|
123210
|
+
Number: Number,
|
|
123211
|
+
Object: Object,
|
|
123212
|
+
Array: Array,
|
|
123213
|
+
Date: Date
|
|
123214
|
+
}
|
|
123215
|
+
exports.validate = validate;
|
|
123216
|
+
function validate(/*Any*/instance,/*Object*/schema) {
|
|
123217
|
+
// Summary:
|
|
123218
|
+
// To use the validator call JSONSchema.validate with an instance object and an optional schema object.
|
|
123219
|
+
// If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),
|
|
123220
|
+
// that schema will be used to validate and the schema parameter is not necessary (if both exist,
|
|
123221
|
+
// both validations will occur).
|
|
123222
|
+
// The validate method will return an object with two properties:
|
|
123223
|
+
// valid: A boolean indicating if the instance is valid by the schema
|
|
123224
|
+
// errors: An array of validation errors. If there are no errors, then an
|
|
123225
|
+
// empty list will be returned. A validation error will have two properties:
|
|
123226
|
+
// property: which indicates which property had the error
|
|
123227
|
+
// message: which indicates what the error was
|
|
123228
|
+
//
|
|
123229
|
+
return validate(instance, schema, {changing: false});//, coerce: false, existingOnly: false});
|
|
123230
|
+
};
|
|
123231
|
+
exports.checkPropertyChange = function(/*Any*/value,/*Object*/schema, /*String*/property) {
|
|
123232
|
+
// Summary:
|
|
123233
|
+
// The checkPropertyChange method will check to see if an value can legally be in property with the given schema
|
|
123234
|
+
// This is slightly different than the validate method in that it will fail if the schema is readonly and it will
|
|
123235
|
+
// not check for self-validation, it is assumed that the passed in value is already internally valid.
|
|
123236
|
+
// The checkPropertyChange method will return the same object type as validate, see JSONSchema.validate for
|
|
123237
|
+
// information.
|
|
123238
|
+
//
|
|
123239
|
+
return validate(value, schema, {changing: property || "property"});
|
|
123240
|
+
};
|
|
123241
|
+
var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*Object*/options) {
|
|
123242
|
+
|
|
123243
|
+
if (!options) options = {};
|
|
123244
|
+
var _changing = options.changing;
|
|
123245
|
+
|
|
123246
|
+
function getType(schema){
|
|
123247
|
+
return schema.type || (primitiveConstructors[schema.name] == schema && schema.name.toLowerCase());
|
|
123248
|
+
}
|
|
123249
|
+
var errors = [];
|
|
123250
|
+
// validate a value against a property definition
|
|
123251
|
+
function checkProp(value, schema, path,i){
|
|
123252
|
+
|
|
123253
|
+
var l;
|
|
123254
|
+
path += path ? typeof i == 'number' ? '[' + i + ']' : typeof i == 'undefined' ? '' : '.' + i : i;
|
|
123255
|
+
function addError(message){
|
|
123256
|
+
errors.push({property:path,message:message});
|
|
123257
|
+
}
|
|
123258
|
+
|
|
123259
|
+
if((typeof schema != 'object' || schema instanceof Array) && (path || typeof schema != 'function') && !(schema && getType(schema))){
|
|
123260
|
+
if(typeof schema == 'function'){
|
|
123261
|
+
if(!(value instanceof schema)){
|
|
123262
|
+
addError("is not an instance of the class/constructor " + schema.name);
|
|
123263
|
+
}
|
|
123264
|
+
}else if(schema){
|
|
123265
|
+
addError("Invalid schema/property definition " + schema);
|
|
123266
|
+
}
|
|
123267
|
+
return null;
|
|
123268
|
+
}
|
|
123269
|
+
if(_changing && schema.readonly){
|
|
123270
|
+
addError("is a readonly field, it can not be changed");
|
|
123271
|
+
}
|
|
123272
|
+
if(schema['extends']){ // if it extends another schema, it must pass that schema as well
|
|
123273
|
+
checkProp(value,schema['extends'],path,i);
|
|
123274
|
+
}
|
|
123275
|
+
// validate a value against a type definition
|
|
123276
|
+
function checkType(type,value){
|
|
123277
|
+
if(type){
|
|
123278
|
+
if(typeof type == 'string' && type != 'any' &&
|
|
123279
|
+
(type == 'null' ? value !== null : typeof value != type) &&
|
|
123280
|
+
!(value instanceof Array && type == 'array') &&
|
|
123281
|
+
!(value instanceof Date && type == 'date') &&
|
|
123282
|
+
!(type == 'integer' && value%1===0)){
|
|
123283
|
+
return [{property:path,message:(typeof value) + " value found, but a " + type + " is required"}];
|
|
123284
|
+
}
|
|
123285
|
+
if(type instanceof Array){
|
|
123286
|
+
var unionErrors=[];
|
|
123287
|
+
for(var j = 0; j < type.length; j++){ // a union type
|
|
123288
|
+
if(!(unionErrors=checkType(type[j],value)).length){
|
|
123289
|
+
break;
|
|
123290
|
+
}
|
|
123291
|
+
}
|
|
123292
|
+
if(unionErrors.length){
|
|
123293
|
+
return unionErrors;
|
|
123294
|
+
}
|
|
123295
|
+
}else if(typeof type == 'object'){
|
|
123296
|
+
var priorErrors = errors;
|
|
123297
|
+
errors = [];
|
|
123298
|
+
checkProp(value,type,path);
|
|
123299
|
+
var theseErrors = errors;
|
|
123300
|
+
errors = priorErrors;
|
|
123301
|
+
return theseErrors;
|
|
123302
|
+
}
|
|
123303
|
+
}
|
|
123304
|
+
return [];
|
|
123305
|
+
}
|
|
123306
|
+
if(value === undefined){
|
|
123307
|
+
if(schema.required){
|
|
123308
|
+
addError("is missing and it is required");
|
|
123309
|
+
}
|
|
123310
|
+
}else{
|
|
123311
|
+
errors = errors.concat(checkType(getType(schema),value));
|
|
123312
|
+
if(schema.disallow && !checkType(schema.disallow,value).length){
|
|
123313
|
+
addError(" disallowed value was matched");
|
|
123314
|
+
}
|
|
123315
|
+
if(value !== null){
|
|
123316
|
+
if(value instanceof Array){
|
|
123317
|
+
if(schema.items){
|
|
123318
|
+
var itemsIsArray = schema.items instanceof Array;
|
|
123319
|
+
var propDef = schema.items;
|
|
123320
|
+
for (i = 0, l = value.length; i < l; i += 1) {
|
|
123321
|
+
if (itemsIsArray)
|
|
123322
|
+
propDef = schema.items[i];
|
|
123323
|
+
if (options.coerce)
|
|
123324
|
+
value[i] = options.coerce(value[i], propDef);
|
|
123325
|
+
errors.concat(checkProp(value[i],propDef,path,i));
|
|
123326
|
+
}
|
|
123327
|
+
}
|
|
123328
|
+
if(schema.minItems && value.length < schema.minItems){
|
|
123329
|
+
addError("There must be a minimum of " + schema.minItems + " in the array");
|
|
123330
|
+
}
|
|
123331
|
+
if(schema.maxItems && value.length > schema.maxItems){
|
|
123332
|
+
addError("There must be a maximum of " + schema.maxItems + " in the array");
|
|
123333
|
+
}
|
|
123334
|
+
}else if(schema.properties || schema.additionalProperties){
|
|
123335
|
+
errors.concat(checkObj(value, schema.properties, path, schema.additionalProperties));
|
|
123336
|
+
}
|
|
123337
|
+
if(schema.pattern && typeof value == 'string' && !value.match(schema.pattern)){
|
|
123338
|
+
addError("does not match the regex pattern " + schema.pattern);
|
|
123339
|
+
}
|
|
123340
|
+
if(schema.maxLength && typeof value == 'string' && value.length > schema.maxLength){
|
|
123341
|
+
addError("may only be " + schema.maxLength + " characters long");
|
|
123342
|
+
}
|
|
123343
|
+
if(schema.minLength && typeof value == 'string' && value.length < schema.minLength){
|
|
123344
|
+
addError("must be at least " + schema.minLength + " characters long");
|
|
123345
|
+
}
|
|
123346
|
+
if(typeof schema.minimum !== undefined && typeof value == typeof schema.minimum &&
|
|
123347
|
+
schema.minimum > value){
|
|
123348
|
+
addError("must have a minimum value of " + schema.minimum);
|
|
123349
|
+
}
|
|
123350
|
+
if(typeof schema.maximum !== undefined && typeof value == typeof schema.maximum &&
|
|
123351
|
+
schema.maximum < value){
|
|
123352
|
+
addError("must have a maximum value of " + schema.maximum);
|
|
123353
|
+
}
|
|
123354
|
+
if(schema['enum']){
|
|
123355
|
+
var enumer = schema['enum'];
|
|
123356
|
+
l = enumer.length;
|
|
123357
|
+
var found;
|
|
123358
|
+
for(var j = 0; j < l; j++){
|
|
123359
|
+
if(enumer[j]===value){
|
|
123360
|
+
found=1;
|
|
123361
|
+
break;
|
|
123362
|
+
}
|
|
123363
|
+
}
|
|
123364
|
+
if(!found){
|
|
123365
|
+
addError("does not have a value in the enumeration " + enumer.join(", "));
|
|
123366
|
+
}
|
|
123367
|
+
}
|
|
123368
|
+
if(typeof schema.maxDecimal == 'number' &&
|
|
123369
|
+
(value.toString().match(new RegExp("\\.[0-9]{" + (schema.maxDecimal + 1) + ",}")))){
|
|
123370
|
+
addError("may only have " + schema.maxDecimal + " digits of decimal places");
|
|
123371
|
+
}
|
|
123372
|
+
}
|
|
123373
|
+
}
|
|
123374
|
+
return null;
|
|
123375
|
+
}
|
|
123376
|
+
// validate an object against a schema
|
|
123377
|
+
function checkObj(instance,objTypeDef,path,additionalProp){
|
|
123378
|
+
|
|
123379
|
+
if(typeof objTypeDef =='object'){
|
|
123380
|
+
if(typeof instance != 'object' || instance instanceof Array){
|
|
123381
|
+
errors.push({property:path,message:"an object is required"});
|
|
123382
|
+
}
|
|
123383
|
+
|
|
123384
|
+
for(var i in objTypeDef){
|
|
123385
|
+
if(objTypeDef.hasOwnProperty(i)){
|
|
123386
|
+
var value = instance[i];
|
|
123387
|
+
// skip _not_ specified properties
|
|
123388
|
+
if (value === undefined && options.existingOnly) continue;
|
|
123389
|
+
var propDef = objTypeDef[i];
|
|
123390
|
+
// set default
|
|
123391
|
+
if(value === undefined && propDef["default"]){
|
|
123392
|
+
value = instance[i] = propDef["default"];
|
|
123393
|
+
}
|
|
123394
|
+
if(options.coerce && i in instance){
|
|
123395
|
+
value = instance[i] = options.coerce(value, propDef);
|
|
123396
|
+
}
|
|
123397
|
+
checkProp(value,propDef,path,i);
|
|
123398
|
+
}
|
|
123399
|
+
}
|
|
123400
|
+
}
|
|
123401
|
+
for(i in instance){
|
|
123402
|
+
if(instance.hasOwnProperty(i) && !(i.charAt(0) == '_' && i.charAt(1) == '_') && objTypeDef && !objTypeDef[i] && additionalProp===false){
|
|
123403
|
+
if (options.filter) {
|
|
123404
|
+
delete instance[i];
|
|
123405
|
+
continue;
|
|
123406
|
+
} else {
|
|
123407
|
+
errors.push({property:path,message:(typeof value) + "The property " + i +
|
|
123408
|
+
" is not defined in the schema and the schema does not allow additional properties"});
|
|
123409
|
+
}
|
|
123410
|
+
}
|
|
123411
|
+
var requires = objTypeDef && objTypeDef[i] && objTypeDef[i].requires;
|
|
123412
|
+
if(requires && !(requires in instance)){
|
|
123413
|
+
errors.push({property:path,message:"the presence of the property " + i + " requires that " + requires + " also be present"});
|
|
123414
|
+
}
|
|
123415
|
+
value = instance[i];
|
|
123416
|
+
if(additionalProp && (!(objTypeDef && typeof objTypeDef == 'object') || !(i in objTypeDef))){
|
|
123417
|
+
if(options.coerce){
|
|
123418
|
+
value = instance[i] = options.coerce(value, additionalProp);
|
|
123419
|
+
}
|
|
123420
|
+
checkProp(value,additionalProp,path,i);
|
|
123421
|
+
}
|
|
123422
|
+
if(!_changing && value && value.$schema){
|
|
123423
|
+
errors = errors.concat(checkProp(value,value.$schema,path,i));
|
|
123424
|
+
}
|
|
123425
|
+
}
|
|
123426
|
+
return errors;
|
|
123427
|
+
}
|
|
123428
|
+
if(schema){
|
|
123429
|
+
checkProp(instance,schema,'',_changing || '');
|
|
123430
|
+
}
|
|
123431
|
+
if(!_changing && instance && instance.$schema){
|
|
123432
|
+
checkProp(instance,instance.$schema,'','');
|
|
123433
|
+
}
|
|
123434
|
+
return {valid:!errors.length,errors:errors};
|
|
123435
|
+
};
|
|
123436
|
+
exports.mustBeValid = function(result){
|
|
123437
|
+
// summary:
|
|
123438
|
+
// This checks to ensure that the result is valid and will throw an appropriate error message if it is not
|
|
123439
|
+
// result: the result returned from checkPropertyChange or validate
|
|
123440
|
+
if(!result.valid){
|
|
123441
|
+
throw new TypeError(result.errors.map(function(error){return "for property " + error.property + ': ' + error.message;}).join(", \n"));
|
|
123442
|
+
}
|
|
123443
|
+
}
|
|
123444
|
+
|
|
123445
|
+
return exports;
|
|
123446
|
+
}));
|
|
123447
123447
|
|
|
123448
123448
|
|
|
123449
123449
|
/***/ }),
|
|
@@ -128540,7 +128540,7 @@ Emoji.replace = function replace (str, replacement, cleanSpaces) {
|
|
|
128540
128540
|
|
|
128541
128541
|
var replaced = words.map(function(word, idx) {
|
|
128542
128542
|
var emoji = Emoji.findByCode(word);
|
|
128543
|
-
|
|
128543
|
+
|
|
128544
128544
|
if (emoji && cleanSpaces && words[idx + 1] === ' ') {
|
|
128545
128545
|
words[idx + 1] = '';
|
|
128546
128546
|
}
|
|
@@ -128856,7 +128856,7 @@ function compare (a, b) {
|
|
|
128856
128856
|
}
|
|
128857
128857
|
|
|
128858
128858
|
function generateBase (httpMethod, base_uri, params) {
|
|
128859
|
-
// adapted from https://dev.twitter.com/docs/auth/oauth and
|
|
128859
|
+
// adapted from https://dev.twitter.com/docs/auth/oauth and
|
|
128860
128860
|
// https://dev.twitter.com/docs/auth/creating-signature
|
|
128861
128861
|
|
|
128862
128862
|
// Parameter normalization
|
|
@@ -145827,7 +145827,7 @@ function fileSync(options) {
|
|
|
145827
145827
|
const name = tmpNameSync(opts);
|
|
145828
145828
|
var fd = fs.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
|
|
145829
145829
|
if (opts.discardDescriptor) {
|
|
145830
|
-
fs.closeSync(fd);
|
|
145830
|
+
fs.closeSync(fd);
|
|
145831
145831
|
fd = undefined;
|
|
145832
145832
|
}
|
|
145833
145833
|
|
|
@@ -147526,4 +147526,4 @@ module.exports = require("dns");
|
|
|
147526
147526
|
module.exports = require("domain");
|
|
147527
147527
|
|
|
147528
147528
|
/***/ })
|
|
147529
|
-
/******/ ]);
|
|
147529
|
+
/******/ ]);
|