Skip to content

Commit ed20f14

Browse files
authored
Merge pull request #153 from webflow/fern-bot/06-27-2024-0921PM
🌿 Fern Regeneration -- June 27, 2024
2 parents 21c2b0f + 8ea015b commit ed20f14

File tree

342 files changed

+3136
-1843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

342 files changed

+3136
-1843
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Compile
1717
run: yarn && yarn build
18-
18+
1919
test:
2020
runs-on: ubuntu-latest
2121

@@ -27,23 +27,19 @@ jobs:
2727
uses: actions/setup-node@v3
2828

2929
- name: Compile
30-
run: yarn && yarn test
31-
30+
run: yarn && yarn test
31+
3232
publish:
3333
needs: [ compile, test ]
3434
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
3535
runs-on: ubuntu-latest
36-
3736
steps:
3837
- name: Checkout repo
3938
uses: actions/checkout@v3
40-
4139
- name: Set up node
4240
uses: actions/setup-node@v3
43-
4441
- name: Install dependencies
4542
run: yarn install
46-
4743
- name: Build
4844
run: yarn build
4945

.gitignore

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
node_modules
22
.DS_Store
3-
/dist
4-
/Client.d.ts
5-
/Client.js
6-
/environments.d.ts
7-
/environments.js
8-
/index.d.ts
9-
/index.js
10-
/api
11-
/core
12-
/errors
13-
/serialization
3+
/dist

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
src
3+
tests
34
.gitignore
45
.github
56
.fernignore

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/** @type {import('ts-jest').JestConfigWithTsJest} */
1+
/** @type {import('jest').Config} */
22
module.exports = {
33
preset: "ts-jest",
44
testEnvironment: "node",
5-
};
5+
};

package.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"name": "webflow-api",
3-
"version": "2.3.2",
3+
"version": "2.3.5",
44
"private": false,
55
"repository": "https://github.com/webflow/js-webflow-api",
66
"main": "./index.js",
77
"types": "./index.d.ts",
88
"scripts": {
9-
"format": "prettier --write 'src/**/*.ts'",
9+
"format": "prettier . --write --ignore-unknown",
1010
"build": "tsc",
1111
"prepack": "cp -rv dist/. .",
1212
"test": "jest"
1313
},
1414
"dependencies": {
1515
"url-join": "4.0.1",
1616
"form-data": "4.0.0",
17+
"formdata-node": "^6.0.3",
1718
"node-fetch": "2.7.0",
1819
"qs": "6.11.2",
1920
"js-base64": "3.7.2"
@@ -22,11 +23,17 @@
2223
"@types/url-join": "4.0.1",
2324
"@types/qs": "6.9.8",
2425
"@types/node-fetch": "2.6.9",
25-
"jest": "^29.7.0",
26-
"@types/jest": "^29.5.5",
27-
"ts-jest": "^29.1.1",
26+
"jest": "29.7.0",
27+
"@types/jest": "29.5.5",
28+
"ts-jest": "29.1.1",
29+
"jest-environment-jsdom": "29.7.0",
2830
"@types/node": "17.0.33",
2931
"prettier": "2.7.1",
3032
"typescript": "4.6.4"
33+
},
34+
"browser": {
35+
"fs": false,
36+
"os": false,
37+
"path": false
3138
}
32-
}
39+
}

src/Client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ export declare namespace WebflowClient {
2626
}
2727

2828
interface RequestOptions {
29+
/** The maximum time to wait for a response in seconds. */
2930
timeoutInSeconds?: number;
31+
/** The number of times to retry the request. Defaults to 2. */
3032
maxRetries?: number;
33+
/** A hook to abort the request. */
34+
abortSignal?: AbortSignal;
3135
}
3236
}
3337

src/api/errors/BadRequestError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as errors from "../../errors";
5+
import * as errors from "../../errors/index";
66

77
export class BadRequestError extends errors.WebflowError {
88
constructor(body?: unknown) {

src/api/errors/ConflictError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as errors from "../../errors";
5+
import * as errors from "../../errors/index";
66

77
export class ConflictError extends errors.WebflowError {
88
constructor(body?: unknown) {

src/api/errors/ForbiddenError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as errors from "../../errors";
5+
import * as errors from "../../errors/index";
66

77
export class ForbiddenError extends errors.WebflowError {
88
constructor(body?: unknown) {

src/api/errors/InternalServerError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as errors from "../../errors";
5+
import * as errors from "../../errors/index";
66

77
export class InternalServerError extends errors.WebflowError {
88
constructor(body?: unknown) {

0 commit comments

Comments
 (0)