microsoft-graph 3.4.4 → 3.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/services/addressManipulation.d.ts.map +1 -1
- package/dist/cjs/services/addressManipulation.js +6 -0
- package/dist/cjs/services/cartesianAddress.d.ts.map +1 -1
- package/dist/cjs/services/cartesianAddress.js +18 -10
- package/dist/esm/services/addressManipulation.d.ts.map +1 -1
- package/dist/esm/services/addressManipulation.js +6 -0
- package/dist/esm/services/cartesianAddress.d.ts.map +1 -1
- package/dist/esm/services/cartesianAddress.js +18 -10
- package/docs/api/BadRequestError.md +4 -4
- package/docs/api/BadTemplateError.md +4 -4
- package/docs/api/BandwidthLimitExceededError.md +4 -4
- package/docs/api/ConflictError.md +4 -4
- package/docs/api/EnvironmentVariableMissingError.md +4 -4
- package/docs/api/ForbiddenError.md +4 -4
- package/docs/api/GatewayTimeoutError.md +4 -4
- package/docs/api/GoneError.md +4 -4
- package/docs/api/InconsistentContextError.md +4 -4
- package/docs/api/InsufficientStorageError.md +4 -4
- package/docs/api/InternalServerError.md +4 -4
- package/docs/api/InvalidArgumentError.md +4 -4
- package/docs/api/InvalidOperationError.md +4 -4
- package/docs/api/LengthRequiredError.md +4 -4
- package/docs/api/LockedError.md +4 -4
- package/docs/api/MethodNotAllowedError.md +4 -4
- package/docs/api/NeverError.md +4 -4
- package/docs/api/NotAcceptableError.md +4 -4
- package/docs/api/NotFoundError.md +4 -4
- package/docs/api/NotImplementedError.md +4 -4
- package/docs/api/PaymentRequiredError.md +4 -4
- package/docs/api/PreconditionFailedError.md +4 -4
- package/docs/api/ProtocolError.md +4 -4
- package/docs/api/RequestEntityTooLargeError.md +4 -4
- package/docs/api/RequestFailedError.md +4 -4
- package/docs/api/RequestTimeoutError.md +4 -4
- package/docs/api/RequestedRangeNotSatisfiableError.md +4 -4
- package/docs/api/ServiceUnavailableError.md +4 -4
- package/docs/api/TooManyRequestsError.md +4 -4
- package/docs/api/UnauthorizedError.md +4 -4
- package/docs/api/UnprocessableEntityError.md +4 -4
- package/docs/api/UnsupportedAddressTypeError.md +4 -4
- package/docs/api/UnsupportedMediaTypeError.md +4 -4
- package/docs/api/addressManipulation.md +2 -2
- package/docs/api/cartesianAddress.md +1 -1
- package/docs/api/streamDriveItemContent.md +2 -2
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addressManipulation.d.ts","sourceRoot":"","sources":["../../../src/services/addressManipulation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAuD,iBAAiB,EAA+B,MAAM,sBAAsB,CAAC;AAGtK,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAuBnE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,UAAQ,GAAG,OAAO,CAE9E;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,iBAAiB,CAcpE;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,iBAAiB,EAAE,UAAU,UAAQ,GAAG,OAAO,CAsBzF;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CAGjE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CAGhE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAS5D;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAS3D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAS/D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAA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J;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CA0ClJ;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,GAAG,gBAAgB,CAMjK;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,GAAG,gBAAgB,CAMnK"}
|
|
@@ -434,6 +434,12 @@ function superAddress(address, skipRows = 0, takeRows = null, skipCols = 0, take
|
|
|
434
434
|
takeCols = Number.POSITIVE_INFINITY;
|
|
435
435
|
}
|
|
436
436
|
const { ax, bx, ay, by } = (0, cartesianAddress_ts_1.addressToCartesian)(address);
|
|
437
|
+
if (takeRows === Number.POSITIVE_INFINITY && skipRows > by - ay) {
|
|
438
|
+
throw new InvalidArgumentError_ts_1.default(`skipRows (${skipRows}) exceeds the number of rows in the address (${by - ay + 1}). Skip less or set a take.`);
|
|
439
|
+
}
|
|
440
|
+
if (takeCols === Number.POSITIVE_INFINITY && skipCols > bx - ax) {
|
|
441
|
+
throw new InvalidArgumentError_ts_1.default(`skipCols (${skipCols}) exceeds the number of columns in the address (${bx - ax + 1}). Skip less or set a take.`);
|
|
442
|
+
}
|
|
437
443
|
const [startRow, endRow] = superSlice(ay, by, skipRows, takeRows);
|
|
438
444
|
const [startCol, endCol] = superSlice(ax, bx, skipCols, takeCols);
|
|
439
445
|
return (0, cartesianAddress_ts_1.cartesianToAddress)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartesianAddress.d.ts","sourceRoot":"","sources":["../../../src/services/cartesianAddress.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAIxD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"cartesianAddress.d.ts","sourceRoot":"","sources":["../../../src/services/cartesianAddress.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAIxD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,CAsB9D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,GAAG,OAAO,CA0BzE"}
|
|
@@ -25,11 +25,15 @@ function addressToCartesian(address) {
|
|
|
25
25
|
const ay = (0, addressOffset_ts_1.rowAddressToOffset)(startRow);
|
|
26
26
|
const bx = (0, addressOffset_ts_1.columnAddressToOffset)(endColumn);
|
|
27
27
|
const by = (0, addressOffset_ts_1.rowAddressToOffset)(endRow);
|
|
28
|
-
if (ax > bx) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
if (ax > bx || ay > by) {
|
|
29
|
+
let error = `Invalid address '${address}'. `;
|
|
30
|
+
if (ax > bx) {
|
|
31
|
+
error += `Start column (${startColumn}) is after end column (${endColumn}). `;
|
|
32
|
+
}
|
|
33
|
+
if (ay > by) {
|
|
34
|
+
error += `Start row (${startRow}) is after end row (${endRow}).`;
|
|
35
|
+
}
|
|
36
|
+
throw new InvalidArgumentError_ts_1.default(error);
|
|
33
37
|
}
|
|
34
38
|
return { ax, ay, bx, by };
|
|
35
39
|
}
|
|
@@ -50,11 +54,15 @@ function cartesianToAddress({ ax, ay, bx, by }) {
|
|
|
50
54
|
endRow,
|
|
51
55
|
endColumn,
|
|
52
56
|
});
|
|
53
|
-
if (ax > bx) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
if (ax > bx || ay > by) {
|
|
58
|
+
let error = `Invalid address '${address}'. `;
|
|
59
|
+
if (ax > bx) {
|
|
60
|
+
error += `Start column (${startColumn}) is after end column (${endColumn}). `;
|
|
61
|
+
}
|
|
62
|
+
if (ay > by) {
|
|
63
|
+
error += `Start row (${startRow}) is after end row (${endRow}).`;
|
|
64
|
+
}
|
|
65
|
+
throw new InvalidArgumentError_ts_1.default(error);
|
|
58
66
|
}
|
|
59
67
|
return address;
|
|
60
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addressManipulation.d.ts","sourceRoot":"","sources":["../../../src/services/addressManipulation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAuD,iBAAiB,EAA+B,MAAM,sBAAsB,CAAC;AAGtK,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAuBnE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,UAAQ,GAAG,OAAO,CAE9E;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,iBAAiB,CAcpE;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,iBAAiB,EAAE,UAAU,UAAQ,GAAG,OAAO,CAsBzF;AAED;;;;G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GzD;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAG5D;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAuCzF;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CA+ChJ;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CA0ClJ;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,GAAG,gBAAgB,CAMjK;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,EAAE,QAAQ,SAAI,EAAE,QAAQ,GAAE,MAAM,GAAG,IAAW,GAAG,gBAAgB,CAMnK"}
|
|
@@ -405,6 +405,12 @@ export function superAddress(address, skipRows = 0, takeRows = null, skipCols =
|
|
|
405
405
|
takeCols = Number.POSITIVE_INFINITY;
|
|
406
406
|
}
|
|
407
407
|
const { ax, bx, ay, by } = addressToCartesian(address);
|
|
408
|
+
if (takeRows === Number.POSITIVE_INFINITY && skipRows > by - ay) {
|
|
409
|
+
throw new InvalidArgumentError(`skipRows (${skipRows}) exceeds the number of rows in the address (${by - ay + 1}). Skip less or set a take.`);
|
|
410
|
+
}
|
|
411
|
+
if (takeCols === Number.POSITIVE_INFINITY && skipCols > bx - ax) {
|
|
412
|
+
throw new InvalidArgumentError(`skipCols (${skipCols}) exceeds the number of columns in the address (${bx - ax + 1}). Skip less or set a take.`);
|
|
413
|
+
}
|
|
408
414
|
const [startRow, endRow] = superSlice(ay, by, skipRows, takeRows);
|
|
409
415
|
const [startCol, endCol] = superSlice(ax, bx, skipCols, takeCols);
|
|
410
416
|
return cartesianToAddress({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartesianAddress.d.ts","sourceRoot":"","sources":["../../../src/services/cartesianAddress.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAIxD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"cartesianAddress.d.ts","sourceRoot":"","sources":["../../../src/services/cartesianAddress.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAIxD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,CAsB9D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,GAAG,OAAO,CA0BzE"}
|
|
@@ -18,11 +18,15 @@ export function addressToCartesian(address) {
|
|
|
18
18
|
const ay = rowAddressToOffset(startRow);
|
|
19
19
|
const bx = columnAddressToOffset(endColumn);
|
|
20
20
|
const by = rowAddressToOffset(endRow);
|
|
21
|
-
if (ax > bx) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
if (ax > bx || ay > by) {
|
|
22
|
+
let error = `Invalid address '${address}'. `;
|
|
23
|
+
if (ax > bx) {
|
|
24
|
+
error += `Start column (${startColumn}) is after end column (${endColumn}). `;
|
|
25
|
+
}
|
|
26
|
+
if (ay > by) {
|
|
27
|
+
error += `Start row (${startRow}) is after end row (${endRow}).`;
|
|
28
|
+
}
|
|
29
|
+
throw new InvalidArgumentError(error);
|
|
26
30
|
}
|
|
27
31
|
return { ax, ay, bx, by };
|
|
28
32
|
}
|
|
@@ -43,11 +47,15 @@ export function cartesianToAddress({ ax, ay, bx, by }) {
|
|
|
43
47
|
endRow,
|
|
44
48
|
endColumn,
|
|
45
49
|
});
|
|
46
|
-
if (ax > bx) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
if (ax > bx || ay > by) {
|
|
51
|
+
let error = `Invalid address '${address}'. `;
|
|
52
|
+
if (ax > bx) {
|
|
53
|
+
error += `Start column (${startColumn}) is after end column (${endColumn}). `;
|
|
54
|
+
}
|
|
55
|
+
if (ay > by) {
|
|
56
|
+
error += `Start row (${startRow}) is after end row (${endRow}).`;
|
|
57
|
+
}
|
|
58
|
+
throw new InvalidArgumentError(error);
|
|
51
59
|
}
|
|
52
60
|
return address;
|
|
53
61
|
}
|
|
@@ -82,7 +82,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
82
82
|
|
|
83
83
|
> `static` **stackTraceLimit**: `number`
|
|
84
84
|
|
|
85
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
85
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
86
86
|
|
|
87
87
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
88
88
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -104,7 +104,7 @@ not capture any frames.
|
|
|
104
104
|
|
|
105
105
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
106
106
|
|
|
107
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
107
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
108
108
|
|
|
109
109
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
110
110
|
a string representing the location in the code at which
|
|
@@ -169,14 +169,14 @@ a();
|
|
|
169
169
|
|
|
170
170
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
171
171
|
|
|
172
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
172
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
173
173
|
|
|
174
174
|
###### Parameters
|
|
175
175
|
|
|
176
176
|
| Parameter | Type |
|
|
177
177
|
| ------ | ------ |
|
|
178
178
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
179
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
179
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
180
180
|
|
|
181
181
|
###### Returns
|
|
182
182
|
|
|
@@ -82,7 +82,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
82
82
|
|
|
83
83
|
> `static` **stackTraceLimit**: `number`
|
|
84
84
|
|
|
85
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
85
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
86
86
|
|
|
87
87
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
88
88
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -104,7 +104,7 @@ not capture any frames.
|
|
|
104
104
|
|
|
105
105
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
106
106
|
|
|
107
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
107
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
108
108
|
|
|
109
109
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
110
110
|
a string representing the location in the code at which
|
|
@@ -169,14 +169,14 @@ a();
|
|
|
169
169
|
|
|
170
170
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
171
171
|
|
|
172
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
172
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
173
173
|
|
|
174
174
|
###### Parameters
|
|
175
175
|
|
|
176
176
|
| Parameter | Type |
|
|
177
177
|
| ------ | ------ |
|
|
178
178
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
179
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
179
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
180
180
|
|
|
181
181
|
###### Returns
|
|
182
182
|
|
|
@@ -82,7 +82,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
82
82
|
|
|
83
83
|
> `static` **stackTraceLimit**: `number`
|
|
84
84
|
|
|
85
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
85
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
86
86
|
|
|
87
87
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
88
88
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -104,7 +104,7 @@ not capture any frames.
|
|
|
104
104
|
|
|
105
105
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
106
106
|
|
|
107
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
107
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
108
108
|
|
|
109
109
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
110
110
|
a string representing the location in the code at which
|
|
@@ -169,14 +169,14 @@ a();
|
|
|
169
169
|
|
|
170
170
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
171
171
|
|
|
172
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
172
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
173
173
|
|
|
174
174
|
###### Parameters
|
|
175
175
|
|
|
176
176
|
| Parameter | Type |
|
|
177
177
|
| ------ | ------ |
|
|
178
178
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
179
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
179
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
180
180
|
|
|
181
181
|
###### Returns
|
|
182
182
|
|
|
@@ -86,7 +86,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
86
86
|
|
|
87
87
|
> `static` **stackTraceLimit**: `number`
|
|
88
88
|
|
|
89
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
89
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
90
90
|
|
|
91
91
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
92
92
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -108,7 +108,7 @@ not capture any frames.
|
|
|
108
108
|
|
|
109
109
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
110
110
|
|
|
111
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
111
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
112
112
|
|
|
113
113
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
114
114
|
a string representing the location in the code at which
|
|
@@ -173,14 +173,14 @@ a();
|
|
|
173
173
|
|
|
174
174
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
175
175
|
|
|
176
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
176
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
177
177
|
|
|
178
178
|
###### Parameters
|
|
179
179
|
|
|
180
180
|
| Parameter | Type |
|
|
181
181
|
| ------ | ------ |
|
|
182
182
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
183
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
183
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
184
184
|
|
|
185
185
|
###### Returns
|
|
186
186
|
|
|
@@ -82,7 +82,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
82
82
|
|
|
83
83
|
> `static` **stackTraceLimit**: `number`
|
|
84
84
|
|
|
85
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
85
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
86
86
|
|
|
87
87
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
88
88
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -104,7 +104,7 @@ not capture any frames.
|
|
|
104
104
|
|
|
105
105
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
106
106
|
|
|
107
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
107
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
108
108
|
|
|
109
109
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
110
110
|
a string representing the location in the code at which
|
|
@@ -169,14 +169,14 @@ a();
|
|
|
169
169
|
|
|
170
170
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
171
171
|
|
|
172
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
172
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
173
173
|
|
|
174
174
|
###### Parameters
|
|
175
175
|
|
|
176
176
|
| Parameter | Type |
|
|
177
177
|
| ------ | ------ |
|
|
178
178
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
179
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
179
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
180
180
|
|
|
181
181
|
###### Returns
|
|
182
182
|
|
|
@@ -84,7 +84,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
84
84
|
|
|
85
85
|
> `static` **stackTraceLimit**: `number`
|
|
86
86
|
|
|
87
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
87
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
88
88
|
|
|
89
89
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
90
90
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -106,7 +106,7 @@ not capture any frames.
|
|
|
106
106
|
|
|
107
107
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
108
108
|
|
|
109
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
109
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
110
110
|
|
|
111
111
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
112
112
|
a string representing the location in the code at which
|
|
@@ -171,14 +171,14 @@ a();
|
|
|
171
171
|
|
|
172
172
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
173
173
|
|
|
174
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
174
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
175
175
|
|
|
176
176
|
###### Parameters
|
|
177
177
|
|
|
178
178
|
| Parameter | Type |
|
|
179
179
|
| ------ | ------ |
|
|
180
180
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
181
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
181
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
182
182
|
|
|
183
183
|
###### Returns
|
|
184
184
|
|
|
@@ -82,7 +82,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
82
82
|
|
|
83
83
|
> `static` **stackTraceLimit**: `number`
|
|
84
84
|
|
|
85
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
85
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
86
86
|
|
|
87
87
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
88
88
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -104,7 +104,7 @@ not capture any frames.
|
|
|
104
104
|
|
|
105
105
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
106
106
|
|
|
107
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
107
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
108
108
|
|
|
109
109
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
110
110
|
a string representing the location in the code at which
|
|
@@ -169,14 +169,14 @@ a();
|
|
|
169
169
|
|
|
170
170
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
171
171
|
|
|
172
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
172
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
173
173
|
|
|
174
174
|
###### Parameters
|
|
175
175
|
|
|
176
176
|
| Parameter | Type |
|
|
177
177
|
| ------ | ------ |
|
|
178
178
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
179
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
179
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
180
180
|
|
|
181
181
|
###### Returns
|
|
182
182
|
|
package/docs/api/GoneError.md
CHANGED
|
@@ -82,7 +82,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
82
82
|
|
|
83
83
|
> `static` **stackTraceLimit**: `number`
|
|
84
84
|
|
|
85
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
85
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
86
86
|
|
|
87
87
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
88
88
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -104,7 +104,7 @@ not capture any frames.
|
|
|
104
104
|
|
|
105
105
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
106
106
|
|
|
107
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
107
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
108
108
|
|
|
109
109
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
110
110
|
a string representing the location in the code at which
|
|
@@ -169,14 +169,14 @@ a();
|
|
|
169
169
|
|
|
170
170
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
171
171
|
|
|
172
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
172
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
173
173
|
|
|
174
174
|
###### Parameters
|
|
175
175
|
|
|
176
176
|
| Parameter | Type |
|
|
177
177
|
| ------ | ------ |
|
|
178
178
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
179
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
179
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
180
180
|
|
|
181
181
|
###### Returns
|
|
182
182
|
|
|
@@ -82,7 +82,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
82
82
|
|
|
83
83
|
> `static` **stackTraceLimit**: `number`
|
|
84
84
|
|
|
85
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
85
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
86
86
|
|
|
87
87
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
88
88
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -104,7 +104,7 @@ not capture any frames.
|
|
|
104
104
|
|
|
105
105
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
106
106
|
|
|
107
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
107
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
108
108
|
|
|
109
109
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
110
110
|
a string representing the location in the code at which
|
|
@@ -169,14 +169,14 @@ a();
|
|
|
169
169
|
|
|
170
170
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
171
171
|
|
|
172
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
172
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
173
173
|
|
|
174
174
|
###### Parameters
|
|
175
175
|
|
|
176
176
|
| Parameter | Type |
|
|
177
177
|
| ------ | ------ |
|
|
178
178
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
179
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
179
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
180
180
|
|
|
181
181
|
###### Returns
|
|
182
182
|
|
|
@@ -82,7 +82,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
82
82
|
|
|
83
83
|
> `static` **stackTraceLimit**: `number`
|
|
84
84
|
|
|
85
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
85
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
86
86
|
|
|
87
87
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
88
88
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -104,7 +104,7 @@ not capture any frames.
|
|
|
104
104
|
|
|
105
105
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
106
106
|
|
|
107
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
107
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
108
108
|
|
|
109
109
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
110
110
|
a string representing the location in the code at which
|
|
@@ -169,14 +169,14 @@ a();
|
|
|
169
169
|
|
|
170
170
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
171
171
|
|
|
172
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
172
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
173
173
|
|
|
174
174
|
###### Parameters
|
|
175
175
|
|
|
176
176
|
| Parameter | Type |
|
|
177
177
|
| ------ | ------ |
|
|
178
178
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
179
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
179
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
180
180
|
|
|
181
181
|
###### Returns
|
|
182
182
|
|
|
@@ -82,7 +82,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
82
82
|
|
|
83
83
|
> `static` **stackTraceLimit**: `number`
|
|
84
84
|
|
|
85
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
85
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
86
86
|
|
|
87
87
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
88
88
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -104,7 +104,7 @@ not capture any frames.
|
|
|
104
104
|
|
|
105
105
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
106
106
|
|
|
107
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
107
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
108
108
|
|
|
109
109
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
110
110
|
a string representing the location in the code at which
|
|
@@ -169,14 +169,14 @@ a();
|
|
|
169
169
|
|
|
170
170
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
171
171
|
|
|
172
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
172
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
173
173
|
|
|
174
174
|
###### Parameters
|
|
175
175
|
|
|
176
176
|
| Parameter | Type |
|
|
177
177
|
| ------ | ------ |
|
|
178
178
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
179
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
179
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
180
180
|
|
|
181
181
|
###### Returns
|
|
182
182
|
|
|
@@ -82,7 +82,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
82
82
|
|
|
83
83
|
> `static` **stackTraceLimit**: `number`
|
|
84
84
|
|
|
85
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
85
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
86
86
|
|
|
87
87
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
88
88
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -104,7 +104,7 @@ not capture any frames.
|
|
|
104
104
|
|
|
105
105
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
106
106
|
|
|
107
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
107
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
108
108
|
|
|
109
109
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
110
110
|
a string representing the location in the code at which
|
|
@@ -169,14 +169,14 @@ a();
|
|
|
169
169
|
|
|
170
170
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
171
171
|
|
|
172
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
172
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
173
173
|
|
|
174
174
|
###### Parameters
|
|
175
175
|
|
|
176
176
|
| Parameter | Type |
|
|
177
177
|
| ------ | ------ |
|
|
178
178
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
179
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
179
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
180
180
|
|
|
181
181
|
###### Returns
|
|
182
182
|
|
|
@@ -82,7 +82,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
|
|
82
82
|
|
|
83
83
|
> `static` **stackTraceLimit**: `number`
|
|
84
84
|
|
|
85
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
85
|
+
Defined in: node\_modules/@types/node/globals.d.ts:162
|
|
86
86
|
|
|
87
87
|
The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
88
88
|
collected by a stack trace (whether generated by `new Error().stack` or
|
|
@@ -104,7 +104,7 @@ not capture any frames.
|
|
|
104
104
|
|
|
105
105
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
106
106
|
|
|
107
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
107
|
+
Defined in: node\_modules/@types/node/globals.d.ts:146
|
|
108
108
|
|
|
109
109
|
Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
110
110
|
a string representing the location in the code at which
|
|
@@ -169,14 +169,14 @@ a();
|
|
|
169
169
|
|
|
170
170
|
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
|
171
171
|
|
|
172
|
-
Defined in: node\_modules/@types/node/globals.d.ts:
|
|
172
|
+
Defined in: node\_modules/@types/node/globals.d.ts:150
|
|
173
173
|
|
|
174
174
|
###### Parameters
|
|
175
175
|
|
|
176
176
|
| Parameter | Type |
|
|
177
177
|
| ------ | ------ |
|
|
178
178
|
| `err` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
|
179
|
-
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/
|
|
179
|
+
| `stackTraces` | [`CallSite`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts#L171)[] |
|
|
180
180
|
|
|
181
181
|
###### Returns
|
|
182
182
|
|