Skip to content

Commit 72864fb

Browse files
axe312germgoudy91dependabot[bot]gheptingdavid-shibley-contentful
authored
refactor: turn into dual node package with additional browser bundle (#2169)
* refactor: turn into dual node package with additional browser bundle * build: remove unused renamer dependency * prettier * build(deps-dev): bump express from 4.18.2 to 4.18.3 (#2174) Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.18.3. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](expressjs/express@4.18.2...4.18.3) --- updated-dependencies: - dependency-name: express dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: unown package files [] (#2165) * build(deps-dev): bump typedoc from 0.25.9 to 0.25.10 (#2176) Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.25.9 to 0.25.10. - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](TypeStrong/typedoc@v0.25.9...v0.25.10) --- updated-dependencies: - dependency-name: typedoc dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump type-fest from 4.10.3 to 4.11.0 (#2177) Bumps [type-fest](https://github.com/sindresorhus/type-fest) from 4.10.3 to 4.11.0. - [Release notes](https://github.com/sindresorhus/type-fest/releases) - [Commits](sindresorhus/type-fest@v4.10.3...v4.11.0) --- updated-dependencies: - dependency-name: type-fest dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump @contentful/rich-text-types from 16.3.4 to 16.3.5 (#2178) Bumps [@contentful/rich-text-types](https://github.com/contentful/rich-text) from 16.3.4 to 16.3.5. - [Release notes](https://github.com/contentful/rich-text/releases) - [Changelog](https://github.com/contentful/rich-text/blob/master/CHANGELOG.md) - [Commits](https://github.com/contentful/rich-text/compare/@contentful/[email protected]...@contentful/[email protected]) --- updated-dependencies: - dependency-name: "@contentful/rich-text-types" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump type-fest from 4.11.0 to 4.11.1 (#2179) Bumps [type-fest](https://github.com/sindresorhus/type-fest) from 4.11.0 to 4.11.1. - [Release notes](https://github.com/sindresorhus/type-fest/releases) - [Commits](sindresorhus/type-fest@v4.11.0...v4.11.1) --- updated-dependencies: - dependency-name: type-fest dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: github migration [EXT-5014] * feat: github migration [EXT-5014] * adding vault context * fix: [] - fix build * build(deps-dev): bump typedoc from 0.25.10 to 0.25.11 (#2182) Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.25.10 to 0.25.11. - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](TypeStrong/typedoc@v0.25.10...v0.25.11) --- updated-dependencies: - dependency-name: typedoc dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps-dev): bump typedoc from 0.25.11 to 0.25.12 (#2183) Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.25.11 to 0.25.12. - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](TypeStrong/typedoc@v0.25.11...v0.25.12) --- updated-dependencies: - dependency-name: typedoc dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump type-fest from 4.11.1 to 4.12.0 (#2184) Bumps [type-fest](https://github.com/sindresorhus/type-fest) from 4.11.1 to 4.12.0. - [Release notes](https://github.com/sindresorhus/type-fest/releases) - [Commits](sindresorhus/type-fest@v4.11.1...v4.12.0) --- updated-dependencies: - dependency-name: type-fest dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * wip: use rollup to bundle * refactor: improve rollup integration * WIP - replace Jest with Vitest * refactor: fix all integration tests and clean up * build: fix rollup browser bundle * build: fix rollup process resolve * build: readd tsd * build: remove bundle size check again from postbuild to avoid issues on CI * ci: move to latest node v18 to avoid warnings while installing * build: adjust for new structure of contentful-sdk-core * fix: to ensure we are ECMA2018 compatible with browser bundle * test: fix mocks of sdk-core * build: use rollup to inject plugin version into ESM export * build: ensure types are defined in the exports in package.json * deps: remove obsolete dependencies * refactor: make it work with react-native and other bundlers * build: update to latest sdk-core version * build: update to latest sdk-core version * build: add missing fast-copy dev dependency * build: minor and patch updates of dependencies * Revert "build: minor and patch updates of dependencies" This reverts commit c2573fc. * build: increase browser bundle size limit - sorry - updates forced me * build: v11.0.0-alpha.8 * build: remove local verdaccio traces * test: ensure output-integration browser test is working again and using vitest instead of jest * build: upgrade CTF source maps to latest * build: load rich-text-types for now from npm * build: update rollup and typescript dependencies to latest * build: upgrade to vitest v2 * test: update broken integration tests from git merge * fix: reset version number to valid semver * chore: no need to hard code the bin directory for tsd * chore: test types on push as its very fast and avoids useless waiting for CI * test: slightly increase bundle sizes * docs: update README.md to include information about the new ESM support * docs: update TOC and fix format of tables in README * docs: update import syntax in readme * build: npm dedupe * fix: bundle size * fix: plock * fix: remove bundle size * fix: tsc "Right operand of ?? is unreachable because the left operand is never nullish" * fix: regen plock * test: fix query params * fix: bump size * test: test updates * chore: adding dry run flag, BC commit tag to force major (#2325) * build(deps-dev): bump express in the dev-dependencies group (#2326) Bumps the dev-dependencies group with 1 update: [express](https://github.com/expressjs/express). Updates `express` from 4.19.2 to 4.20.0 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](expressjs/express@4.19.2...4.20.0) --- updated-dependencies: - dependency-name: express dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps-dev): bump express in the dev-dependencies group (#2327) Bumps the dev-dependencies group with 1 update: [express](https://github.com/expressjs/express). Updates `express` from 4.20.0 to 4.21.0 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md) - [Commits](expressjs/express@4.20.0...4.21.0) --- updated-dependencies: - dependency-name: express dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump the production-dependencies group with 2 updates (#2328) Bumps the production-dependencies group with 2 updates: [@contentful/content-source-maps](https://github.com/contentful/live-preview) and [contentful-sdk-core](https://github.com/contentful/contentful-sdk-core). Updates `@contentful/content-source-maps` from 0.11.2 to 0.11.3 - [Release notes](https://github.com/contentful/live-preview/releases) - [Commits](https://github.com/contentful/live-preview/compare/@contentful/[email protected]...@contentful/[email protected]) Updates `contentful-sdk-core` from 8.3.1 to 8.3.2 - [Release notes](https://github.com/contentful/contentful-sdk-core/releases) - [Commits](contentful/contentful-sdk-core@v8.3.1...v8.3.2) --- updated-dependencies: - dependency-name: "@contentful/content-source-maps" dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: contentful-sdk-core dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps-dev): bump babel-loader in the dev-dependencies group (#2329) Bumps the dev-dependencies group with 1 update: [babel-loader](https://github.com/babel/babel-loader). Updates `babel-loader` from 9.1.3 to 9.2.1 - [Release notes](https://github.com/babel/babel-loader/releases) - [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md) - [Commits](babel/babel-loader@v9.1.3...v9.2.1) --- updated-dependencies: - dependency-name: babel-loader dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps-dev): bump nodemon in the dev-dependencies group (#2330) Bumps the dev-dependencies group with 1 update: [nodemon](https://github.com/remy/nodemon). Updates `nodemon` from 3.1.4 to 3.1.5 - [Release notes](https://github.com/remy/nodemon/releases) - [Commits](remy/nodemon@v3.1.4...v3.1.5) --- updated-dependencies: - dependency-name: nodemon dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dev-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps-dev): bump nodemon in the dev-dependencies group (#2330) Bumps the dev-dependencies group with 1 update: [nodemon](https://github.com/remy/nodemon). Updates `nodemon` from 3.1.4 to 3.1.5 - [Release notes](https://github.com/remy/nodemon/releases) - [Commits](remy/nodemon@v3.1.4...v3.1.5) --- updated-dependencies: - dependency-name: nodemon dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dev-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: rm dry-run flag --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Mitch Goudy <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gary Hepting <[email protected]> Co-authored-by: david shibley <[email protected]> Co-authored-by: Cormac de Barra <[email protected]> Co-authored-by: Mitch Goudy <[email protected]>
1 parent a81da10 commit 72864fb

Some content is hidden

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

41 files changed

+11323
-40164
lines changed

Diff for: .circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ orbs:
88
jobs:
99
lint:
1010
docker:
11-
- image: cimg/node:18.19-browsers
11+
- image: 'cimg/node:18.20.1-browsers'
1212
steps:
1313
- checkout
1414
- vault/get-secrets: # Loads vault secrets
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- checkout
3030
- node/install:
31-
node-version: '18.17'
31+
node-version: '18.20.1'
3232
- vault/get-secrets: # Loads vault secrets
3333
template-preset: 'packages-read'
3434
- run: echo "//npm.pkg.github.com/:_authToken=${GITHUB_PACKAGES_READ_TOKEN}" > ~/.npmrc
@@ -42,7 +42,7 @@ jobs:
4242
steps:
4343
- checkout
4444
- node/install:
45-
node-version: '18.17'
45+
node-version: '18.20.1'
4646
- vault/get-secrets: # Loads vault secrets
4747
template-preset: 'packages-read'
4848
- run: echo "//npm.pkg.github.com/:_authToken=${GITHUB_PACKAGES_READ_TOKEN}" > ~/.npmrc
@@ -52,7 +52,7 @@ jobs:
5252

5353
release:
5454
docker:
55-
- image: cimg/node:18.19-browsers
55+
- image: 'cimg/node:18.20.1-browsers'
5656
steps:
5757
- checkout
5858
- browser-tools/install-chrome

Diff for: .eslintrc.js renamed to .eslintrc.cjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
2+
parser: '@typescript-eslint/parser',
23
plugins: ['standard', 'promise'],
34
env: {
4-
jest: true,
55
node: true,
66
},
77
globals: {
@@ -12,6 +12,7 @@ module.exports = {
1212
'plugin:@typescript-eslint/eslint-recommended',
1313
'plugin:@typescript-eslint/recommended',
1414
'prettier',
15+
'plugin:vitest-globals/recommended',
1516
],
1617
ignorePatterns: ['**/test/output-integration/**', '**/webpack.config.js'],
1718
rules: {

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
dist
22
gh-pages
3+
test/output-integration/browser/public/contentful*.js
34

45
# Esdoc dirs
56
out

Diff for: .husky/pre-commit

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
npm run lint
2+
npm run prettier:check

Diff for: .husky/pre-push

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run test:prepush

Diff for: README.md

+83-54
Large diffs are not rendered by default.

Diff for: jest.config.js

-12
This file was deleted.

Diff for: lib/contentful.ts

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
* with access to the Contentful Content Delivery API.
44
*/
55

6-
import type { AxiosAdapter, AxiosRequestConfig, AxiosResponse } from 'axios'
76
import axios from 'axios'
7+
import type { AxiosAdapter, AxiosRequestConfig, AxiosResponse } from 'axios'
8+
89
import { createHttpClient, getUserAgentHeader } from 'contentful-sdk-core'
9-
import { createGlobalOptions } from './create-global-options'
10-
import { makeClient } from './make-client'
11-
import { ContentfulClientApi } from './types'
12-
import { validateRemoveUnresolvedParam, validateResolveLinksParam } from './utils/validate-params'
10+
import { createGlobalOptions } from './create-global-options.js'
11+
import { makeClient } from './make-client.js'
12+
import {
13+
validateRemoveUnresolvedParam,
14+
validateResolveLinksParam,
15+
} from './utils/validate-params.js'
16+
import type { ContentfulClientApi } from './types/client.js'
1317

1418
/**
1519
* @category Client

Diff for: lib/create-contentful-api.ts

+16-16
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,38 @@
66
import { encodeCPAResponse } from '@contentful/content-source-maps'
77
import { AxiosInstance, createRequestConfig, errorHandler } from 'contentful-sdk-core'
88
import { CreateClientParams } from './contentful'
9-
import { GetGlobalOptions } from './create-global-options'
10-
import pagedSync from './paged-sync'
11-
import {
9+
import { GetGlobalOptions } from './create-global-options.js'
10+
import pagedSync from './paged-sync.js'
11+
import type {
1212
Asset,
1313
AssetCollection,
1414
AssetKey,
1515
ContentfulClientApi,
1616
ContentType,
1717
ContentTypeCollection,
18-
EntryCollection,
19-
EntrySkeletonType,
20-
LocaleCode,
2118
LocaleCollection,
2219
Space,
23-
SyncOptions,
24-
SyncQuery,
2520
Tag,
2621
TagCollection,
27-
} from './types'
28-
import { ChainOptions, ModifiersFromOptions } from './utils/client-helpers'
29-
import normalizeSearchParameters from './utils/normalize-search-parameters'
30-
import normalizeSelect from './utils/normalize-select'
22+
EntryCollection,
23+
SyncQuery,
24+
SyncOptions,
25+
EntrySkeletonType,
26+
LocaleCode,
27+
} from './types/index.js'
28+
import normalizeSearchParameters from './utils/normalize-search-parameters.js'
29+
import normalizeSelect from './utils/normalize-select.js'
30+
import resolveCircular from './utils/resolve-circular.js'
3131
import getQuerySelectionSet from './utils/query-selection-set'
32-
import resolveCircular from './utils/resolve-circular'
32+
import validateTimestamp from './utils/validate-timestamp.js'
33+
import { ChainOptions, ModifiersFromOptions } from './utils/client-helpers.js'
3334
import {
3435
checkIncludeContentSourceMapsParamIsAllowed,
3536
validateLocaleParam,
3637
validateRemoveUnresolvedParam,
3738
validateResolveLinksParam,
3839
} from './utils/validate-params'
3940
import validateSearchParameters from './utils/validate-search-parameters'
40-
import validateTimestamp from './utils/validate-timestamp'
4141

4242
const ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60
4343

@@ -275,7 +275,7 @@ export default function createContentfulApi<OptionType extends ChainOptions>(
275275
})
276276

277277
return resolveCircular(entries, {
278-
resolveLinks: !withoutLinkResolution ?? true,
278+
resolveLinks: !withoutLinkResolution,
279279
removeUnresolved: withoutUnresolvableLinks ?? false,
280280
})
281281
} catch (error) {
@@ -462,7 +462,7 @@ export default function createContentfulApi<OptionType extends ChainOptions>(
462462
const { withoutLinkResolution, withoutUnresolvableLinks } = options
463463

464464
return resolveCircular(data, {
465-
resolveLinks: !withoutLinkResolution ?? true,
465+
resolveLinks: !withoutLinkResolution,
466466
removeUnresolved: withoutUnresolvableLinks ?? false,
467467
})
468468
}

Diff for: lib/index.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export * from './contentful'
2-
export * from './create-global-options'
3-
export * from './mixins/stringify-safe'
4-
export * from './utils/normalize-select'
5-
export * from './utils/resolve-circular'
1+
export * from './contentful.js'
2+
export * from './create-global-options.js'
3+
export * from './mixins/stringify-safe.js'
4+
export * from './utils/normalize-select.js'
5+
export * from './utils/resolve-circular.js'
66

7-
export * from './types'
7+
export * from './types/index.js'

Diff for: lib/make-client.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import createContentfulApi, { CreateContentfulApiParams } from './create-contentful-api'
1+
import createContentfulApi, { CreateContentfulApiParams } from './create-contentful-api.js'
22
import {
33
ChainOptions,
44
DefaultChainOption,
55
ChainOption,
66
ModifiersFromOptions,
7-
} from './utils/client-helpers'
8-
import { ContentfulClientApi } from './types'
7+
} from './utils/client-helpers.js'
8+
import type { ContentfulClientApi } from './types/index.js'
99

1010
function create<OptionsType extends ChainOptions>(
1111
{ http, getGlobalOptions }: CreateContentfulApiParams,

Diff for: lib/paged-sync.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import resolveResponse from 'contentful-resolve-response'
22
import { AxiosInstance, createRequestConfig, freezeSys, toPlainObject } from 'contentful-sdk-core'
3-
import mixinStringifySafe from './mixins/stringify-safe'
4-
import {
3+
import mixinStringifySafe from './mixins/stringify-safe.js'
4+
import type {
55
SyncPageQuery,
66
SyncResponse,
77
SyncPageResponse,
@@ -11,8 +11,8 @@ import {
1111
SyncQuery,
1212
LocaleCode,
1313
EntrySkeletonType,
14-
} from './types'
15-
import { ChainOptions, ModifiersFromOptions } from './utils/client-helpers'
14+
} from './types/index.js'
15+
import { ChainOptions, ModifiersFromOptions } from './utils/client-helpers.js'
1616

1717
/**
1818
* Retrieves all the available pages for a sync operation

Diff for: lib/types/index.ts

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
export * from './asset'
2-
export * from './asset-key'
3-
export { AddChainModifier, ChainModifiers, ContentfulClientApi } from './client'
4-
export * from './collection'
5-
export * from './content-type'
6-
export * from './entry'
7-
export * from './link'
8-
export * from './locale'
9-
export * from './metadata'
10-
export * from './query'
11-
export * from './resource-link'
12-
export * from './space'
13-
export * from './sync'
14-
export * from './sys'
15-
export * from './tag'
1+
export * from './asset.js'
2+
export * from './asset-key.js'
3+
export { AddChainModifier, ChainModifiers, ContentfulClientApi } from './client.js'
4+
export * from './collection.js'
5+
export * from './content-type.js'
6+
export * from './entry.js'
7+
export * from './link.js'
8+
export * from './locale.js'
9+
export * from './metadata.js'
10+
export * from './query/index.js'
11+
export * from './resource-link.js'
12+
export * from './space.js'
13+
export * from './sync.js'
14+
export * from './sys.js'
15+
export * from './tag.js'

Diff for: lib/types/query/index.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ export {
33
EntrySkeletonType,
44
type ConditionalFixedQueries,
55
type ConditionalListQueries,
6-
} from './util'
6+
} from './util.js'
77

8-
export * from './equality'
9-
export * from './existence'
10-
export * from './location'
11-
export * from './order'
12-
export * from './query'
13-
export * from './range'
14-
export * from './reference'
15-
export * from './search'
16-
export * from './select'
17-
export * from './set'
18-
export * from './subset'
8+
export * from './equality.js'
9+
export * from './existence.js'
10+
export * from './location.js'
11+
export * from './order.js'
12+
export * from './query.js'
13+
export * from './range.js'
14+
export * from './reference.js'
15+
export * from './search.js'
16+
export * from './select.js'
17+
export * from './set.js'
18+
export * from './subset.js'

Diff for: lib/utils/resolve-circular.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import mixinStringifySafe from '../mixins/stringify-safe'
21
import resolveResponse from 'contentful-resolve-response'
32

3+
import mixinStringifySafe from '../mixins/stringify-safe.js'
4+
45
export default function resolveCircular(data: any, { resolveLinks, removeUnresolved }): any {
56
const wrappedData = mixinStringifySafe(data)
67
if (resolveLinks) {

Diff for: lib/utils/validate-params.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ValidationError } from './validation-error'
1+
import { ValidationError } from './validation-error.js'
22

33
function checkLocaleParamIsAll(query) {
44
if (query.locale === '*') {

Diff for: lib/utils/validate-timestamp.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ValidationError } from './validation-error'
1+
import { ValidationError } from './validation-error.js'
22

33
type Options = {
44
maximum?: number

0 commit comments

Comments
 (0)