@revolugo/common
Advanced tools
Comparing version 5.26.2 to 6.0.0-beta.0
{ | ||
"name": "@revolugo/common", | ||
"version": "5.26.2", | ||
"version": "6.0.0-beta.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Revolugo common", |
/* eslint-disable max-lines */ | ||
import MockDate from 'mockdate' | ||
@@ -1038,1 +1037,2 @@ import { describe, expect, test } from 'vitest' | ||
}) | ||
/* eslint-enable max-lines */ |
@@ -1835,2 +1835,3 @@ import { map, pickBy } from 'lodash-es' | ||
} | ||
/* eslint-enable camelcase, max-lines */ | ||
@@ -1837,0 +1838,0 @@ export const SUPPORTED_CURRENCIES_MAP: Record< |
import type { ApiVersion, Environment } from '../constants/environment.ts' | ||
export type ApiVersions = `${ApiVersion}` | ||
export type ApiVersions = ApiVersion | ||
export interface ApiClientConfig<U> { | ||
@@ -5,0 +5,0 @@ apiBaseUrl?: string |
@@ -11,1 +11,7 @@ export enum StripeErrorCode { | ||
} | ||
export enum PaymentProvider { | ||
Stripe = 'STRIPE', | ||
Qonto = 'QONTO', | ||
IbanFirst = 'IBANFIRST', | ||
} |
@@ -1,2 +0,1 @@ | ||
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unnecessary-type-parameters, @typescript-eslint/explicit-module-boundary-types */ | ||
import { camelCase, kebabCase, pascalCase, snakeCase } from 'change-case' | ||
@@ -56,2 +55,3 @@ import { reduce, startCase } from 'lodash-es' | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
export function keysChangeCase<T = any>( | ||
@@ -64,2 +64,3 @@ obj: any[], | ||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters | ||
export function keysChangeCase<T = any>( | ||
@@ -72,2 +73,3 @@ obj: unknown, | ||
export function keysChangeCase<T>( | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
obj: any, | ||
@@ -99,1 +101,2 @@ toCase: CaseTransformer, | ||
} | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ |
@@ -1,2 +0,2 @@ | ||
/* eslint-disable no-restricted-imports, no-restricted-syntax, import/no-unassigned-import, import-x/no-named-as-default-member */ | ||
/* eslint-disable no-restricted-imports, no-restricted-syntax */ | ||
import dayjs from 'dayjs' | ||
@@ -11,6 +11,10 @@ import advancedFormat from 'dayjs/plugin/advancedFormat.js' | ||
import utc from 'dayjs/plugin/utc.js' | ||
/* eslint-enable no-restricted-imports, no-restricted-syntax */ | ||
/* eslint-disable no-restricted-syntax, import/no-unassigned-import */ | ||
import 'dayjs/locale/fr.js' | ||
import 'dayjs/locale/en.js' | ||
/* eslint-enable no-restricted-syntax, import/no-unassigned-import */ | ||
/* eslint-disable import-x/no-named-as-default-member */ | ||
dayjs.extend(advancedFormat) | ||
@@ -24,4 +28,6 @@ dayjs.extend(isBetween) | ||
dayjs.extend(utc) | ||
/* eslint-enable import-x/no-named-as-default-member */ | ||
export { dayjs } | ||
/* eslint-disable-next-line no-restricted-imports */ | ||
export type { Dayjs } from 'dayjs' |
@@ -15,1 +15,2 @@ export * from './case-transformers.ts' | ||
export * from './countries.ts' | ||
export * from './uniq-by.ts' |
@@ -1,5 +0,5 @@ | ||
/* eslint-disable no-bitwise */ | ||
export const generateNumbersFromStr = (str: string): [number, number] => { | ||
let hash = 5381 | ||
for (let i = 0; i < str.length; i++) { | ||
// eslint-disable-next-line no-bitwise | ||
hash = (hash << 5) + hash + str.charCodeAt(i) | ||
@@ -9,3 +9,5 @@ } | ||
// Generate two numbers using the hash | ||
// eslint-disable-next-line no-bitwise | ||
const num1 = (hash & 0xff_ff) / 0xff_ff | ||
// eslint-disable-next-line no-bitwise | ||
const num2 = ((hash >> 16) & 0xff_ff) / 0xff_ff | ||
@@ -12,0 +14,0 @@ |
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
172011
46
6848
2