Skip to content

Commit 68c19c9

Browse files
committed
chore: 🍺 export utils
1 parent 7a23d4d commit 68c19c9

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

src/__tests__/package.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Vue from 'vue'
22
import VueApiQueries from '../'
3-
import { addElemWithDataAppToBody, disableTransitions } from '../util/createDom'
4-
import { sleep } from '../util/promise'
3+
import { addElemWithDataAppToBody, disableTransitions, sleep } from '../util'
54
import { mount } from '@vue/test-utils'
65

76
describe('Vue Api Queries', () => {

src/core/BaseProxy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import {
77
} from 'axios'
88
import type { Errors } from '..'
99
import Validator from './Validator'
10-
import { hasFiles, objectToFormData } from '../util/formData'
10+
import { hasFiles, objectToFormData, removeDoubleSlash } from '../util'
1111
import qs, { ParsedQs } from 'qs'
12-
import { removeDoubleSlash } from '../util/string'
1312

1413
const validator = Validator
1514
const UNPROCESSABLE_ENTITY = 422

src/core/Validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { is, isArray } from '../util/objects'
1+
import { is, isArray } from '../util'
22

33
class Validator {
44
public errors: any

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ export {
3333
PaginationTransformer,
3434
BaseProxy as BaseService,
3535
}
36+
export * from './util'
3637
export default new VueApiQueries()

src/util/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export * from './createDom'
2+
export * from './formData'
3+
export * from './objects'
4+
export * from './promise'
5+
export * from './string'

0 commit comments

Comments
 (0)