microsoft-graph 2.2.4 → 2.2.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/.github/workflows/{check.yml → quality.yml} +4 -2
- package/dist/models/Address.d.ts +3 -3
- package/dist/models/Address.d.ts.map +1 -1
- package/dist/operations/workbookRange/insertWorkbookCells.d.ts.map +1 -1
- package/dist/services/address.d.ts +2 -2
- package/dist/services/address.d.ts.map +1 -1
- package/dist/services/address.js +8 -8
- package/dist/services/random.d.ts.map +1 -1
- package/dist/services/random.js +2 -2
- package/package.json +3 -3
package/dist/models/Address.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type ColumnAddress = `${Uppercase<string>}`;
|
|
2
|
-
export type RowAddress = `${number}`;
|
|
3
2
|
export type ColumnRangeAddress = `${CellAddress}:${CellAddress}`;
|
|
3
|
+
export type RowAddress = `${number}`;
|
|
4
4
|
export type RowRangeAddress = `${RowAddress}:${RowAddress}`;
|
|
5
|
-
export type BoxRangeAddress = `${CellAddress}:${CellAddress}`;
|
|
6
5
|
export type CellAddress = `${ColumnAddress}${RowAddress}`;
|
|
7
|
-
export type
|
|
6
|
+
export type CellRangeAddress = `${CellAddress}:${CellAddress}`;
|
|
7
|
+
export type Address = ColumnAddress | RowAddress | ColumnRangeAddress | RowRangeAddress | CellRangeAddress | CellAddress;
|
|
8
8
|
//# sourceMappingURL=Address.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../src/models/Address.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;AACnD,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../src/models/Address.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;AACnD,MAAM,MAAM,kBAAkB,GAAG,GAAG,WAAW,IAAI,WAAW,EAAE,CAAC;AAEjE,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,EAAE,CAAC;AACrC,MAAM,MAAM,eAAe,GAAG,GAAG,UAAU,IAAI,UAAU,EAAE,CAAC;AAE5D,MAAM,MAAM,WAAW,GAAG,GAAG,aAAa,GAAG,UAAU,EAAE,CAAC;AAC1D,MAAM,MAAM,gBAAgB,GAAG,GAAG,WAAW,IAAI,WAAW,EAAE,CAAC;AAE/D,MAAM,MAAM,OAAO,GAAG,aAAa,GAAG,UAAU,GAAG,kBAAkB,GAAG,eAAe,GAAG,gBAAgB,GAAG,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insertWorkbookCells.d.ts","sourceRoot":"","sources":["../../../src/operations/workbookRange/insertWorkbookCells.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,KAAK,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"insertWorkbookCells.d.ts","sourceRoot":"","sources":["../../../src/operations/workbookRange/insertWorkbookCells.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,KAAK,EAAE,OAAO,EAAoB,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAIjF,sLAAsL;AACtL,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,YAAY,EAAE,oBAAoB,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,cAAc,CAAC,aAAa,GAAG,gBAAgB,CAAC,CAwB3K"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Address,
|
|
1
|
+
import type { Address, CellAddress, CellRangeAddress, ColumnAddress, RowAddress } from "../models/Address.ts";
|
|
2
2
|
import type { ColumnIndex } from "../models/ColumnIndex.ts";
|
|
3
3
|
import type { RowIndex } from "../models/RowIndex.ts";
|
|
4
4
|
export declare function getAddressFirstCell(address: Address): CellAddress;
|
|
5
5
|
export declare function getAddressLastCell(address: Address): CellAddress;
|
|
6
6
|
export declare function cellAddressToIndexes(address: CellAddress): [RowIndex, ColumnIndex];
|
|
7
7
|
export declare function indexesToCellAddress(rowIndex: RowIndex, columnIndex: ColumnIndex): CellAddress;
|
|
8
|
-
export declare function indexesToBoxRangeAddress(startRowIndex: RowIndex, startColumnIndex: ColumnIndex, endRowIndex: RowIndex, endColumnIndex: ColumnIndex):
|
|
8
|
+
export declare function indexesToBoxRangeAddress(startRowIndex: RowIndex, startColumnIndex: ColumnIndex, endRowIndex: RowIndex, endColumnIndex: ColumnIndex): CellRangeAddress;
|
|
9
9
|
export declare function columnAddressToIndex(column: ColumnAddress): ColumnIndex;
|
|
10
10
|
export declare function indexToColumnAddress(index: ColumnIndex): ColumnAddress;
|
|
11
11
|
export declare function rowAddressToIndex(row: RowAddress): RowIndex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/services/address.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/services/address.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC9G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAgBtD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CA8CjE;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CA6ChE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,CAAC,QAAQ,EAAE,WAAW,CAAC,CAclF;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,GAAG,WAAW,CAE9F;AAED,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW,GAAG,gBAAgB,CAErK;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,GAAG,WAAW,CAMvE;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,CAStE;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,UAAU,GAAG,QAAQ,CAE3D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,GAAG,UAAU,CAE7D"}
|
package/dist/services/address.js
CHANGED
|
@@ -4,11 +4,11 @@ const lastColumn = "XFD";
|
|
|
4
4
|
const firstRow = "1";
|
|
5
5
|
const lastRow = "1048576";
|
|
6
6
|
const columnAddressPattern = /^(?<sheet>[A-Za-z0-9_]+!)?(?<column>[A-Z]+)$/;
|
|
7
|
-
const rowAddressPattern = /^(?<sheet>[A-Za-z0-9_]+!)?(?<row>\d+)$/;
|
|
8
7
|
const columnRangeAddressPattern = /^(?<sheet>[A-Za-z0-9_]+!)?(?<startColumn>[A-Z]+):(?<endColumn>[A-Z]+)$/;
|
|
8
|
+
const rowAddressPattern = /^(?<sheet>[A-Za-z0-9_]+!)?(?<row>\d+)$/;
|
|
9
9
|
const rowRangeAddressPattern = /^(?<sheet>[A-Za-z0-9_]+!)?(?<startRow>\d+):(?<endRow>\d+)$/;
|
|
10
10
|
const cellAddressPattern = /^(?<sheet>[A-Za-z0-9_]+!)?(?<column>[A-Z]+)(?<row>\d+)$/;
|
|
11
|
-
const
|
|
11
|
+
const cellRangeAddressPattern = /^(?<sheet>[A-Za-z0-9_]+!)?(?<startCell>[A-Z]+\d+):(?<endCell>[A-Z]+\d+)$/;
|
|
12
12
|
export function getAddressFirstCell(address) {
|
|
13
13
|
const columnAddressMatch = address.match(columnAddressPattern);
|
|
14
14
|
if (columnAddressMatch) {
|
|
@@ -34,10 +34,10 @@ export function getAddressFirstCell(address) {
|
|
|
34
34
|
const startRow = rowRangeMatch?.groups?.["startRow"] ?? "";
|
|
35
35
|
return `${firstColumn}${startRow}`;
|
|
36
36
|
}
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
37
|
+
const cellRangeMatch = address.match(cellRangeAddressPattern);
|
|
38
|
+
if (cellRangeMatch) {
|
|
39
39
|
// biome-ignore lint/complexity/useLiteralKeys:Regex named capture groups are used
|
|
40
|
-
const startCell =
|
|
40
|
+
const startCell = cellRangeMatch?.groups?.["startCell"];
|
|
41
41
|
return startCell;
|
|
42
42
|
}
|
|
43
43
|
const cellAddressMatch = address.match(cellAddressPattern);
|
|
@@ -75,10 +75,10 @@ export function getAddressLastCell(address) {
|
|
|
75
75
|
const endRow = rowRangeMatch?.groups?.["endRow"] ?? "";
|
|
76
76
|
return `${lastColumn}${endRow}`;
|
|
77
77
|
}
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
78
|
+
const cellRangeMatch = address.match(cellRangeAddressPattern);
|
|
79
|
+
if (cellRangeMatch) {
|
|
80
80
|
// biome-ignore lint/complexity/useLiteralKeys:Regex named capture groups are used
|
|
81
|
-
const endCell =
|
|
81
|
+
const endCell = cellRangeMatch?.groups?.["endCell"];
|
|
82
82
|
return endCell;
|
|
83
83
|
}
|
|
84
84
|
const cellAddressMatch = address.match(cellAddressPattern);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/services/random.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/services/random.ts"],"names":[],"mappings":"AAIA,wBAAgB,oBAAoB,CAAC,MAAM,SAAK,GAAG,MAAM,CAQxD"}
|
package/dist/services/random.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { randomInt } from "node:crypto";
|
|
1
2
|
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2
3
|
export function generateRandomString(length = 16) {
|
|
3
4
|
let result = "";
|
|
4
5
|
for (let i = 0; i < length; i++) {
|
|
5
|
-
|
|
6
|
-
result += characters[randomIndex];
|
|
6
|
+
result += characters[randomInt(characters.length)];
|
|
7
7
|
}
|
|
8
8
|
return result;
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microsoft-graph",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "Microsoft GraphAPI SDK for NodeJS",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"build": "npm run check && tsc && npx tsx update-exports.ts",
|
|
11
11
|
"release": "npm run build && npm publish --access public",
|
|
12
12
|
"test": "vitest --bail=3",
|
|
13
|
-
"update": "npm-check-updates -u"
|
|
13
|
+
"update": "npm-check-updates -u && npm install"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"Microsoft",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"npm-check-updates": "^17.1.16",
|
|
34
34
|
"tsx": "^4.19.3",
|
|
35
35
|
"typescript": "^5.8.2",
|
|
36
|
-
"vitest": "^3.
|
|
36
|
+
"vitest": "^3.1.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@azure/identity": "^4.8.0",
|