diff --git a/README.md b/README.md index 598c848..dce5617 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ Using a different basePath ```javascript const { privateFunction } = jewire( - '../src/private-module.cjs', + 'private-module', { basePath: process.cwd() } ); ``` @@ -114,7 +114,7 @@ Using a different clone function from the default `clone.objectClone`: ```javascript const { privateFunction } = jewire( - '../src/private-module.cjs', + 'private-module', { objectClone: (obj) => JSON.parse(JSON.stringify(obj)) } ); ``` diff --git a/package-lock.json b/package-lock.json index 0050261..d453a99 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "jewire", - "version": "1.0.3", + "version": "1.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jewire", - "version": "1.0.3", + "version": "1.0.4", "license": "MIT", "dependencies": { "meriyah": "^4.3.7", @@ -14,8 +14,8 @@ }, "devDependencies": { "@types/jest": "^29.5.6", - "@types/node": "^20.8.6", - "@types/rewire": "^2.5.28", + "@types/node": "^20.8.7", + "@types/rewire": "^2.5.29", "@typescript-eslint/eslint-plugin": "^6.8.0", "@typescript-eslint/parser": "^6.8.0", "eslint": "^8.51.0", @@ -1405,18 +1405,18 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.8.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.6.tgz", - "integrity": "sha512-eWO4K2Ji70QzKUqRy6oyJWUeB7+g2cRagT3T/nxYibYcT4y2BDL8lqolRXjTHmkZCdJfIPaY73KbJAZmcryxTQ==", + "version": "20.8.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.7.tgz", + "integrity": "sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==", "dev": true, "dependencies": { "undici-types": "~5.25.1" } }, "node_modules/@types/rewire": { - "version": "2.5.28", - "resolved": "https://registry.npmjs.org/@types/rewire/-/rewire-2.5.28.tgz", - "integrity": "sha512-uD0j/AQOa5le7afuK+u+woi8jNKF1vf3DN0H7LCJhft/lNNibUr7VcAesdgtWfEKveZol3ZG1CJqwx2Bhrnl8w==", + "version": "2.5.29", + "resolved": "https://registry.npmjs.org/@types/rewire/-/rewire-2.5.29.tgz", + "integrity": "sha512-rXvBDElIpK8c/DLA5JRVjPsY4Sk7pNHYRIgxtbnXd8an4diuH4eoDzVrb9wTTFWI+wLV7sT2vonJj4TJgMz/JQ==", "dev": true }, "node_modules/@types/semver": { diff --git a/package.json b/package.json index 4f5c945..ada7e10 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type": "git", "url": "https://github.com/nktnet1/jewire" }, - "version": "1.0.3", + "version": "1.0.4", "files": [ "dist" ], @@ -42,8 +42,8 @@ "description": "Rewire private modules for use within Jest.", "devDependencies": { "@types/jest": "^29.5.6", - "@types/node": "^20.8.6", - "@types/rewire": "^2.5.28", + "@types/node": "^20.8.7", + "@types/rewire": "^2.5.29", "@typescript-eslint/eslint-plugin": "^6.8.0", "@typescript-eslint/parser": "^6.8.0", "eslint": "^8.51.0",