{ "name": "diff", "version": "9.0.0", "description": "A JavaScript text diff implementation.", "keywords": [ "diff", "jsdiff", "compare", "patch", "text", "json", "css", "javascript" ], "maintainers": [ "Kevin Decker (http://incaseofstairs.com)", "Mark Amery " ], "bugs": "http://github.com/kpdecker/jsdiff/issues", "license": "BSD-3-Clause", "repository": { "type": "git", "url": "https://github.com/kpdecker/jsdiff.git" }, "main": "./libcjs/index.js", "module": "./libesm/index.js", "browser": "./dist/diff.js", "unpkg": "./dist/diff.js", "exports": { ".": { "import": { "types": "./libesm/index.d.ts", "default": "./libesm/index.js" }, "require": { "types": "./libcjs/index.d.ts", "default": "./libcjs/index.js" } }, "./package.json": "./package.json", "./lib/*.js": { "import": { "types": "./libesm/*.d.ts", "default": "./libesm/*.js" }, "require": { "types": "./libcjs/*.d.ts", "default": "./libcjs/*.js" } }, "./lib/": { "import": { "types": "./libesm/", "default": "./libesm/" }, "require": { "types": "./libcjs/", "default": "./libcjs/" } } }, "type": "module", "types": "libcjs/index.d.ts", "scripts": { "clean": "rm -rf libcjs/ libesm/ dist/ coverage/", "lint": "yarn eslint", "build": "yarn lint && yarn generate-esm && yarn generate-cjs && yarn check-types && yarn run-rollup && yarn run-uglify", "generate-cjs": "yarn tsc --module commonjs --outDir libcjs && node --eval \"fs.writeFileSync('libcjs/package.json', JSON.stringify({type:'commonjs',sideEffects:false}))\"", "generate-esm": "yarn tsc --module nodenext --outDir libesm --sourceMap && node --eval \"fs.writeFileSync('libesm/package.json', JSON.stringify({type:'module',sideEffects:false}))\"", "check-types": "yarn run-tsd && yarn run-attw", "test": "c8 yarn _test", "_test": "yarn build && yarn run-mocha", "run-attw": "yarn attw --pack --entrypoints . && yarn attw --pack --entrypoints lib/diff/word.js --profile node16", "run-tsd": "yarn tsd --typings libesm/ && yarn tsd --files test-d/", "run-rollup": "rollup -c rollup.config.mjs", "run-uglify": "uglifyjs dist/diff.js -c -o dist/diff.min.js", "run-mocha": "mocha 'test/**/*.js'" }, "devDependencies": { "@arethetypeswrong/cli": "^0.18.5", "@colors/colors": "^1.6.1", "@eslint/js": "^10.0.1", "c8": "^12.0.0", "chai": "^6.3.0", "eslint": "^10.15.0", "globals": "^17.14.0", "karma": "^6.4.4", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", "karma-sourcemap-loader": "^0.4.0", "karma-webpack": "^5.0.1", "mocha": "^12.0.3", "rollup": "^4.68.7", "tsd": "^0.33.0", "typescript": "^6.0.2", "typescript-eslint": "^8.73.0", "uglify-js": "^3.19.3", "webpack": "^5.112.2", "webpack-dev-server": "^6.1.0" }, "c8": { "reporter": [ "lcov", "text" ], "include": [ "libesm/**/*.js" ], "check-coverage": true, "branches": 95, "lines": 98, "functions": 100, "statements": 98 }, "packageManager": "yarn@4.18.1" }