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

5
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "superdiff",
"version": "1.0.0",
"name": "@donedeal0/superdiff",
"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",
"main": "src/index.ts",
"module": "dist/index.js",
@ -32,6 +32,7 @@ @@ -32,6 +32,7 @@
],
"scripts": {
"build": "tsup --dts --format esm,cjs",
"publish": "npm publish --access=public",
"test": "jest"
},
"devDependencies": {

Loading…
Cancel
Save