diff --git a/.prettierignore b/.prettierignore index ff29d00..a1a5066 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,6 +1,6 @@ /coverage/ /dist/ -/etc/typesafer.api.md +/etc/caketype.api.md /temp/ /types/ .eslintcache diff --git a/README.md b/README.md index b4039ad..a5b35ca 100644 --- a/README.md +++ b/README.md @@ -100,11 +100,11 @@ These functions can be imported directly, or accessed as properties of `MapUtils ```ts const nestedMap: Map> = new Map(); -import { deepSet } from "typesafer"; +import { deepSet } from "caketype"; deepSet(nestedMap, 3, "hi", 7); // Map { 3 -> Map { "hi" -> 7 } } // alternatively: -import { MapUtils } from "typesafer"; +import { MapUtils } from "caketype"; MapUtils.deepSet(nestedMap, 3, "hi", 7); // Map { 3 -> Map { "hi" -> 7 } } ``` @@ -357,11 +357,11 @@ These functions can be imported directly, or accessed as properties of `ObjectUtils`: ```ts -import { merge } from "typesafer"; +import { merge } from "caketype"; merge({ a: 1 }, { b: 2 }); // { a: 1, b: 2 } // alternatively: -import { ObjectUtils } from "typesafer"; +import { ObjectUtils } from "caketype"; ObjectUtils.merge({ a: 1 }, { b: 2 }); // { a: 1, b: 2 } ``` diff --git a/etc/typesafer.api.md b/etc/caketype.api.md similarity index 99% rename from etc/typesafer.api.md rename to etc/caketype.api.md index fbdebdd..02f6433 100644 --- a/etc/typesafer.api.md +++ b/etc/caketype.api.md @@ -1,4 +1,4 @@ -## API Report File for "typesafer" +## API Report File for "caketype" > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). diff --git a/package-lock.json b/package-lock.json index 4d7f6a8..becc93e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "typesafer", + "name": "caketype", "version": "0.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "typesafer", + "name": "caketype", "version": "0.1.0", "license": "MIT", "devDependencies": { diff --git a/package.json b/package.json index 72f7484..3d900f5 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,17 @@ { - "name": "typesafer", + "name": "caketype", "version": "0.1.0", "description": "Runtime type checking and other type-safe helpers for TypeScript", "author": "Justin Yao Du ", "license": "MIT", - "homepage": "https://github.com/justinyaodu/typesafer", - "bugs": "https://github.com/justinyaodu/typesafer/issues", - "repository": "github:justinyaodu/typesafer", + "homepage": "https://github.com/justinyaodu/caketype", + "bugs": "https://github.com/justinyaodu/caketype/issues", + "repository": "github:justinyaodu/caketype", "files": [ "dist/" ], "main": "dist/index.js", - "types": "dist/typesafer.d.ts", + "types": "dist/caketype.d.ts", "scripts": { "clean": "rm -rf dist/* types/*", "build": "mkdir -p dist/ types/ && npm run clean && tsc && api-extractor run", diff --git a/src/MapUtils.ts b/src/MapUtils.ts index 6c86161..ee04cae 100644 --- a/src/MapUtils.ts +++ b/src/MapUtils.ts @@ -438,11 +438,11 @@ function deepSet, K extends [unknown, ...unknown[]]>( * ```ts * const nestedMap: Map> = new Map(); * - * import { deepSet } from "typesafer"; + * import { deepSet } from "caketype"; * deepSet(nestedMap, 3, "hi", 7); // Map { 3 -> Map { "hi" -> 7 } } * * // alternatively: - * import { MapUtils } from "typesafer"; + * import { MapUtils } from "caketype"; * MapUtils.deepSet(nestedMap, 3, "hi", 7); // Map { 3 -> Map { "hi" -> 7 } } * ``` * diff --git a/src/ObjectUtils.ts b/src/ObjectUtils.ts index e8b1eef..fe28b2c 100644 --- a/src/ObjectUtils.ts +++ b/src/ObjectUtils.ts @@ -576,11 +576,11 @@ function pick( * `ObjectUtils`: * * ```ts - * import { merge } from "typesafer"; + * import { merge } from "caketype"; * merge({ a: 1 }, { b: 2 }); // { a: 1, b: 2 } * * // alternatively: - * import { ObjectUtils } from "typesafer"; + * import { ObjectUtils } from "caketype"; * ObjectUtils.merge({ a: 1 }, { b: 2 }); // { a: 1, b: 2 } * ``` *