Browse Source

fix: scope

pull/6/head
DoneDeal0 2 years ago
parent
commit
8f8122ac5d
  1. 8
      README.md
  2. 5
      package.json

8
README.md

@ -124,7 +124,7 @@ const objectB = {
### getObjectDiff() ### getObjectDiff()
```js ```js
import { getObjectDiff } from "superdiff"; import { getObjectDiff } from "@donedeal0/superdiff";
``` ```
Compares two objects and return a diff for each value and their potential subvalues: Compares two objects and return a diff for each value and their potential subvalues:
@ -160,7 +160,7 @@ type ObjectDiff = {
### getListDiff() ### getListDiff()
```js ```js
import { getListDiff } from "superdiff"; import { getListDiff } from "@donedeal0/superdiff";
``` ```
Compares two arrays and return a diff for each value: Compares two arrays and return a diff for each value:
@ -190,7 +190,7 @@ type ListDiff = {
### isEqual() ### isEqual()
```js ```js
import { isEqual } from "superdiff"; import { isEqual } from "@donedeal0/superdiff";
``` ```
Checks if two values are equal. Checks if two values are equal.
@ -198,7 +198,7 @@ Checks if two values are equal.
### isObject() ### isObject()
```js ```js
import { isObject } from "superdiff"; import { isObject } from "@donedeal0/superdiff";
``` ```
Checks if a value is an object. Checks if a value is an object.

5
package.json

@ -1,6 +1,6 @@
{ {
"name": "superdiff", "name": "@donedeal0/superdiff",
"version": "1.0.0", "version": "1.0.1",
"description": "SuperDiff checks the changes between two objects or arrays. It returns a complete diff with relevant information for each property or piece of data", "description": "SuperDiff checks the changes between two objects or arrays. It returns a complete diff with relevant information for each property or piece of data",
"main": "src/index.ts", "main": "src/index.ts",
"module": "dist/index.js", "module": "dist/index.js",
@ -32,6 +32,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup --dts --format esm,cjs", "build": "tsup --dts --format esm,cjs",
"publish": "npm publish --access=public",
"test": "jest" "test": "jest"
}, },
"devDependencies": { "devDependencies": {

Loading…
Cancel
Save