diff --git a/.changeset/neat-brooms-switch.md b/.changeset/neat-brooms-switch.md deleted file mode 100644 index 00d1e27..0000000 --- a/.changeset/neat-brooms-switch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cuppachino/proxy-fn': major ---- - -add tests and pass all cases diff --git a/CHANGELOG.md b/CHANGELOG.md index ac572ac..9f40640 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @cuppachino/proxy-fn +## 1.0.0 + +### Major Changes + +- 6f7692d: add tests and pass all cases + ## 0.0.2 ### Patch Changes diff --git a/package.json b/package.json index 184220b..e4c2ecb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cuppachino/proxy-fn", - "version": "0.0.2", + "version": "1.0.0", "description": "", "type": "module", "main": "dist/cjs/index.js", diff --git a/src/modules/index.ts b/src/modules/index.ts index fd7743c..16a3cc8 100644 --- a/src/modules/index.ts +++ b/src/modules/index.ts @@ -1 +1 @@ -export * from './proxy-fn.js' \ No newline at end of file +export * from './proxy-fn.js' diff --git a/src/types/index.ts b/src/types/index.ts index 4cf6f46..662662a 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,4 +1,4 @@ -export type * from "./is-never.js"; -export type * from "./is-empty.js"; -export type * from "./maybe-promise.js"; -export type * from "./assigned.js"; \ No newline at end of file +export type * from './is-never.js' +export type * from './is-empty.js' +export type * from './maybe-promise.js' +export type * from './assigned.js' diff --git a/src/types/is-empty.ts b/src/types/is-empty.ts index 4976a05..240a3db 100644 --- a/src/types/is-empty.ts +++ b/src/types/is-empty.ts @@ -1,3 +1,3 @@ -import type { IsNever } from "./is-never.js"; +import type { IsNever } from './is-never.js' -export type IsEmpty = IsNever> \ No newline at end of file +export type IsEmpty = IsNever> diff --git a/src/types/is-never.ts b/src/types/is-never.ts index 82aa15a..94146a2 100644 --- a/src/types/is-never.ts +++ b/src/types/is-never.ts @@ -1 +1 @@ -export type IsNever = [T] extends [never] ? true : false; \ No newline at end of file +export type IsNever = [T] extends [never] ? true : false diff --git a/src/utils/is-promise.ts b/src/utils/is-promise.ts index 601497a..6510abf 100644 --- a/src/utils/is-promise.ts +++ b/src/utils/is-promise.ts @@ -2,8 +2,6 @@ * Returns true if the given thing is a promise. * @param anything The thing to check. Might be undefined. */ -export const isPromise = ( - anything: T | Promise | undefined -): anything is Promise => { +export const isPromise = (anything: T | Promise | undefined): anything is Promise => { return !!anything && anything instanceof Promise }