Use kebab case instead of camel case

This commit is contained in:
tniezg
2021-08-18 18:14:49 +02:00
parent 17f8d497b8
commit c150a79a6b
28 changed files with 39 additions and 39 deletions

View File

@@ -7,7 +7,7 @@ import type {
import type { IProducts } from '@spree/storefront-api-v2-sdk/types/interfaces/Product'
import type { SpreeApiConfig, SpreeApiProvider } from '../index'
import type { SpreeSdkVariables } from 'framework/spree/types'
import normalizeProduct from 'framework/spree/utils/normalizeProduct'
import normalizeProduct from '@framework/utils/normalize-product'
export default function getAllProductsOperation({
commerce,

View File

@@ -7,7 +7,7 @@ import type {
import type { IProduct } from '@spree/storefront-api-v2-sdk/types/interfaces/Product'
import type { SpreeSdkVariables } from 'framework/spree/types'
import MissingSlugVariableError from 'framework/spree/errors/MissingSlugVariableError'
import normalizeProduct from 'framework/spree/utils/normalizeProduct'
import normalizeProduct from '@framework/utils/normalize-product'
export default function getProductOperation({
commerce,

View File

@@ -7,7 +7,7 @@ import type {
ITaxons,
TaxonAttr,
} from '@spree/storefront-api-v2-sdk/types/interfaces/Taxon'
import { requireConfigValue } from 'framework/spree/isomorphicConfig'
import { requireConfigValue } from '@framework/isomorphic-config'
import type { SpreeSdkVariables } from 'framework/spree/types'
import type { SpreeApiConfig, SpreeApiProvider } from '..'

View File

@@ -1,17 +1,17 @@
import { SpreeApiConfig } from '..'
import { errors, makeClient } from '@spree/storefront-api-v2-sdk'
import { requireConfigValue } from 'framework/spree/isomorphicConfig'
import convertSpreeErrorToGraphQlError from 'framework/spree/utils/convertSpreeErrorToGraphQlError'
import { requireConfigValue } from '@framework/isomorphic-config'
import convertSpreeErrorToGraphQlError from '@framework/utils/convert-spree-error-to-graph-ql-error'
import type { ResultResponse } from '@spree/storefront-api-v2-sdk/types/interfaces/ResultResponse'
import type {
JsonApiListResponse,
JsonApiSingleResponse,
} from '@spree/storefront-api-v2-sdk/types/interfaces/JsonApi'
import getSpreeSdkMethodFromEndpointPath from 'framework/spree/utils/getSpreeSdkMethodFromEndpointPath'
import getSpreeSdkMethodFromEndpointPath from '@framework/utils/get-spree-sdk-method-from-endpoint-path'
import { SpreeSdkVariables } from 'framework/spree/types'
import SpreeSdkMethodFromEndpointPathError from 'framework/spree/errors/SpreeSdkMethodFromEndpointPathError'
import { GraphQLFetcher, GraphQLFetcherResult } from '@commerce/api'
import createCustomizedFetchFetcher from '../../utils/createCustomizedFetchFetcher'
import createCustomizedFetchFetcher from '@framework/utils/create-customized-fetch-fetcher'
import fetch, { Request } from 'node-fetch'
const createApiFetch: (