@adobe/helix-onedrive-support 10.7.2 → 10.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ version: 2.1
2
2
  executors:
3
3
  node18:
4
4
  docker:
5
- - image: cimg/node:18.17
5
+ - image: cimg/node:18.18
6
6
 
7
7
  orbs:
8
8
  codecov: codecov/codecov@3.2.5
@@ -9,7 +9,7 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  if: "!contains(github.event.head_commit.message, '[skip ci]')"
11
11
  steps:
12
- - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
12
+ - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
13
13
  - name: Use Node.js 18.x
14
14
  uses: actions/setup-node@v3
15
15
  with:
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [10.8.0](https://github.com/adobe/helix-onedrive-support/compare/v10.7.2...v10.8.0) (2023-09-26)
2
+
3
+
4
+ ### Features
5
+
6
+ * support get range for table ([#442](https://github.com/adobe/helix-onedrive-support/issues/442)) ([0a8affe](https://github.com/adobe/helix-onedrive-support/commit/0a8affec901dd67e1be8bf66f784537760a6dff5))
7
+
1
8
  ## [10.7.2](https://github.com/adobe/helix-onedrive-support/compare/v10.7.1...v10.7.2) (2023-09-21)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-onedrive-support",
3
- "version": "10.7.2",
3
+ "version": "10.8.0",
4
4
  "description": "Helix OneDrive Support",
5
5
  "main": "src/index.js",
6
6
  "exports": {
@@ -36,12 +36,12 @@
36
36
  "@adobe/eslint-config-helix": "2.0.3",
37
37
  "@semantic-release/changelog": "6.0.3",
38
38
  "@semantic-release/git": "10.0.1",
39
- "@aws-sdk/client-s3": "3.414.0",
39
+ "@aws-sdk/client-s3": "3.418.0",
40
40
  "ajv": "8.12.0",
41
41
  "c8": "8.0.1",
42
42
  "codecov": "3.8.3",
43
43
  "dotenv": "16.3.1",
44
- "eslint": "8.49.0",
44
+ "eslint": "8.50.0",
45
45
  "eslint-plugin-header": "3.1.1",
46
46
  "eslint-plugin-import": "2.28.1",
47
47
  "husky": "8.0.3",
@@ -54,7 +54,7 @@
54
54
  "mocha-multi-reporters": "1.5.1",
55
55
  "nock": "13.3.3",
56
56
  "npm": "10.1.0",
57
- "semantic-release": "22.0.0"
57
+ "semantic-release": "22.0.4"
58
58
  },
59
59
  "lint-staged": {
60
60
  "*.js": "eslint"
@@ -179,6 +179,12 @@ function handleTable(container, segs, method, body) {
179
179
  ],
180
180
  };
181
181
  }
182
+ case 'range': {
183
+ return {
184
+ address: 'sheet!A1:B10',
185
+ addressLocal: 'A1:B10',
186
+ };
187
+ }
182
188
  default:
183
189
  if (body) {
184
190
  table.name = body.name;
@@ -10,6 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
  import {DriveItem, GraphResult} from '../OneDrive';
13
+ import { Range } from './Range';
13
14
 
14
15
  export declare interface FormatOptions {
15
16
  /**
@@ -100,4 +101,9 @@ export declare interface Table {
100
101
  * @param name column name
101
102
  */
102
103
  deleteColumn(name: string): Promise<void>;
104
+
105
+ /**
106
+ * Returns the range object associated with the entire table.
107
+ */
108
+ range(): Range;
103
109
  }
@@ -10,6 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
  import { superTrim } from '../utils.js';
13
+ import { Range } from './Range.js';
13
14
 
14
15
  export class Table {
15
16
  constructor(oneDrive, prefix, name, log) {
@@ -142,4 +143,8 @@ export class Table {
142
143
  get log() {
143
144
  return this._log;
144
145
  }
146
+
147
+ range() {
148
+ return new Range(this._oneDrive, `${this.uri}/range`, this._log);
149
+ }
145
150
  }