Browse Source

fix: subpaths exports (#32)

pull/33/head v3.1.1
DoneDeal0 6 months ago committed by GitHub
parent
commit
e77b875677
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      README.md
  2. 4
      package-lock.json
  3. 21
      package.json

2
README.md

@ -307,7 +307,7 @@ getListDiff(
```js ```js
// If you are in a server environment // If you are in a server environment
import { streamListDiff } from "@donedeal0/superdiff/server.cjs"; import { streamListDiff } from "@donedeal0/superdiff/server";
// If you are in a browser environment // If you are in a browser environment
import { streamListDiff } from "@donedeal0/superdiff/client"; import { streamListDiff } from "@donedeal0/superdiff/client";
``` ```

4
package-lock.json generated

@ -1,12 +1,12 @@
{ {
"name": "@donedeal0/superdiff", "name": "@donedeal0/superdiff",
"version": "3.0.0", "version": "3.1.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@donedeal0/superdiff", "name": "@donedeal0/superdiff",
"version": "3.0.0", "version": "3.1.0",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.14.0", "@eslint/js": "^9.14.0",

21
package.json

@ -1,26 +1,17 @@
{ {
"name": "@donedeal0/superdiff", "name": "@donedeal0/superdiff",
"version": "3.1.0", "version": "3.2.0",
"type": "module", "type": "module",
"description": "SuperDiff compares two arrays or objects and returns a full diff of their differences", "description": "SuperDiff compares two arrays or objects and returns a full diff of their differences",
"main": "dist/index.js", "main": "dist/index.js",
"module": "dist/index.mjs", "module": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"declaration": true, "declaration": true,
"files": [ "files": ["dist"],
"dist"
],
"exports": { "exports": {
".": { ".": "./dist/index.js",
"import": "./dist/index.mjs", "./client": "./dist/client.js",
"require": "./dist/index.js" "./server": "./dist/server.cjs"
},
"./client": {
"default": "./dist/client.mjs"
},
"./server": {
"default": "./dist/server.cjs"
}
}, },
"author": "DoneDeal0", "author": "DoneDeal0",
"license": "ISC", "license": "ISC",

Loading…
Cancel
Save