Skip to content

Commit 6e26212

Browse files
authored
Support SSR mode (#37)
1 parent 0de624e commit 6e26212

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

packages/alpine/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { client, Config, createValidator, RequestMethod, resolveName, toSimpleVa
33
import cloneDeep from 'lodash.clonedeep'
44
import get from 'lodash.get'
55
import set from 'lodash.set'
6-
import { Form } from './types'
6+
import { Form } from './types.js'
77

88
export { client }
99

packages/core/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { isAxiosError, isCancel, AxiosInstance, AxiosResponse, default as Axios } from 'axios'
22
import merge from 'lodash.merge'
3-
import { Config, Client, RequestFingerprintResolver, StatusHandler, SuccessResolver, RequestMethod } from './types'
3+
import { Config, Client, RequestFingerprintResolver, StatusHandler, SuccessResolver, RequestMethod } from './types.js'
44

55
/**
66
* The configured axios client.

packages/core/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { client, resolveUrl, resolveMethod } from './client'
2-
export { createValidator, toSimpleValidationErrors, resolveName } from './validator'
3-
export * from './types'
1+
export { client, resolveUrl, resolveMethod } from './client.js'
2+
export { createValidator, toSimpleValidationErrors, resolveName } from './validator.js'
3+
export * from './types.js'

packages/core/src/validator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import debounce from 'lodash.debounce'
22
import isequal from 'lodash.isequal'
33
import get from 'lodash.get'
44
import set from 'lodash.set'
5-
import { ValidationCallback, Config, NamedInputEvent, SimpleValidationErrors, ValidationErrors, Validator as TValidator, ValidatorListeners, ValidationConfig } from './types'
6-
import { client, isFile } from './client'
5+
import { ValidationCallback, Config, NamedInputEvent, SimpleValidationErrors, ValidationErrors, Validator as TValidator, ValidatorListeners, ValidationConfig } from './types.js'
6+
import { client, isFile } from './client.js'
77
import { isAxiosError } from 'axios'
88
import omit from 'lodash.omit'
99
import merge from 'lodash.merge'

packages/react/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import cloneDeep from 'lodash.clonedeep'
33
import get from 'lodash.get'
44
import set from 'lodash.set'
55
import { useRef, useState } from 'react'
6-
import { Form } from './types'
6+
import { Form } from './types.js'
77

88
export { client }
99

packages/vue/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { Config, RequestMethod, client, createValidator, toSimpleValidationErrors, ValidationConfig, resolveUrl, resolveMethod } from 'laravel-precognition'
2-
import { Form } from './types'
1+
import { Config, RequestMethod, client, createValidator, toSimpleValidationErrors, ValidationConfig, resolveUrl, resolveMethod , resolveName } from 'laravel-precognition'
2+
import { Form } from './types.js'
33
import { reactive, ref, toRaw } from 'vue'
44
import cloneDeep from 'lodash.clonedeep'
55
import get from 'lodash.get'
6-
import { resolveName } from 'laravel-precognition'
76
import set from 'lodash.set'
87

98
export { client }

0 commit comments

Comments
 (0)