{"_id":"yaml-diff-patch","_rev":"6-30337a251e463762255ee619d02783cc","name":"yaml-diff-patch","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"yaml-diff-patch","version":"1.0.0","description":"Apply a JSON diff/patch to YAML while preserving whitespace, comments and overall structure","author":{"name":"Gustaf Räntilä"},"license":"MIT","bugs":{"url":"https://github.com/grantila/yaml-diff-patch/issues"},"homepage":"https://github.com/grantila/yaml-diff-patch#readme","main":"./dist/index.js","types":"./dist/index.d.ts","directories":{},"engines":{"node":">=12"},"bin":{"yaml-patch":"dist/bin/yaml-patch.js","yaml-diff-patch":"dist/bin/yaml-patch.js","yaml-overwrite":"dist/bin/yaml-patch.js"},"scripts":{"build":"rimraf dist && tsc -p tsconfig.prod.json","test":"jest","cz":"git-cz"},"repository":{"type":"git","url":"git+https://github.com/grantila/yaml-diff-patch.git"},"keywords":["yaml","diff","patch","json","rfc6902"],"devDependencies":{"@types/jest":"^26.0.23","commitizen":"^4.2.4","jest":"^27.0.4","rimraf":"^3.0.2","ts-jest":"^27.0.2","typescript":"^4.3.2"},"dependencies":{"oppa":"^0.4.0","rfc6902":"^4.0.2","yaml":"^1.10.2"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"jest":{"preset":"ts-jest","testEnvironment":"node","testMatch":["<rootDir>/lib/**/*.test.ts"],"collectCoverageFrom":["<rootDir>/lib/**"],"coveragePathIgnorePatterns":["/node_modules/","/__snapshots__/","/bin/"],"coverageReporters":["lcov","text","html"]},"gitHead":"40c97b52c625d380e53bd5c59de7b2e055ffb43e","_id":"yaml-diff-patch@1.0.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-1zYe4rBs8QXTcw0hD25JxDCh+3YAYzFn9/eAKlBVh9qctPWivCMYek0U4y4kvEQuZlufBtspaAJI9OCInemQbQ==","shasum":"0437879ad981f04fbf04302d23295787db535dd2","tarball":"https://registry.npmjs.org/yaml-diff-patch/-/yaml-diff-patch-1.0.0.tgz","fileCount":11,"unpackedSize":21717,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxlb+CRA9TVsSAnZWagAAHb0P/RtYy278NJQGbBEqwrqU\nQRWiH5NqSEQ5ih661c3eSny3iB9MSmsg2tebvvIjeI0I2k4/q5kJmPfqFVWm\nO/zbMircVmEjulyuRs58nopmesewKJifSSfzcZAiBLkXV8AtEs/w7pdqc0Vv\nTShg2B12Ots9rDudtIOnt4+HRGP4WfZS0ujBg8yAtrYFPbWm4fhNZa5GI5bN\nXlenoDbUALpBn7AjCSB8/CGvvy82Vb6uFKfgCaq41CXRmULxcvkmsOKTswUB\n50BwfoyRn1FWgNO+EbY7OBIek7MRbceHgCSpTPue2SBu1/3oJLD5str4ltoM\nHp/bKu6DqmPUFsPJ2IWcyP8ANKuYwDlrpxVQ8sDulp6dvV3dKluRa7kPdmxt\n67LBd9Y8RdwST8xlNQVRWdf6zJxPrPLitKRqPMBCkoWl8NiPwHXW+WRyA1BT\nuJwW8LCWvMuY0zh1qIjDiozbRHl9i25qOOJbSfHKlHzMK1hCt3wLG+7/SWjY\nlkBclxwG79NRUZDcCUkf+wdvZS7Tt6j2P4dFIMf8HqqPGYY+NjbRUnznXL97\nwLB/OPhsrt8feLM23K+OMtK8H/71sGA5yDf5NVd38Ivb7Z3nvoBaWmnFf8aM\ncouseOMJ/UsZogWABzQ+TZ0dg6AaQSae4YKgWyUbpe3atVchzZxFRJSdZsgK\nPIua\r\n=IT+1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9CmJLmmW9HelcQ0XtSyYOY35skjkMbI8n89vTVicXTAiEArsZz/OtneSB/gZknm4aeV83fC2SGqsItndpN/2JLrVk="}]},"_npmUser":{"name":"grantila","email":"g.rantila@gmail.com"},"maintainers":[{"name":"grantila","email":"g.rantila@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-diff-patch_1.0.0_1623611134007_0.5985162686388517"},"_hasShrinkwrap":false},"1.0.1":{"name":"yaml-diff-patch","version":"1.0.1","description":"Apply a JSON diff/patch to YAML while preserving whitespace, comments and overall structure","author":{"name":"Gustaf Räntilä"},"license":"MIT","bugs":{"url":"https://github.com/grantila/yaml-diff-patch/issues"},"homepage":"https://github.com/grantila/yaml-diff-patch#readme","main":"./dist/index.js","types":"./dist/index.d.ts","directories":{},"engines":{"node":">=12"},"bin":{"yaml-patch":"dist/bin/yaml-patch.js","yaml-diff-patch":"dist/bin/yaml-patch.js","yaml-overwrite":"dist/bin/yaml-patch.js"},"scripts":{"build":"rimraf dist && tsc -p tsconfig.prod.json","test":"jest","cz":"git-cz"},"repository":{"type":"git","url":"git+https://github.com/grantila/yaml-diff-patch.git"},"keywords":["yaml","diff","patch","json","rfc6902"],"devDependencies":{"@types/jest":"^26.0.23","commitizen":"^4.2.4","jest":"^27.0.4","rimraf":"^3.0.2","ts-jest":"^27.0.2","typescript":"^4.3.2"},"dependencies":{"oppa":"^0.4.0","rfc6902":"^4.0.2","yaml":"^1.10.2"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"jest":{"preset":"ts-jest","testEnvironment":"node","testMatch":["<rootDir>/lib/**/*.test.ts"],"collectCoverageFrom":["<rootDir>/lib/**"],"coveragePathIgnorePatterns":["/node_modules/","/__snapshots__/","/bin/"],"coverageReporters":["lcov","text","html"]},"gitHead":"8b81501ee31d003338dcbd1087b9a4065769bfcc","_id":"yaml-diff-patch@1.0.1","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-UXhPefQ2GYcyFfNTQFz/PCK1eTK9LbIXdBFbWhjICHQ97yvKbzjCst1a781AEmFs5SRlQKAbM/mk/DOajzxnhw==","shasum":"7a8fe0d593b9930470bfe46594a04ba6d335179d","tarball":"https://registry.npmjs.org/yaml-diff-patch/-/yaml-diff-patch-1.0.1.tgz","fileCount":11,"unpackedSize":26288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxoFzCRA9TVsSAnZWagAAgH4P/0fTxAcIx+sZt3mKYkPZ\nHnDTn/xKgLL6yfFlzfhf9JytQHGsFJ6eWSmmlRN8HlZXITnUXqDLcdYQV51c\nczova+Axngu1Qj7EEiJHI3c166Hvq3AxuURKQvWRZvExCbI9MOJylGeZNmmF\nBP+vexM8MfahDD5DFIEWHjQ6svyIUjX5339+m3XFFr2YPtF4muDHHd8yxw+e\nbls4ns5uE9Iutaycze7gyB8K747PI4VDn6QeVxRvgz/wvz4pexapV9CHZytN\nstYduz59kxeIxDF1D6qIe69v2UEa3LZElJIRdrLLIr4nMET/wxWJo4H+4qVv\nOlDZ4LjqTBup6KjQmOKYvbWIx092s3oOvTy/Yc6AcI3AP8W9riYzgbrfEAac\n8svoJMFUG0l5k2dcDjmpEkgWVCjb5v8oIpuNIg22JLsNln8pAcayFg0PtR+J\nSQuc9Wygcam7Z/0Ax1vzLN4UNhbC3uAZcDG3eU+0ytcaStr2A7HeP0GrIJX9\neaWZ7IT+0ZquyWokyydvR3K49pUle/vnwb3lrqaxKDi/wNnAysr2XrvgXbNK\nd2/LJtGpSIH/JLeoJBPNouR+QZpGGV9Sfa1mRZL7fp7I/qHJwaPOPxGP2npP\nxhrOHqSz9u7CToe3eAv5ZI5WTkkD/TefkfZqU6A1xPIDmnSLWqEpEF+GX8aK\ncRyQ\r\n=WG+e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoDsJjuYClzPZxPiD0uqf2k/hgFXy/zOp31DWfj5PXoAiB5Nvn2pGgvJL8LwSQpDS31CZ8qdaGs6tKkiSF/ph8vOA=="}]},"_npmUser":{"name":"grantila","email":"g.rantila@gmail.com"},"maintainers":[{"name":"grantila","email":"g.rantila@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-diff-patch_1.0.1_1623622002952_0.0885326351075737"},"_hasShrinkwrap":false},"1.0.2":{"name":"yaml-diff-patch","version":"1.0.2","description":"Apply a JSON diff/patch to YAML while preserving whitespace, comments and overall structure","author":{"name":"Gustaf Räntilä"},"license":"MIT","bugs":{"url":"https://github.com/grantila/yaml-diff-patch/issues"},"homepage":"https://github.com/grantila/yaml-diff-patch#readme","main":"./dist/index.js","types":"./dist/index.d.ts","directories":{},"engines":{"node":">=12"},"bin":{"yaml-patch":"dist/bin/yaml-patch.js","yaml-diff-patch":"dist/bin/yaml-patch.js","yaml-overwrite":"dist/bin/yaml-patch.js"},"scripts":{"build":"rimraf dist && tsc -p tsconfig.prod.json","test":"jest","cz":"git-cz"},"repository":{"type":"git","url":"git+https://github.com/grantila/yaml-diff-patch.git"},"keywords":["yaml","diff","patch","json","rfc6902"],"devDependencies":{"@types/jest":"^26.0.23","commitizen":"^4.2.4","jest":"^27.0.4","rimraf":"^3.0.2","ts-jest":"^27.0.2","typescript":"^4.3.2"},"dependencies":{"oppa":"^0.4.0","rfc6902":"^4.0.2","yaml":"^1.10.2"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"jest":{"preset":"ts-jest","testEnvironment":"node","testMatch":["<rootDir>/lib/**/*.test.ts"],"collectCoverageFrom":["<rootDir>/lib/**"],"coveragePathIgnorePatterns":["/node_modules/","/__snapshots__/","/bin/"],"coverageReporters":["lcov","text","html"]},"gitHead":"50dc107006cfcd7fdfab9663ca17136d8f5267c2","_id":"yaml-diff-patch@1.0.2","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-Jx0nSJGvY5ge6d7cYHLGR4WyHzLua3iKjl7h8CgFPwc3nOVtb0cQAd+/HiOoOdZLWU6hYZcOJAbfCyIW/uVU8Q==","shasum":"76160d9ffcad10ecf9a5f03496cf3a70c78668e2","tarball":"https://registry.npmjs.org/yaml-diff-patch/-/yaml-diff-patch-1.0.2.tgz","fileCount":11,"unpackedSize":26237,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxzcfCRA9TVsSAnZWagAA/RcP/2KOlD6SWZF+SdlYjziW\nPRQz/g/urbstbmKCRKe032aNyuoE0SrRZH5vnX3AurUE5qrmNRV3lBvFv8q8\njSaqputUVy2qnviS2vFo1ZtG1U/cW4GQiD8Ejj3tCTZh/Z+mCo3kUAnBUibl\nJ4wNCXw2X7AwmMsuLwwn/uOz35+yYlendds8VN0xlvACsmLFB6ePjx+Ns7B5\n7Fg8aG2yPQVgtM/fJyVajUSWXqkNlNEiwCJI7M/NvMIT/obReiHr0sPPRvuy\nPbyf1iqEJX59crS2duivwk0w+FzQEOLppBTSuucoa9IbIVNVA6iqaYUMGiuB\niXWbb+5cBL9OJRrJBH+5Vny3xqTUpn4kC5Lqce21oNrkzddUW4vUYBWRNPBv\nUESoxPGcYcuSpx/9Z4kmIDBHlnhS4Ytj4pKHJUengrYyoQxkZ8gohA8nSqKF\naa5J5NYkcdpBfkjlsdD3R5rIikjstMxDmgLLmzc0s6j49aHZ6HQACJQqrGa7\njLLZrZF25BFEqiosUe3TMsDknSpJWDHVnkK2CLVjG6/mAMCI1Rw+ip8+6YZL\nhGznnwOfz/dFxlihrXmzqgb81w8Y3/Ui6zFDiG3HxX+zh8hQXhO8WPp+RmHX\nGSQovSsSyPGKOFT2rUPxu0biLdbNXHhGAjFwYWaKodW8JxVqNp3gwMqdsjOw\nw4MW\r\n=HOTd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCy12crASP+XMlF4/8DFb+4kJvwWmq7yYqDKB6b0r+sGwIgUihqm8tUkZSopnpiA4doa4Jxl0ksDVA10kR6jG8BKe0="}]},"_npmUser":{"name":"grantila","email":"g.rantila@gmail.com"},"maintainers":[{"name":"grantila","email":"g.rantila@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-diff-patch_1.0.2_1623668511480_0.988024185666831"},"_hasShrinkwrap":false},"1.1.0":{"name":"yaml-diff-patch","version":"1.1.0","description":"Apply a JSON diff/patch to YAML while preserving whitespace, comments and overall structure","author":{"name":"Gustaf Räntilä"},"license":"MIT","bugs":{"url":"https://github.com/grantila/yaml-diff-patch/issues"},"homepage":"https://github.com/grantila/yaml-diff-patch#readme","main":"./dist/index.js","types":"./dist/index.d.ts","directories":{},"engines":{"node":">=12"},"bin":{"yaml-patch":"dist/bin/yaml-patch.js","yaml-diff-patch":"dist/bin/yaml-patch.js","yaml-overwrite":"dist/bin/yaml-patch.js"},"scripts":{"build":"rimraf dist && tsc -p tsconfig.prod.json","test":"jest","cz":"git-cz"},"repository":{"type":"git","url":"git+https://github.com/grantila/yaml-diff-patch.git"},"keywords":["yaml","diff","patch","json","rfc6902"],"devDependencies":{"@types/jest":"^27.0.1","commitizen":"^4.2.4","jest":"^27.1.1","rimraf":"^3.0.2","ts-jest":"^27.0.5","typescript":"^4.4.3"},"dependencies":{"oppa":"^0.4.0","fast-json-patch":"^3.1.0","yaml":"^1.10.2"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"jest":{"preset":"ts-jest","testEnvironment":"node","testMatch":["<rootDir>/lib/**/*.test.ts"],"collectCoverageFrom":["<rootDir>/lib/**"],"coveragePathIgnorePatterns":["/node_modules/","/__snapshots__/","/bin/"],"coverageReporters":["lcov","text","html"]},"gitHead":"e693aafb2dfba2646770127af0b048d0cd4cc593","_id":"yaml-diff-patch@1.1.0","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-bXt3rgD1tRkKcufaEIGGmauioFwcdJTi8Vr3ymCXOHNRWn5zDY05uZOHDwgug2HEaLAeNzT6Q/Q3v56GxKvFZA==","shasum":"9a791d3bb76c8b8da20936d2f9b3a61bd87ead45","tarball":"https://registry.npmjs.org/yaml-diff-patch/-/yaml-diff-patch-1.1.0.tgz","fileCount":11,"unpackedSize":27388,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhPFWkCRA9TVsSAnZWagAAZTwP/2P3hZ0FKtGRQc4qKx4P\n7jviPMFoOPgZE81KiAR2SbGopDevorjigIS0BK7uJidn8hFTINIUWBgnCvrR\nK2WFpM4qazQjJvh6i4iSSwdAHHUJdPJsvaZGQaY89DcKSHa+Qq7VRYb9qxXu\ngF7jWm2d0xWF49dwcrOBPxaiZyM02ooI0rwRR401H+gt/oNB76tPv3Pkn5C9\nHHV7llCUkI2hg8PmKIQIqTiUgAaL9ptyKiqmIEYfDE1JylZLCfUcPIm5Oz3w\nO5XLJtjZ/gDf3w0kErlaDTaeoh/Bszp/W9qhGEtGay0yaOObo0oWcYiSrLEg\ntM4i/24J9UVi5IbeGWx4zi97GqCjNIm7+T9E7OBQ4/c2BIW7bDALS6jN9ZEJ\nEIyYwEdypNydTsujCAyEe7K7J/vGb+aw+QWlE6u41LD09htaxeanOyiiKC8l\n87su7aGEhZyDYSyNwlbQdum2ard/LWiCPRN5X/pcZDQCzIqYJAeldFHBlUwk\noqW0sPP6ei+aquqv2bM9mullWx+QczYIVux02gXEVFEN3XGnaoUXiWlppdmI\n9QOpmaBukhW4NQEleU+J8JgCeavgMSgXohx0Kxq2XnfN986/hdLvFlJ6UDag\nIzVllXFXQzIIsdhkil0cIjE8XVQEbKEXT4z/7PtOeYVlxs8fJf0NRcVlP84e\neFvI\r\n=uzmD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdq6WEwECOYGFB9k97X/5VJ/dgD3lxVs1/3hIf7PfgAwIgO/ruR+xe19y3VduxXWqA8HdrYypmzFKqItdmvsQ38NM="}]},"_npmUser":{"name":"grantila","email":"g.rantila@gmail.com"},"maintainers":[{"name":"grantila","email":"g.rantila@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-diff-patch_1.1.0_1631344036386_0.056251078912177954"},"_hasShrinkwrap":false},"1.2.0":{"name":"yaml-diff-patch","version":"1.2.0","description":"Apply a JSON diff/patch to YAML while preserving whitespace, comments and overall structure","author":{"name":"Gustaf Räntilä"},"license":"MIT","bugs":{"url":"https://github.com/grantila/yaml-diff-patch/issues"},"homepage":"https://github.com/grantila/yaml-diff-patch#readme","main":"./dist/index.js","types":"./dist/index.d.ts","directories":{},"engines":{"node":">=12"},"bin":{"yaml-patch":"dist/bin/yaml-patch.js","yaml-diff-patch":"dist/bin/yaml-patch.js","yaml-overwrite":"dist/bin/yaml-patch.js"},"scripts":{"build":"rimraf dist && tsc -p tsconfig.prod.json","test":"jest","cz":"git-cz"},"repository":{"type":"git","url":"git+https://github.com/grantila/yaml-diff-patch.git"},"keywords":["yaml","diff","patch","json","rfc6902"],"devDependencies":{"@types/jest":"^27.0.1","commitizen":"^4.2.4","jest":"^27.1.1","rimraf":"^3.0.2","ts-jest":"^27.0.5","typescript":"^4.5.4"},"dependencies":{"oppa":"^0.4.0","fast-json-patch":"^3.1.0","yaml":"^2.0.0-10"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"jest":{"preset":"ts-jest","testEnvironment":"node","testMatch":["<rootDir>/lib/**/*.test.ts"],"collectCoverageFrom":["<rootDir>/lib/**"],"coveragePathIgnorePatterns":["/node_modules/","/__snapshots__/","/bin/"],"coverageReporters":["lcov","text","html"]},"gitHead":"b66b8339216bdae4c8424cfc0706106ef3aaade5","_id":"yaml-diff-patch@1.2.0","_nodeVersion":"14.18.3","_npmVersion":"6.14.15","dist":{"integrity":"sha512-ldaXqI826EDaXYaE8UA8rwU24EMYodxesTih/L4LJ7Yc56H5sCiaWj2YQ/md9+stSyIA/c3GeWekeoQObokVfg==","shasum":"cc1ba19e2a4c06f9dc05cb76d4b6b1ff7c0579a4","tarball":"https://registry.npmjs.org/yaml-diff-patch/-/yaml-diff-patch-1.2.0.tgz","fileCount":11,"unpackedSize":32828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5fq3CRA9TVsSAnZWagAA0soP/RhbT0qEFQPk7YQbgDnU\nLx+iy3mP74uWWRRxE/jJmGfYpBvmCKc5lmE4VBiKSCy/pw+ixzMwOOzIWwWi\ndYo2OUPVpLhNDGsjfEi9a8sYv2H1xV9Q+V6bk+RyRddjLBmu8eU8LzaRm/W5\nie4PMeLfA56bTEn3CszXsKylkgYwR38yoibGVMf1TrK4PD1/yX3/yriUfA40\nXLFP1EX+zWveLDB/AHzgLi1er6TUWhGKJ8WC6Z+7JuCpO2mLF6oQ0DjI7uWJ\nPxstsputYu8W1D9lXEQSRMM1jJ8Pb4HFsOd5R4sI81qHNnuytmsczbH5RVVa\n1hf4uoScoGpcZBa8cIQFH5fzuxY+5FZDd2PcI0lBXPf/aS2Zp7e3Z4mKfbSS\n03ewf2V+4IkyPiX3gvl9+crXVlf+ha16wy37yAjBchE1/PBG7XYYMqwrsCA/\n//dkO4Yidt7YpfDlM4hnAdZJcJS7dbYb/5F9RpPv8RwmmA7hWnc1emtxfiOg\nIW1GZLqJyvFuXyEkB1Tdz5smJ4P0nqB/98fUOmcBNEhW/sV/G05C7zz+ei1O\n/BJZebMlkb8CXHtKU8Et9itlvOlR/yM3BFtc9+W4f8/nH2mRP1+vDvJr4uW3\nFmIX5ibACZ8gWeucGi9Z2XgPovItW4+AqwlVVxRseQFPTGTxTqo/GTHejf10\nxKq7\r\n=O2YD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6YffWd42cALKwG6cIdTa5gG+xPpKgKyQkX5GhkqPQzAiBQWSNkb6nzk6Yyjt4bGNFhuv0qso4s5/LojMnTuU1joA=="}]},"_npmUser":{"name":"grantila","email":"g.rantila@gmail.com"},"maintainers":[{"name":"grantila","email":"g.rantila@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-diff-patch_1.2.0_1642461879155_0.44527955939012087"},"_hasShrinkwrap":false},"2.0.0":{"name":"yaml-diff-patch","version":"2.0.0","description":"Apply a JSON diff/patch to YAML while preserving whitespace, comments and overall structure","author":{"name":"Gustaf Räntilä"},"license":"MIT","bugs":{"url":"https://github.com/grantila/yaml-diff-patch/issues"},"homepage":"https://github.com/grantila/yaml-diff-patch#readme","main":"./dist/index.js","types":"./dist/index.d.ts","directories":{},"engines":{"node":">=14"},"bin":{"yaml-patch":"dist/bin/yaml-patch.js","yaml-diff-patch":"dist/bin/yaml-patch.js","yaml-overwrite":"dist/bin/yaml-patch.js"},"scripts":{"build":"rimraf dist && tsc -p tsconfig.prod.json","test":"jest","cz":"git-cz"},"repository":{"type":"git","url":"git+https://github.com/grantila/yaml-diff-patch.git"},"keywords":["yaml","diff","patch","json","rfc6902"],"devDependencies":{"@types/jest":"^27.0.1","commitizen":"^4.2.4","jest":"^27.1.1","rimraf":"^3.0.2","ts-jest":"^27.0.5","typescript":"^4.5.4"},"dependencies":{"oppa":"^0.4.0","fast-json-patch":"^3.1.0","yaml":"^2.0.0-10"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"jest":{"preset":"ts-jest","testEnvironment":"node","testMatch":["<rootDir>/lib/**/*.test.ts"],"collectCoverageFrom":["<rootDir>/lib/**"],"coveragePathIgnorePatterns":["/node_modules/","/__snapshots__/","/bin/"],"coverageReporters":["lcov","text","html"]},"gitHead":"518503ab496f389f53ec459af863b04107ec39e9","_id":"yaml-diff-patch@2.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-RhfIQPGcKSZhsUmsczXAeg5jNhWXk3tAmhl2kjfZthdyaL0XXXOpvRozUp22HvPStmZsHu8T30/UEfX9oIwGxw==","shasum":"0eb4ff80a75e182e74417fb6b0b54214a49bf13d","tarball":"https://registry.npmjs.org/yaml-diff-patch/-/yaml-diff-patch-2.0.0.tgz","fileCount":11,"unpackedSize":33034,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9rT33G72bvcVc47J4ilwbxIfuXhmHlJRCVlJgMW9vNAiBVa29mruRd4qWFDBcRmt8oszUcM2RX1v89Hn4vFdaUIw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBhvKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQyA//fksNLhIC+MT+ngA2hKCvPhcl4uqHQKl+AgTyy/BTGi7xwNfG\r\nHbcsnMb2Dp57pcpLmJDamavXu9Iy1qm9ggBEljpwz3h5qg/4AjaXXHY73Zpx\r\nbkSucRim4lJNiVJGZqWSOtYDB9DL4epj0aZz1exD9yPoi/xQgBvN1EbJokJZ\r\nsmPVLVrCxKyxt+IuzpUCIpSdJrwBzTkWEhh71XbA7MY8fDM4mwgrPL9ING4h\r\np1FpxZmfTRMz1qMnCs/1lUQRFP5M2HCyPfV/c0Z+g2loCnMXZN8gs1KKJmlR\r\n5rfMcmNjG5SjQ1OxDsiSSsvn4OblvJxw5EV/9/J8cNK5eSqZ+B6reqwINjRY\r\nHP2IXgoDmM6tfiABEWxci3IploIxi0GRHiqcT9neLrzmoro0oW4B1z+sjuS/\r\njDfaoHsolZY7tSQrdQGVM3Xl33qlxmEPOD69DjGiyx7VG8DKd2ve5DVHuWxe\r\nMDGsZLWiQqrsX0uUX176NU3dl0N1E44444AczcygC+J6lHDlpr4MtKZXNAXK\r\nWyI9gAgdjfXHRoTXeFUiGnyKazSXKoIRQ/8SDD44sGyFNuBI12NMwh6gQtLV\r\ngXQF80sD2Km5UFDrLvriFEWPYZgEGgDjdoS8xJf4BYRYq+t6BKPOBJ+ZuK+g\r\n5C3FNsksdjGsFBLrBDylETYuJS5auGh2/kw=\r\n=9TBF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"grantila","email":"g.rantila@gmail.com"},"maintainers":[{"name":"grantila","email":"g.rantila@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-diff-patch_2.0.0_1661344714777_0.6450346927415891"},"_hasShrinkwrap":false}},"time":{"created":"2021-06-13T19:05:34.006Z","1.0.0":"2021-06-13T19:05:34.144Z","modified":"2022-08-24T12:38:35.021Z","1.0.1":"2021-06-13T22:06:43.068Z","1.0.2":"2021-06-14T11:01:51.649Z","1.1.0":"2021-09-11T07:07:16.715Z","1.2.0":"2022-01-17T23:24:39.337Z","2.0.0":"2022-08-24T12:38:34.933Z"},"maintainers":[{"name":"grantila","email":"g.rantila@gmail.com"}],"description":"Apply a JSON diff/patch to YAML while preserving whitespace, comments and overall structure","homepage":"https://github.com/grantila/yaml-diff-patch#readme","keywords":["yaml","diff","patch","json","rfc6902"],"repository":{"type":"git","url":"git+https://github.com/grantila/yaml-diff-patch.git"},"author":{"name":"Gustaf Räntilä"},"bugs":{"url":"https://github.com/grantila/yaml-diff-patch/issues"},"license":"MIT","readme":"[![npm version][npm-image]][npm-url]\n[![downloads][downloads-image]][npm-url]\n[![build status][build-image]][build-url]\n[![coverage status][coverage-image]][coverage-url]\n[![Language grade: JavaScript][lgtm-image]][lgtm-url]\n[![Node.JS version][node-version]][node-url]\n\n<img src=\"./logo.svg\" width=\"100%\" />\n\nYAML is a great format, similar to JSON. It allows comments and flexibility in objects and arrays with regards to the elements. They can be inlined (`[ ... ]` and `{ ... }`) or line-by-line.\n\nYAML isn't however as easy to work with programmatically as JSON.\n\nThis package offers an API and standalone executables to allow for modifying a YAML as JSON, and then applying that JSON diff as a patch on the YAML, preserving whitespace, comments and overall structure. This also makes the final YAML diff minimal.\n\n\n# Versions\n\n * Version 2.0 requires Node 14\n\n\n# API\n\nThis package exports three functions: `yamlPatch`, `yamlDiffPatch` and `yamlOverwrite`.\n\n\n## yamlPatch\n\n```ts\nfunction yamlPatch( yaml: string, rfc6902: Array< Operation > ): string;\n```\n\nThis function applies `<rfc6902>` *\"JSON Patch\"* operations on a `<yaml>` while trying to preserve whitespace, comments and structure for a minimal change.\n\nReturns the patched YAML.\n\nYou can use the [`rfc6902`][rfc6902-npm-url] package do create the patch object, or use `yamlDiffPatch` below.\n\n> If the differences are too big, patching may fail (just like regular source code diff/patch operations). It's therefore recommended to - rather than re-using a JSON Patch for multiple different YAMLs - create the JSON Patch from each source YAML, transforming it as necessary and then apply that patch, whenever possible. That should never fail.\n\n\n## yamlDiffPatch\n\n```ts\nfunction yamlDiffPatch( yaml: string, oldJson: any, newJson: any ): string;\n```\n\nUses two JSON's (`<oldJson>` and `<newJson>`) and makes a diff between them, then applies this as a patch to the `<yaml>`.\n\nReturns the patched YAML.\n\nThis is the same as `yamlPatch( yaml, makeJsonPatch( oldJson, newJson ) );` where `makeJsonPatch` would create an RFC6902 patch object.\n\n\n## yamlOverwrite\n\n```ts\nfunction yamlOverwrite( yaml: string, newJson: any ): string;\n```\n\nUses the source `<yaml>` as the source object and diffs that against `<newJson>`, then applies this diff as a patch to the `<yaml>`. This will overwrite the fields that are different, while maintaining the structure of the source YAML.\n\nReturns the patched YAML.\n\nThis is the same as `yamlDiffPatch( yaml, yamlToJson( yaml ), newJson );` where `yamlToJson` would parse YAML into JSON.\n\n\n# Executables\n\n## yaml-patch\n\n```\n❯ yaml-patch\n\n   Usage: yaml-patch source.yaml patch.json\n\n   Patches <source.yaml> with the RFC6902 in <patch.json>\n\n   Options:\n\n   -h, --help           Print (this) help screen\n   -o, --output <file>  Output filename to write to, or \"-\" for stdout (default: -)\n```\n\n## yaml-diff-patch\n\n```\n❯ yaml-diff-patch\n\n   Usage: yaml-diff-patch source.yaml old.json new.json\n\n   Patches <source.yaml> with the diff between <old.json> and <new.json>\n\n   Options:\n\n   -h, --help           Print (this) help screen\n   -o, --output <file>  Output filename to write to, or \"-\" for stdout (default: -)\n```\n\n## yaml-overwrite\n\n```\n❯ yaml-overwrite\n\n   Usage: yaml-overwrite source.yaml source.json\n\n   Patches <source.yaml> with the diff between <source.yaml> and <source.json>\n\n   Options:\n\n   -h, --help           Print (this) help screen\n   -o, --output <file>  Output filename to write to, or \"-\" for stdout (default: -)\n```\n\n\n[npm-image]: https://img.shields.io/npm/v/yaml-diff-patch.svg\n[npm-url]: https://npmjs.org/package/yaml-diff-patch\n[downloads-image]: https://img.shields.io/npm/dm/yaml-diff-patch.svg\n[build-image]: https://img.shields.io/github/workflow/status/grantila/yaml-diff-patch/Master.svg\n[build-url]: https://github.com/grantila/yaml-diff-patch/actions?query=workflow%3AMaster\n[coverage-image]: https://coveralls.io/repos/github/grantila/yaml-diff-patch/badge.svg?branch=master\n[coverage-url]: https://coveralls.io/github/grantila/yaml-diff-patch?branch=master\n[lgtm-image]: https://img.shields.io/lgtm/grade/javascript/g/grantila/yaml-diff-patch.svg?logo=lgtm&logoWidth=18\n[lgtm-url]: https://lgtm.com/projects/g/grantila/yaml-diff-patch/context:javascript\n[node-version]: https://img.shields.io/node/v/yaml-diff-patch\n[node-url]: https://nodejs.org/en/\n\n[rfc6902-npm-url]: https://www.npmjs.com/package/rfc6902\n","readmeFilename":"README.md"}