microsoft-graph 3.4.3 → 3.4.5
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 +4 -4
- package/dist/cjs/services/addressManipulation.d.ts.map +1 -1
- package/dist/cjs/services/addressManipulation.js +4 -4
- 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 +4 -4
- package/dist/esm/services/addressManipulation.d.ts.map +1 -1
- package/dist/esm/services/addressManipulation.js +4 -4
- 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 +8 -8
- package/docs/api/cartesianAddress.md +1 -1
- package/docs/api/streamDriveItemContent.md +2 -2
- package/package.json +6 -6
|
@@ -168,7 +168,7 @@ export declare function cellToRangeAddress(cell: CellAddress, rows: number, cols
|
|
|
168
168
|
* subaddress("A1:D10", 0, -1); // All but last row: "A1:D9"
|
|
169
169
|
* subaddress("A1:D10", 0, Infinity, -2, 1); // Second last column: "C1:C10"
|
|
170
170
|
*/
|
|
171
|
-
export declare function subAddress(address: Address, skipRows?: number, takeRows?: number |
|
|
171
|
+
export declare function subAddress(address: Address, skipRows?: number, takeRows?: number | null, skipCols?: number, takeCols?: number | null): Address;
|
|
172
172
|
/**
|
|
173
173
|
* Returns a super-address that extends the given address by skipping/taking rows/columns, possibly outside the original bounds.
|
|
174
174
|
* Negative skip moves the start above/left of the original range (not from the end).
|
|
@@ -183,7 +183,7 @@ export declare function subAddress(address: Address, skipRows?: number, takeRows
|
|
|
183
183
|
* @example
|
|
184
184
|
* superAddress("B2:C3", -1, 4, -1, 4) // "A1:D5"
|
|
185
185
|
*/
|
|
186
|
-
export declare function superAddress(address: Address, skipRows?: number, takeRows?: number |
|
|
186
|
+
export declare function superAddress(address: Address, skipRows?: number, takeRows?: number | null, skipCols?: number, takeCols?: number | null): Address;
|
|
187
187
|
/**
|
|
188
188
|
* Extracts a sub-range from a WorkbookRangeRef using skip/take semantics.
|
|
189
189
|
* @param rangeRef Range reference to extract the sub-range from.
|
|
@@ -194,7 +194,7 @@ export declare function superAddress(address: Address, skipRows?: number, takeRo
|
|
|
194
194
|
* @returns Extracted sub-range reference.
|
|
195
195
|
* @throws InvalidArgumentError if the requested rows or columns exceed the available range.
|
|
196
196
|
*/
|
|
197
|
-
export declare function subRange(rangeRef: WorkbookRangeRef, skipRows?: number, takeRows?: number |
|
|
197
|
+
export declare function subRange(rangeRef: WorkbookRangeRef, skipRows?: number, takeRows?: number | null, skipCols?: number, takeCols?: number | null): WorkbookRangeRef;
|
|
198
198
|
/**
|
|
199
199
|
* Returns a super-range from a WorkbookRangeRef using skip/take semantics, possibly extending outside the original bounds.
|
|
200
200
|
* Negative skip moves the start above/left of the original range (not from the end).
|
|
@@ -206,5 +206,5 @@ export declare function subRange(rangeRef: WorkbookRangeRef, skipRows?: number,
|
|
|
206
206
|
* @param takeCols Number of columns to take after skipping. If negative, excludes from the end. Default Infinity.
|
|
207
207
|
* @returns Extended super-range reference.
|
|
208
208
|
*/
|
|
209
|
-
export declare function superRange(rangeRef: WorkbookRangeRef, skipRows?: number, takeRows?: number |
|
|
209
|
+
export declare function superRange(rangeRef: WorkbookRangeRef, skipRows?: number, takeRows?: number | null, skipCols?: number, takeCols?: number | null): WorkbookRangeRef;
|
|
210
210
|
//# sourceMappingURL=addressManipulation.d.ts.map
|
|
@@ -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,CA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G;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,CAkClJ;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"}
|
|
@@ -369,7 +369,7 @@ function cellToRangeAddress(cell, rows, cols) {
|
|
|
369
369
|
* subaddress("A1:D10", 0, -1); // All but last row: "A1:D9"
|
|
370
370
|
* subaddress("A1:D10", 0, Infinity, -2, 1); // Second last column: "C1:C10"
|
|
371
371
|
*/
|
|
372
|
-
function subAddress(address, skipRows = 0, takeRows =
|
|
372
|
+
function subAddress(address, skipRows = 0, takeRows = null, skipCols = 0, takeCols = null) {
|
|
373
373
|
if (takeRows === undefined || takeRows === null) {
|
|
374
374
|
takeRows = Number.POSITIVE_INFINITY;
|
|
375
375
|
}
|
|
@@ -426,7 +426,7 @@ function subAddress(address, skipRows = 0, takeRows = undefined, skipCols = 0, t
|
|
|
426
426
|
* @example
|
|
427
427
|
* superAddress("B2:C3", -1, 4, -1, 4) // "A1:D5"
|
|
428
428
|
*/
|
|
429
|
-
function superAddress(address, skipRows = 0, takeRows =
|
|
429
|
+
function superAddress(address, skipRows = 0, takeRows = null, skipCols = 0, takeCols = null) {
|
|
430
430
|
if (takeRows === undefined || takeRows === null) {
|
|
431
431
|
takeRows = Number.POSITIVE_INFINITY;
|
|
432
432
|
}
|
|
@@ -467,7 +467,7 @@ function superAddress(address, skipRows = 0, takeRows = undefined, skipCols = 0,
|
|
|
467
467
|
* @returns Extracted sub-range reference.
|
|
468
468
|
* @throws InvalidArgumentError if the requested rows or columns exceed the available range.
|
|
469
469
|
*/
|
|
470
|
-
function subRange(rangeRef, skipRows = 0, takeRows =
|
|
470
|
+
function subRange(rangeRef, skipRows = 0, takeRows = null, skipCols = 0, takeCols = null) {
|
|
471
471
|
const address = subAddress(rangeRef.address, skipRows, takeRows, skipCols, takeCols);
|
|
472
472
|
return {
|
|
473
473
|
...rangeRef,
|
|
@@ -485,7 +485,7 @@ function subRange(rangeRef, skipRows = 0, takeRows = undefined, skipCols = 0, ta
|
|
|
485
485
|
* @param takeCols Number of columns to take after skipping. If negative, excludes from the end. Default Infinity.
|
|
486
486
|
* @returns Extended super-range reference.
|
|
487
487
|
*/
|
|
488
|
-
function superRange(rangeRef, skipRows = 0, takeRows =
|
|
488
|
+
function superRange(rangeRef, skipRows = 0, takeRows = null, skipCols = 0, takeCols = null) {
|
|
489
489
|
const address = superAddress(rangeRef.address, skipRows, takeRows, skipCols, takeCols);
|
|
490
490
|
return {
|
|
491
491
|
...rangeRef,
|
|
@@ -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
|
}
|
|
@@ -168,7 +168,7 @@ export declare function cellToRangeAddress(cell: CellAddress, rows: number, cols
|
|
|
168
168
|
* subaddress("A1:D10", 0, -1); // All but last row: "A1:D9"
|
|
169
169
|
* subaddress("A1:D10", 0, Infinity, -2, 1); // Second last column: "C1:C10"
|
|
170
170
|
*/
|
|
171
|
-
export declare function subAddress(address: Address, skipRows?: number, takeRows?: number |
|
|
171
|
+
export declare function subAddress(address: Address, skipRows?: number, takeRows?: number | null, skipCols?: number, takeCols?: number | null): Address;
|
|
172
172
|
/**
|
|
173
173
|
* Returns a super-address that extends the given address by skipping/taking rows/columns, possibly outside the original bounds.
|
|
174
174
|
* Negative skip moves the start above/left of the original range (not from the end).
|
|
@@ -183,7 +183,7 @@ export declare function subAddress(address: Address, skipRows?: number, takeRows
|
|
|
183
183
|
* @example
|
|
184
184
|
* superAddress("B2:C3", -1, 4, -1, 4) // "A1:D5"
|
|
185
185
|
*/
|
|
186
|
-
export declare function superAddress(address: Address, skipRows?: number, takeRows?: number |
|
|
186
|
+
export declare function superAddress(address: Address, skipRows?: number, takeRows?: number | null, skipCols?: number, takeCols?: number | null): Address;
|
|
187
187
|
/**
|
|
188
188
|
* Extracts a sub-range from a WorkbookRangeRef using skip/take semantics.
|
|
189
189
|
* @param rangeRef Range reference to extract the sub-range from.
|
|
@@ -194,7 +194,7 @@ export declare function superAddress(address: Address, skipRows?: number, takeRo
|
|
|
194
194
|
* @returns Extracted sub-range reference.
|
|
195
195
|
* @throws InvalidArgumentError if the requested rows or columns exceed the available range.
|
|
196
196
|
*/
|
|
197
|
-
export declare function subRange(rangeRef: WorkbookRangeRef, skipRows?: number, takeRows?: number |
|
|
197
|
+
export declare function subRange(rangeRef: WorkbookRangeRef, skipRows?: number, takeRows?: number | null, skipCols?: number, takeCols?: number | null): WorkbookRangeRef;
|
|
198
198
|
/**
|
|
199
199
|
* Returns a super-range from a WorkbookRangeRef using skip/take semantics, possibly extending outside the original bounds.
|
|
200
200
|
* Negative skip moves the start above/left of the original range (not from the end).
|
|
@@ -206,5 +206,5 @@ export declare function subRange(rangeRef: WorkbookRangeRef, skipRows?: number,
|
|
|
206
206
|
* @param takeCols Number of columns to take after skipping. If negative, excludes from the end. Default Infinity.
|
|
207
207
|
* @returns Extended super-range reference.
|
|
208
208
|
*/
|
|
209
|
-
export declare function superRange(rangeRef: WorkbookRangeRef, skipRows?: number, takeRows?: number |
|
|
209
|
+
export declare function superRange(rangeRef: WorkbookRangeRef, skipRows?: number, takeRows?: number | null, skipCols?: number, takeCols?: number | null): WorkbookRangeRef;
|
|
210
210
|
//# sourceMappingURL=addressManipulation.d.ts.map
|
|
@@ -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,C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W,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,CAkClJ;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"}
|
|
@@ -340,7 +340,7 @@ export function cellToRangeAddress(cell, rows, cols) {
|
|
|
340
340
|
* subaddress("A1:D10", 0, -1); // All but last row: "A1:D9"
|
|
341
341
|
* subaddress("A1:D10", 0, Infinity, -2, 1); // Second last column: "C1:C10"
|
|
342
342
|
*/
|
|
343
|
-
export function subAddress(address, skipRows = 0, takeRows =
|
|
343
|
+
export function subAddress(address, skipRows = 0, takeRows = null, skipCols = 0, takeCols = null) {
|
|
344
344
|
if (takeRows === undefined || takeRows === null) {
|
|
345
345
|
takeRows = Number.POSITIVE_INFINITY;
|
|
346
346
|
}
|
|
@@ -397,7 +397,7 @@ export function subAddress(address, skipRows = 0, takeRows = undefined, skipCols
|
|
|
397
397
|
* @example
|
|
398
398
|
* superAddress("B2:C3", -1, 4, -1, 4) // "A1:D5"
|
|
399
399
|
*/
|
|
400
|
-
export function superAddress(address, skipRows = 0, takeRows =
|
|
400
|
+
export function superAddress(address, skipRows = 0, takeRows = null, skipCols = 0, takeCols = null) {
|
|
401
401
|
if (takeRows === undefined || takeRows === null) {
|
|
402
402
|
takeRows = Number.POSITIVE_INFINITY;
|
|
403
403
|
}
|
|
@@ -438,7 +438,7 @@ export function superAddress(address, skipRows = 0, takeRows = undefined, skipCo
|
|
|
438
438
|
* @returns Extracted sub-range reference.
|
|
439
439
|
* @throws InvalidArgumentError if the requested rows or columns exceed the available range.
|
|
440
440
|
*/
|
|
441
|
-
export function subRange(rangeRef, skipRows = 0, takeRows =
|
|
441
|
+
export function subRange(rangeRef, skipRows = 0, takeRows = null, skipCols = 0, takeCols = null) {
|
|
442
442
|
const address = subAddress(rangeRef.address, skipRows, takeRows, skipCols, takeCols);
|
|
443
443
|
return {
|
|
444
444
|
...rangeRef,
|
|
@@ -456,7 +456,7 @@ export function subRange(rangeRef, skipRows = 0, takeRows = undefined, skipCols
|
|
|
456
456
|
* @param takeCols Number of columns to take after skipping. If negative, excludes from the end. Default Infinity.
|
|
457
457
|
* @returns Extended super-range reference.
|
|
458
458
|
*/
|
|
459
|
-
export function superRange(rangeRef, skipRows = 0, takeRows =
|
|
459
|
+
export function superRange(rangeRef, skipRows = 0, takeRows = null, skipCols = 0, takeCols = null) {
|
|
460
460
|
const address = superAddress(rangeRef.address, skipRows, takeRows, skipCols, takeCols);
|
|
461
461
|
return {
|
|
462
462
|
...rangeRef,
|
|
@@ -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
|
|