{"_id":"@almin/migration-tools","_rev":"12-e82d0f075a727130a25b1623b98d2543","name":"@almin/migration-tools","description":"Migration scripts for Almin.","dist-tags":{"latest":"1.4.0"},"versions":{"1.0.1":{"directories":{"test":"test"},"author":{"name":"azu"},"license":"MIT","files":["scripts/","index.js"],"name":"@almin/migration-tools","version":"1.0.1","main":"index.js","scripts":{"test":"jest"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"},"keywords":["almin","migrate","migration"],"description":"Migration scripts for Almin.","repository":{"type":"git","url":"git+https://github.com/almin/migration-tools.git"},"bugs":{"url":"https://github.com/almin/migration-tools/issues"},"homepage":"https://github.com/almin/migration-tools","devDependencies":{"jest":"^19.0.2","jscodeshift":"^0.3.30"},"gitHead":"dd665deb2c599092278406a3e97e9b51adb9d837","_id":"@almin/migration-tools@1.0.1","_shasum":"ce7381e433dbc1d10e2ec6df0d7718548e58172c","_from":".","_npmVersion":"4.3.0","_nodeVersion":"7.2.0","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"shasum":"ce7381e433dbc1d10e2ec6df0d7718548e58172c","tarball":"https://registry.npmjs.org/@almin/migration-tools/-/migration-tools-1.0.1.tgz","integrity":"sha512-z3NSxueBGkxSTemQ55fSk9wnr776ly9nu4aw8FFyj+CLkFvStxbnXYzKd3tGJ1kgNETmIvOfg4h+SRkyq0s+ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCHxvvtyHwTy1o9K4U4/wSusKKwqsCtNfDnx643ZdkddECIQCd+mOUYXxHqByPUAqFhilkej0J3wWhYem5ujaJ9D8PGQ=="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/migration-tools-1.0.1.tgz_1492786058424_0.09514410537667572"}},"1.0.2":{"directories":{"test":"test"},"author":{"name":"azu"},"license":"MIT","files":["scripts/","index.js"],"name":"@almin/migration-tools","version":"1.0.2","main":"index.js","scripts":{"test":"jest"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"},"keywords":["almin","migrate","migration"],"description":"Migration scripts for Almin.","repository":{"type":"git","url":"git+https://github.com/almin/migration-tools.git"},"bugs":{"url":"https://github.com/almin/migration-tools/issues"},"homepage":"https://github.com/almin/migration-tools","devDependencies":{"jest":"^19.0.2","jscodeshift":"^0.3.30"},"gitHead":"6751f64c152afdf943ce2e1380a67458040044cc","_id":"@almin/migration-tools@1.0.2","_shasum":"48efb7ca5b59d259e193c44eef2fb07c6412ddce","_from":".","_npmVersion":"4.3.0","_nodeVersion":"7.2.0","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"shasum":"48efb7ca5b59d259e193c44eef2fb07c6412ddce","tarball":"https://registry.npmjs.org/@almin/migration-tools/-/migration-tools-1.0.2.tgz","integrity":"sha512-RA2N/onC1kz59IdiRsMJW7mKtfX0pSoxO0o9zpyP7rP47EEH0dkJi3h0fFRwcWFmnLpP+r8O37LmyQTdh9Kh9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDM5iqVCZxB6bW6s5fbEkqG54TZxeRaluYM6xnb8sOyEwIgHL7SAeN+0p0icex3PW1Lw0tr0y6HYPq2h3p5jpur+x8="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/migration-tools-1.0.2.tgz_1492786966742_0.6804971974343061"}},"1.0.3":{"directories":{"test":"test"},"author":{"name":"azu"},"license":"MIT","files":["scripts/","index.js"],"name":"@almin/migration-tools","version":"1.0.3","main":"index.js","scripts":{"test":"jest"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"},"keywords":["almin","migrate","migration"],"description":"Migration scripts for Almin.","repository":{"type":"git","url":"git+https://github.com/almin/migration-tools.git"},"bugs":{"url":"https://github.com/almin/migration-tools/issues"},"homepage":"https://github.com/almin/migration-tools","devDependencies":{"jest":"^19.0.2","jscodeshift":"^0.3.30"},"gitHead":"37125ef46c8856c9dac237867600a197d0666c4e","_id":"@almin/migration-tools@1.0.3","_shasum":"daaec73c168f7739fd0b4b2f90cce3bcfedc9bcd","_from":".","_npmVersion":"4.3.0","_nodeVersion":"7.2.0","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"shasum":"daaec73c168f7739fd0b4b2f90cce3bcfedc9bcd","tarball":"https://registry.npmjs.org/@almin/migration-tools/-/migration-tools-1.0.3.tgz","integrity":"sha512-9iUWnIPnh3nfb481K6kg0eIGe0qYSwLuEnWinq2V2Xscj2GHwUxhQTVW7tHGkcqgoM2MTA5pZAxfad/l2Ysi1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE/ov7Ai+FBu/Sr7SKAOtkkz5EMDVMTO8PTrVVWDeDQnAiAuClXkJJ45rzzcNhX3Ik67uZ/7MiNc5N6XaDEdwNkxYQ=="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/migration-tools-1.0.3.tgz_1492787199681_0.28418462607078254"}},"1.1.0":{"directories":{"test":"test"},"author":{"name":"azu"},"license":"MIT","files":["scripts/","almin-migration-tools.js","migrations.json","cli-utils.js","index.js"],"name":"@almin/migration-tools","version":"1.1.0","main":"index.js","bin":{"almin-migration-tools":"./almin-migration-tools.js"},"scripts":{"precommit":"lint-staged","postcommit":"git reset","test":"jest"},"lint-staged":{"scripts/*.js":["prettier --tab-width 4 --print-width 120 --write","git add"]},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"},"keywords":["almin","migrate","migration"],"description":"Migration scripts for Almin.","repository":{"type":"git","url":"git+https://github.com/almin/migration-tools.git"},"bugs":{"url":"https://github.com/almin/migration-tools/issues"},"homepage":"https://github.com/almin/migration-tools","dependencies":{"arrify":"^1.0.1","execa":"^0.7.0","globby":"^6.0.0","inquirer":"^3.2.0","is-git-clean":"^1.1.0","jscodeshift":"^0.3.32","lodash.flatten":"^4.1.1","lodash.uniq":"^4.2.1","meow":"^3.7.0","npm-run-path":"^2.0.2","semver":"^5.1.0","update-notifier":"^2.2.0"},"devDependencies":{"husky":"^0.14.3","jest":"^20.0.4","lint-staged":"^4.0.1","prettier":"^1.5.2"},"gitHead":"046112c5e88200949f9b9c4cf99eefa1dd435b90","_id":"@almin/migration-tools@1.1.0","_shasum":"cea7e84a0ac383d124fe9a8f0e4b8284410171b5","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.2.0","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"shasum":"cea7e84a0ac383d124fe9a8f0e4b8284410171b5","tarball":"https://registry.npmjs.org/@almin/migration-tools/-/migration-tools-1.1.0.tgz","integrity":"sha512-MyEvLGp7pKC8ZbLDYLjd1PgR8rDrume7likUMD7/G4N0D7jp4f0eyqF4GMPQLHIJGFFF9MrJOYQYwqesx97sLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDGr72w1JJvyOhWa73imoFyYQwPoOS6eAtd3WfDHQUP+AiAR779wyzIVhj+sWarnu8vr2ymuqtu3YajFbwlRmiJTWQ=="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/migration-tools-1.1.0.tgz_1500126024894_0.00923071801662445"}},"1.1.1":{"directories":{"test":"test"},"author":{"name":"azu"},"license":"MIT","files":["scripts/","almin-migration-tools.js","migrations.json","cli-utils.js","index.js"],"name":"@almin/migration-tools","version":"1.1.1","main":"index.js","bin":{"almin-migration-tools":"./almin-migration-tools.js"},"scripts":{"precommit":"lint-staged","postcommit":"git reset","test":"jest"},"lint-staged":{"scripts/*.js":["prettier --tab-width 4 --print-width 120 --write","git add"]},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"},"keywords":["almin","migrate","migration"],"description":"Migration scripts for Almin.","repository":{"type":"git","url":"git+https://github.com/almin/migration-tools.git"},"bugs":{"url":"https://github.com/almin/migration-tools/issues"},"homepage":"https://github.com/almin/migration-tools","dependencies":{"arrify":"^1.0.1","execa":"^0.7.0","globby":"^6.0.0","inquirer":"^3.2.0","is-git-clean":"^1.1.0","jscodeshift":"^0.3.32","lodash.flatten":"^4.1.1","lodash.uniq":"^4.2.1","meow":"^3.7.0","npm-run-path":"^2.0.2","semver":"^5.1.0","update-notifier":"^2.2.0"},"devDependencies":{"husky":"^0.14.3","jest":"^20.0.4","lint-staged":"^4.0.1","prettier":"^1.5.2"},"gitHead":"0a379355c32804259345bb0be24284d0cd690cd3","_id":"@almin/migration-tools@1.1.1","_shasum":"36e71ae1c0be983c85ca6c77c67dd486a7e9151a","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.2.0","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"shasum":"36e71ae1c0be983c85ca6c77c67dd486a7e9151a","tarball":"https://registry.npmjs.org/@almin/migration-tools/-/migration-tools-1.1.1.tgz","integrity":"sha512-6hshuJ5wPLyflp4N2gZQP90nww90HwWHqnA1yvRBp8e4edQwXSoT56a4li6LfaDEMw+qyQuGri7O5RazjVeI/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiax/JWIBAuHh4hQJDja9HYuO0BeBQgbqWWFA2xH1WWQIhAPoh0n5YRz3FUsKqZNAlalxnP2vUdNVh3pooxY8dFWW5"}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/migration-tools-1.1.1.tgz_1500171405129_0.8409330903086811"}},"1.2.0":{"directories":{"test":"test"},"author":{"name":"azu"},"license":"MIT","files":["scripts/","almin-migration-tools.js","migrations.json","cli-utils.js","index.js"],"name":"@almin/migration-tools","version":"1.2.0","main":"index.js","bin":{"almin-migration-tools":"./almin-migration-tools.js"},"scripts":{"precommit":"lint-staged","postcommit":"git reset","test":"jest"},"lint-staged":{"scripts/*.js":["prettier --tab-width 4 --print-width 120 --write","git add"]},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"},"keywords":["almin","migrate","migration"],"description":"Migration scripts for Almin.","repository":{"type":"git","url":"git+https://github.com/almin/migration-tools.git"},"bugs":{"url":"https://github.com/almin/migration-tools/issues"},"homepage":"https://github.com/almin/migration-tools","dependencies":{"arrify":"^1.0.1","execa":"^0.8.0","globby":"^6.0.0","inquirer":"^3.3.0","is-git-clean":"^1.1.0","jscodeshift":"^0.4.0","lodash.flatten":"^4.1.1","lodash.uniq":"^4.2.1","meow":"^3.7.0","npm-run-path":"^2.0.2","semver":"^5.5.0","update-notifier":"^2.3.0"},"devDependencies":{"husky":"^0.14.3","jest":"^21.1.0","lint-staged":"^4.2.1","prettier":"^1.7.0"},"gitHead":"c8829d05a04aa20827db56fcc8c99b39b6f2220d","_id":"@almin/migration-tools@1.2.0","_npmVersion":"5.5.1","_nodeVersion":"9.2.1","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"integrity":"sha512-bIQBFegnSTJgfBlVitkclu6cPS2jJ9+S5IZEPG8JXA7UauEod4jMYQXXovaU8Kto+ZSr4K34OQX5kkJyq4rCIA==","shasum":"b39ef9a251cafbeaa092deab3c30e998095aeebd","tarball":"https://registry.npmjs.org/@almin/migration-tools/-/migration-tools-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeKkBYE4XsvmKhftHOVgxw7eiticTHlPKX5vEXybVepgIhALW3y0UUL9PuocZiRfsyzi5971atfrvV1fYZZpzKqVht"}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/migration-tools-1.2.0.tgz_1516238294272_0.059655389515683055"}},"1.2.1":{"directories":{"test":"test"},"author":{"name":"azu"},"license":"MIT","files":["scripts/","almin-migration-tools.js","migrations.json","cli-utils.js","index.js"],"name":"@almin/migration-tools","version":"1.2.1","main":"index.js","bin":{"almin-migration-tools":"./almin-migration-tools.js"},"scripts":{"precommit":"lint-staged","postcommit":"git reset","test":"jest"},"lint-staged":{"scripts/*.js":["prettier --tab-width 4 --print-width 120 --write","git add"]},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"},"keywords":["almin","migrate","migration"],"description":"Migration scripts for Almin.","repository":{"type":"git","url":"git+https://github.com/almin/migration-tools.git"},"bugs":{"url":"https://github.com/almin/migration-tools/issues"},"homepage":"https://github.com/almin/migration-tools","dependencies":{"arrify":"^1.0.1","execa":"^0.8.0","globby":"^6.0.0","inquirer":"^3.3.0","is-git-clean":"^1.1.0","jscodeshift":"^0.4.0","lodash.flatten":"^4.1.1","lodash.uniq":"^4.2.1","meow":"^3.7.0","npm-run-path":"^2.0.2","semver":"^5.5.0","update-notifier":"^2.3.0"},"devDependencies":{"husky":"^0.14.3","jest":"^21.1.0","lint-staged":"^4.2.1","prettier":"^1.7.0"},"gitHead":"cc61e2a23c953c14b4391f3afba3da010dc56862","_id":"@almin/migration-tools@1.2.1","_npmVersion":"5.5.1","_nodeVersion":"9.2.1","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"integrity":"sha512-atVI+/p2fv3nniihd3bg+NSKIgOGao6KQ63SzCmXmPnDED2M76BspR77OQCpsYrTOYoZsjopXVt24rFi1irbnA==","shasum":"75cd31dae4493c7ad0e4ad724e12b7300345ee49","tarball":"https://registry.npmjs.org/@almin/migration-tools/-/migration-tools-1.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGCC5SL9KRDe2e80qeAAUrETsBTczC0MbhWDiQix52uAiB9D1WraxQ/TDpYI653eua0dE1VhhSoV25OAC80rKn0vw=="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/migration-tools-1.2.1.tgz_1516239222732_0.5158565153833479"}},"1.2.2":{"directories":{"test":"test"},"author":{"name":"azu"},"license":"MIT","files":["scripts/","almin-migration-tools.js","migrations.json","cli-utils.js","index.js"],"name":"@almin/migration-tools","version":"1.2.2","main":"index.js","bin":{"almin-migration-tools":"./almin-migration-tools.js"},"scripts":{"precommit":"lint-staged","postcommit":"git reset","test":"jest"},"lint-staged":{"scripts/*.js":["prettier --tab-width 4 --print-width 120 --write","git add"]},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"},"keywords":["almin","migrate","migration"],"description":"Migration scripts for Almin.","repository":{"type":"git","url":"git+https://github.com/almin/migration-tools.git"},"bugs":{"url":"https://github.com/almin/migration-tools/issues"},"homepage":"https://github.com/almin/migration-tools","dependencies":{"arrify":"^1.0.1","execa":"^0.8.0","globby":"^6.0.0","inquirer":"^3.3.0","is-git-clean":"^1.1.0","jscodeshift":"^0.4.0","lodash.flatten":"^4.1.1","lodash.uniq":"^4.2.1","meow":"^3.7.0","npm-run-path":"^2.0.2","semver":"^5.5.0","update-notifier":"^2.3.0"},"devDependencies":{"husky":"^0.14.3","jest":"^21.1.0","lint-staged":"^4.2.1","prettier":"^1.7.0"},"gitHead":"13404474fd675a1e0800d3f4d63df2548fe501d1","_id":"@almin/migration-tools@1.2.2","_npmVersion":"5.5.1","_nodeVersion":"9.2.1","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"integrity":"sha512-vRZ2xm/FrDecmTdr+BMQmKHw0FHgs14VhhaHP9JqkkvLAR/ESytknh3PLvDhqAO9W3HTheeVQ9i2NO9esbbLHA==","shasum":"a0be474e0884c652d8c81c81e41dd834437968dd","tarball":"https://registry.npmjs.org/@almin/migration-tools/-/migration-tools-1.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxUcavagJrjK+6FrGKVw3l7n/tYXhQwdsy4mkbHzDUGQIgPtNz6iG9CjgM33EAvO8hXTXguaE08eXkJ0xrHj97OtQ="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/migration-tools-1.2.2.tgz_1516440782095_0.562370492843911"}},"1.3.0":{"directories":{"test":"test"},"author":{"name":"azu"},"license":"MIT","files":["scripts/","almin-migration-tools.js","migrations.js","index.js"],"name":"@almin/migration-tools","version":"1.3.0","main":"index.js","bin":{"almin-migration-tools":"./almin-migration-tools.js"},"scripts":{"precommit":"lint-staged","postcommit":"git reset","test":"jest"},"lint-staged":{"scripts/*.js":["prettier --tab-width 4 --print-width 120 --write","git add"]},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"},"keywords":["almin","migrate","migration"],"description":"Migration scripts for Almin.","repository":{"type":"git","url":"git+https://github.com/almin/migration-tools.git"},"bugs":{"url":"https://github.com/almin/migration-tools/issues"},"homepage":"https://github.com/almin/migration-tools","dependencies":{"code-migrator":"^1.3.2","jscodeshift":"^0.4.0","meow":"^4.0.0","npm-run-path":"^2.0.2","update-notifier":"^2.3.0"},"devDependencies":{"husky":"^0.14.3","jest":"^22.1.4","lint-staged":"^6.0.1","prettier":"^1.10.2"},"gitHead":"dbd1895e08f3d959e90bf6ebac22ac460c96efef","_id":"@almin/migration-tools@1.3.0","_npmVersion":"5.5.1","_nodeVersion":"9.2.1","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"integrity":"sha512-5XZEqrhqGTquPyE5tyuUZDAHQIHDh/h1FTuVv8/PXRZYqLCc3Mg5jfqIZgF+LUzAb9dGCxeipW3FkjexI1nPgw==","shasum":"8225a1c93a51d47858f2c563798fa125fce26dd4","tarball":"https://registry.npmjs.org/@almin/migration-tools/-/migration-tools-1.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDm3dOeDcSrvv8jHbubW6xPYlwo7yxr2morsNkrqDRWDAiEAxTKpZbVd2DTxf6Wtp5/3kTSK4Z0k5BUa8smpHt3LVDM="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/migration-tools-1.3.0.tgz_1516503446450_0.8686881333123893"}},"1.4.0":{"directories":{"test":"test"},"author":{"name":"azu"},"license":"MIT","files":["scripts/","almin-migration-tools.js","migrations.js","index.js"],"name":"@almin/migration-tools","version":"1.4.0","main":"index.js","bin":{"almin-migration-tools":"./almin-migration-tools.js"},"scripts":{"precommit":"lint-staged","postcommit":"git reset","test":"jest"},"lint-staged":{"scripts/*.js":["prettier --tab-width 4 --print-width 120 --write","git add"]},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"},"keywords":["almin","migrate","migration"],"description":"Migration scripts for Almin.","repository":{"type":"git","url":"git+https://github.com/almin/migration-tools.git"},"bugs":{"url":"https://github.com/almin/migration-tools/issues"},"homepage":"https://github.com/almin/migration-tools","dependencies":{"babel-codemod":"^2.0.6","code-migrator":"^2.0.0","jscodeshift":"^0.5.1","meow":"^5.0.0","update-notifier":"^2.5.0"},"devDependencies":{"husky":"^0.14.3","jest":"^23.5.0","lint-staged":"^7.2.2","prettier":"^1.14.2"},"gitHead":"53539ee8a9dcf2d14ab5b8274f5a1432498962d3","_id":"@almin/migration-tools@1.4.0","_npmVersion":"6.2.0","_nodeVersion":"10.0.0","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"integrity":"sha512-cPGhyd5cwRF0LeFt9U8VPT4mLX+H53P5QolsNHD5XFnWXjExVcUpNi/WBH0jtbWqX3PZJtmzJ8bV/FiJmVZOMA==","shasum":"2bba6d62a8a103d649d469843f4c41cd54b64cda","tarball":"https://registry.npmjs.org/@almin/migration-tools/-/migration-tools-1.4.0.tgz","fileCount":47,"unpackedSize":42843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbg0dUCRA9TVsSAnZWagAATjoQAIo9M3ur8AydCavZSHpv\nC6rmVjlSKqN0x37iauxkGS5EXUpocd+7T+Ru1J4moXL/BSe/Ozm4GZV4yFWT\neqy83Df+X7A0UzlRq6UUhP+RZBUJLQ7yx78NcjpGOpBk3dvvLGG/y+RG7Loj\n2a68B8BT3fEFP864fLWUfFlHjgbzcKVrlGWhTWJIHCp3ZPzuo9i7M//uM/bO\n2e1STDQMQc0bGcPNenMmoroPaSlOj3zYRdg8HGcJsuuaGThISP4SDLcK8rqG\nhP5tDMOCYiwJuP3v2PArPWfYWEZD4gqy0mKlRq6bxgh7t/ZdbmXL/9Muyxzh\nA/foBppUnGDJH7AzCc7q11+gLqKnV/XJsGAoz896YXr96HJeNyFTd8jlf97y\nj05Vz54z1XoWw7eFf1BdJjOVxGQz6r+l9hW2rSCW4YcEYS+Hz+myXgKPJ2Ct\nNyMTVBmt8kYeWSZd2OG3NYtL3VUVNVFQ5PmNTS286bJCx47FjVAPdcqQftuA\nEJTrrIPb/Y8iiFPUUBN6haS1HiAblkdeZYxcy74PwyBei1xeW5zzAAU6XOBl\nhlY0oVxJeUiLT3fg0vCZIu+4B4AQSmVTA5qXRHyeJzs17mqFg5QsscTkL08/\nLv6l0PugRtEv1VacilX5zf7mWhYTBhuHZORS2pVpCaDAfNi+KX4rdZd9aznx\nQwmY\r\n=cIlS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBidvV5S4F+vFuMbWkLVnPKtI8lDRmZ3GbS6Cj9Q4Y5EAiBZzan/Fm8c+KnHVdOB3C5GGszxb9TfBkFMjINoMpQ4Ow=="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/migration-tools_1.4.0_1535330131727_0.1062875853025167"},"_hasShrinkwrap":false}},"readme":"# migration-tools [![Build Status](https://travis-ci.org/almin/migration-tools.svg?branch=master)](https://travis-ci.org/almin/migration-tools)\n\nMigration scripts for [Almin](https://github.com/almin/almin \"Almin\").\n\n![Screen Shot GIF](./docs/screen-shot.gif)\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n    npm install -g @almin/migration-tools\n\n## Usage\n\nSimply run `almin-migration-tools` in your terminal and answer a few questions.\nYou can pass a filename directly to the CLI. If you do not, you will be prompted for one.\n\nEnsure you have a backup of your source code or commit the latest changes before running this.\n\n    Usage\n      $ almin-migration-tools [<file|glob>]\n\n    Options:\n      --script  Run with specified migration script\n      --dry-run Enable dry run mode\n      --force, -f    Bypass safety checks and forcibly run codemods\n\n    Examples\n      # Interactive mode\n      $ almin-migration-tools\n      # Interactive mode, but it has default targets\n      $ almin-migration-tools  \"src/**/*.js\"\n      # Non interactive mode, specified script name\n      $ almin-migration-tools --script \"store-group-arguments\" \"src/**/store/**/*.js\"\n\n## Migrations\n\n### 0.17.x → 0.18.x\n\n#### How to migrate?\n\nRun following command and select `0.17.x → 0.18.x`\n\n```\n$ almin-migration-tools\n```\n\n\n#### What is changed?\n\n`executor()` is deprecated.\nYou should use `UseCaseExecutor#execute` instead of `UseCaseExecutor#executor`.\n\n- [Deprecate `executor()` · Issue #356 · almin/almin](https://github.com/almin/almin/issues/356)\n\nBefore:  `executor()`\n\n```ts\nimport { UseCase, Context } from \"almin\";\nclass MyUseCaseA extends UseCase {\n    execute(_a: string) {}\n}\nconst context = new Context({\n    store: createStore({ name: \"test\" })\n});\n\n// executor\ncontext.useCase(new MyUseCaseA()).executor(useCase => useCase.execute(\"A\")); \n```\n\nAfter: `execute()`\n\n```ts\nimport { UseCase, Context } from \"almin\";\nclass MyUseCaseA extends UseCase {\n    execute(_a: string) {}\n}\nconst context = new Context({\n    store: createStore({ name: \"test\" })\n});\n\n//execute\ncontext.useCase(new MyUseCaseA()).execute(\"A\");\n```\n\n### 0.13.x → 0.15.x\n\n#### How to migrate?\n\nRun following command and select `0.13.x → 0.15.x`\n\n```\n$ almin-migration-tools\n```\n\n#### What is changed?\n\n`ChangedPayload` has been removed.\n\n- [Almin 0.15.0 · Issue #287 · almin/almin](https://github.com/almin/almin/issues/287 \"Almin 0.15.0 · Issue #287 · almin/almin\")\n\n```js\nimport { UseCase, ChangedPayload } from \"almin\";\n\nexport class ExampleUseCase extends UseCase {\n    execute() {\n        this.context.useCase(new ChangedPayload()).execute();\n    }\n}\n```\n\nto \n\n```js\nimport { UseCase } from \"almin\";\n\nexport class ExampleUseCase extends UseCase {\n    execute() {\n        this.context.useCase({ type: \"ChangedPayload\" }).execute();\n    }\n}\n```\n\n### 0.12.x → 0.13.x\n\n#### How to migrate?\n\nRun following command and select `0.12.x → 0.13.x`\n\n```\n$ almin-migration-tools\n```\n\n#### What is changed?\n\n- Renaming: `context.on*` to `context.events.on*` without `context.onChange`\n     - `Context.onChange` is still on `Context` prototype.\n     - Because, it is not life-cycle events and it is optimized for updating UI.\n\n```js\ncontext.onWillExecuteEachUseCase((payload, meta) => {});\ncontext.onDispatch((payload, meta) => {});\ncontext.onDidExecuteEachUseCase((payload, meta) => {});\ncontext.onCompleteEachUseCase((payload, meta) => {});\ncontext.onErrorDispatch((payload, meta) => {});\n```\n\nto\n\n```js\ncontext.events.onWillExecuteEachUseCase((payload, meta) => {});\ncontext.events.onDispatch((payload, meta) => {});\ncontext.events.onDidExecuteEachUseCase((payload, meta) => {});\ncontext.events.onCompleteEachUseCase((payload, meta) => {});\ncontext.events.onErrorDispatch((payload, meta) => {});\n```\n\n### 0.11.x → 0.12.x\n\n#### How to migrate?\n\n**Notes**: Sadly, this old migration script is not automated...\n\nPlease do following steps. \n\n##### Convert Store#getState scripts\n\n**Target**: Store files\n\n```bash\n# Install to global\nnpm install -g @almin/migration-tools \n# Run migration scripts\n## Target: your almin store files\nalmin-migration-tools --script \"store-get-state-return-object-to-flat\" \"src/**/store/**/*.js\"\n```\n\nStore#getState return value migration.\nThis script migrate following adn write stats to `almin-store-state-mapping.json`.\nFound Following pattern and replace\n\n```js\nclass MyStore extends Store {\n    getState() {\n       return {\n           stateName: state\n       }\n    }\n}\n```\n\nto\n\n```js\nclass MyStore extends Store {\n    getState() {\n       return state;\n    }\n}\n```\n\nThis script output stats as `almin-store-state-mapping.json`.\nThe `almin-store-state-mapping.json` is used with next script(Convert StoreGroup constructor).\n\n##### Convert StoreGroup constructor\n\n**Target**: StoreGroup file\n\n```bash\n# Install to global\nnpm install -g @almin/migration-tools \n# Run migration scripts\n## Target: your almin StoreGroup file\nalmin-migration-tools --script \"store-group-arguments\" \"src/**/store/**/*.js\"\n```\n\nMigrate StoreGroup constructor arguments.\nThis script migrate following using `store-state-mapping.json`.\n\n\n```js\nnew StoreGroup([\n  new CartStore(cartRepository),\n  new CustomerStore(customerRepository),\n  new ProductStore(productRepository)\n])\n```\nwith\n\n```js\nnew StoreGroup({\n  \"cart\": new CartStore(cartRepository),\n  \"customer\": new CustomerStore(customerRepository),\n  \"product\": new ProductStore(productRepository)\n});\n```\n\n##### Options\n\n- `mapping`: path to `almin-store-state-mapping.json`.\n    - Default: using `almin-store-state-mapping.json` in current directory.\n\n\n## Changelog\n\nSee [Releases page](https://github.com/almin/migration-tools/releases).\n\n## Running tests\n\nInstall devDependencies and Run `npm test`:\n\n    npm i -d && npm test\n\n## Contributing\n\nPull requests and stars are always welcome.\n\nFor bugs and feature requests, [please create an issue](https://github.com/almin/migration-tools/issues).\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Author\n\n- [github/azu](https://github.com/azu)\n- [twitter/azu_re](https://twitter.com/azu_re)\n\n## License\n\nMIT © azu\n\n## Thanks\n\n[avajs/ava-codemods: Codemods for AVA](https://github.com/avajs/ava-codemods \"avajs/ava-codemods: Codemods for AVA\")\n","maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"time":{"modified":"2022-06-12T14:33:59.497Z","created":"2017-04-21T14:47:40.256Z","1.0.1":"2017-04-21T14:47:40.256Z","1.0.2":"2017-04-21T15:02:46.967Z","1.0.3":"2017-04-21T15:06:39.906Z","1.1.0":"2017-07-15T13:40:24.992Z","1.1.1":"2017-07-16T02:16:45.580Z","1.2.0":"2018-01-18T01:18:14.543Z","1.2.1":"2018-01-18T01:33:42.815Z","1.2.2":"2018-01-20T09:33:02.293Z","1.3.0":"2018-01-21T02:57:26.549Z","1.4.0":"2018-08-27T00:35:31.813Z"},"homepage":"https://github.com/almin/migration-tools","keywords":["almin","migrate","migration"],"repository":{"type":"git","url":"git+https://github.com/almin/migration-tools.git"},"author":{"name":"azu"},"bugs":{"url":"https://github.com/almin/migration-tools/issues"},"license":"MIT","readmeFilename":"README.md"}