{"_id":"sphere-product-type-import","_rev":"34-7b104417e52a9e9c5156a8f9b3339719","name":"sphere-product-type-import","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"sphere-product-type-import","version":"1.0.0","keywords":["ctp","commercetools","product-type","import"],"author":{"name":"Philipp Sporrer","email":"philipp.sporrer@commercetools.de"},"license":"MIT","_id":"sphere-product-type-import@1.0.0","maintainers":[{"name":"philippspo","email":"philipp.sporrer@planifica.de"}],"homepage":"https://github.com/sphereio/sphere-product-type-import#readme","bugs":{"url":"https://github.com/sphereio/sphere-product-type-import/issues"},"dist":{"shasum":"f3579d61af49e4c8d51dee2a9114a562bec7279c","tarball":"https://registry.npmjs.org/sphere-product-type-import/-/sphere-product-type-import-1.0.0.tgz","integrity":"sha512-2uB7bqg/TgB3lPdlx/f3s7pvROGJbTYjTr/GZ1cOeNAAKOc3wFkcD6z1whFKyH7F3qQu5cBxDvoZvbfcK980ww==","signatures":[{"sig":"MEQCIENCEH4RZ0T+ULllainVQGOCrwhNB5VwZx955MCM/Jz6AiB74iPZkO6NFnKeA77dSEWFYNv40hPrr8rVua/GAPC1SA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","babel":{"presets":["es2015","stage-0"]},"config":{"ghooks":{"pre-commit":"npm run test:ci && npm run check-coverage"},"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"_shasum":"f3579d61af49e4c8d51dee2a9114a562bec7279c","gitHead":"d5109d8d18c03fe8b11839b31afe7bda244967b3","scripts":{"lint":"eslint src tests","test":"mocha tests/**/*.js --compilers js:babel-core/register","build":"babel src --out-dir dist","commit":"git-cz","test:ci":"babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha -- tests/**/*.js","test:watch":"watch 'npm test' src/ tests/","check-coverage":"istanbul check-coverage --statements 100 --branches 100 --functions 100 --lines 100","report-coverage":"cat ./coverage/lcov.info | codecov","semantic-release":"semantic-release pre && npm run build && npm publish && semantic-release post"},"_npmUser":{"name":"philippspo","email":"philipp.sporrer@planifica.de"},"repository":{"url":"git+https://github.com/sphereio/sphere-product-type-import.git","type":"git"},"_npmVersion":"2.15.3","description":"[![Travis][travis-badge]][travis-url] [![Codecov][codecov-badge]][codecov-url] [![npm][npm-lic-badge]][npm-lic-url] [![semantic-release][semantic-release-badge]][semantic-release-url] [![Commitizen friendly][commitizen-badge]][commitizen-url] [![NPM versi","directories":{},"_nodeVersion":"4.4.3","dependencies":{"ajv":"4.0.0","ghooks":"1.0.3","lodash":"4.6.1","underscore":"1.8.3","sphere-node-sdk":"1.10.1","underscore-mixins":"0.1.4"},"devDependencies":{"chai":"3.5.0","cuid":"1.3.8","mocha":"2.4.5","sinon":"1.17.3","watch":"0.17.1","eslint":"2.2.0","ghooks":"1.0.3","isparta":"4.0.0","istanbul":"0.4.2","babel-cli":"6.6.0","babel-core":"6.6.5","codecov.io":"0.1.6","commitizen":"2.6.1","babel-eslint":"5.0.0","babel-istanbul":"0.6.1","semantic-release":"^4.3.5","sphere-node-utils":"0.8.0","babel-preset-es2015":"6.6.0","babel-preset-stage-0":"6.5.0","cz-conventional-changelog":"1.1.5"},"_npmOperationalInternal":{"tmp":"tmp/sphere-product-type-import-1.0.0.tgz_1460981026882_0.7950368542224169","host":"packages-16-east.internal.npmjs.com"}},"1.1.0":{"name":"sphere-product-type-import","version":"1.1.0","keywords":["ctp","commercetools","product-type","import"],"author":{"name":"Philipp Sporrer","email":"philipp.sporrer@commercetools.de"},"license":"MIT","_id":"sphere-product-type-import@1.1.0","maintainers":[{"name":"philippspo","email":"philipp.sporrer@planifica.de"}],"homepage":"https://github.com/sphereio/sphere-product-type-import#readme","bugs":{"url":"https://github.com/sphereio/sphere-product-type-import/issues"},"dist":{"shasum":"193b4dad7fafc2237b9c4776491755c9df26b2ce","tarball":"https://registry.npmjs.org/sphere-product-type-import/-/sphere-product-type-import-1.1.0.tgz","integrity":"sha512-BLyR/0o10I2XZ9ZQxg68KFBW8zcTUIIOHDp/W4G4KMOIly+YPLHKxeCSbDk8iISIR74bzUYRCbJKoIUhcjxZyw==","signatures":[{"sig":"MEUCIAIMDQYsB3NvzI2eAFShoMiqLxaEvGic+brFQLiPsb/KAiEAyBppFUH4eGd88mNb8mv8KkFHtnJ2zYWipZF/Iqfdl9w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","babel":{"presets":["es2015","stage-0"]},"config":{"ghooks":{"pre-commit":"npm run test:ci && npm run check-coverage"},"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"_shasum":"193b4dad7fafc2237b9c4776491755c9df26b2ce","gitHead":"568f057efcee7d038b8c48efcf0d96dfac58844e","scripts":{"lint":"eslint src tests","test":"mocha tests/**/*.js --compilers js:babel-core/register","build":"babel src --out-dir dist","commit":"git-cz","test:ci":"babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha -- tests/**/*.js","test:watch":"watch 'npm test' src/ tests/","check-coverage":"istanbul check-coverage --statements 100 --branches 100 --functions 100 --lines 100","report-coverage":"cat ./coverage/lcov.info | codecov","semantic-release":"semantic-release pre && npm run build && npm publish && semantic-release post"},"_npmUser":{"name":"philippspo","email":"philipp.sporrer@planifica.de"},"repository":{"url":"git+https://github.com/sphereio/sphere-product-type-import.git","type":"git"},"_npmVersion":"2.15.9","description":"[![Travis][travis-badge]][travis-url] [![Codecov][codecov-badge]][codecov-url] [![npm][npm-lic-badge]][npm-lic-url] [![semantic-release][semantic-release-badge]][semantic-release-url] [![Commitizen friendly][commitizen-badge]][commitizen-url] [![NPM versi","directories":{},"_nodeVersion":"4.4.7","dependencies":{"ajv":"4.0.0","ghooks":"1.0.3","lodash":"4.6.1","underscore":"1.8.3","sphere-node-sdk":"1.10.1","underscore-mixins":"0.1.4"},"devDependencies":{"chai":"3.5.0","cuid":"1.3.8","mocha":"2.4.5","sinon":"1.17.3","watch":"0.17.1","eslint":"2.2.0","ghooks":"1.0.3","isparta":"4.0.0","istanbul":"0.4.2","babel-cli":"6.6.0","babel-core":"6.6.5","codecov.io":"0.1.6","commitizen":"2.6.1","babel-eslint":"5.0.0","babel-istanbul":"0.6.1","semantic-release":"^4.3.5","sphere-node-utils":"0.8.0","babel-preset-es2015":"6.6.0","babel-preset-stage-0":"6.5.0","cz-conventional-changelog":"1.1.5"},"_npmOperationalInternal":{"tmp":"tmp/sphere-product-type-import-1.1.0.tgz_1470843720855_0.6930496443528682","host":"packages-16-east.internal.npmjs.com"}},"2.0.0":{"name":"sphere-product-type-import","version":"2.0.0","keywords":["ctp","commercetools","product-type","import"],"author":{"name":"Philipp Sporrer","email":"philipp.sporrer@commercetools.de"},"license":"MIT","_id":"sphere-product-type-import@2.0.0","maintainers":[{"name":"commercetools","email":"npmjs@commercetools.com"},{"name":"hisabimbola","email":"abimbola2010@gmail.com"},{"name":"philippspo","email":"philipp.sporrer@planifica.de"},{"name":"wizzy25","email":"womayuku@gmail.com"}],"homepage":"https://github.com/sphereio/sphere-product-type-import#readme","bugs":{"url":"https://github.com/sphereio/sphere-product-type-import/issues"},"nyc":{"include":["src/"],"sourceMap":false,"instrument":false},"dist":{"shasum":"968b29ba1e7a37e3c5facaea80ebb08ae407ed6d","tarball":"https://registry.npmjs.org/sphere-product-type-import/-/sphere-product-type-import-2.0.0.tgz","integrity":"sha512-LNby87B7rc7iGHcsvJZbTDjp9T2oO3GbZIV5W+LJvtfZS1swy1oKXAQxK+6wJFe12ds473bpPGwlRzVK+yw5Iw==","signatures":[{"sig":"MEYCIQDRu+VWq1AMN1VVXZ5be7YU0TFpZeE44pdB7OHn98ipYQIhAJsNRW2EsNBnqWXnQPS2rgYXpJx0vPVT/dHuRRUghXcK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","files":["dist/"],"config":{"ghooks":{"commit-msg":"validate-commit-msg","pre-commit":"./scripts/lint-staged-files"},"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"c9d4adfce2fd5d29803e838f629cd8af75e11e78","scripts":{"lint":"./scripts/lint src tests","test":"cross-env NODE_ENV=test NODE_PATH=./src babel-node node_modules/.bin/tape tests/**/*.spec.js | ./node_modules/.bin/tap-spec","build":"npm run clean && babel src --out-dir dist","clean":"rimraf dist/* coverage","commit":"git-cz","coverage":"npm run lint && npm run clean && cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text npm test","test:watch":"chokidar src test -c 'npm test'","check-coverage":"nyc check-coverage --lines 100 --functions 100 --branches 100 --statements 100","report-coverage":"cat ./coverage/lcov.info | codecov","semantic-release":"semantic-release pre && npm run build && npm publish && semantic-release post"},"_npmUser":{"name":"wizzy25","email":"womayuku@gmail.com"},"repository":{"url":"git+https://github.com/sphereio/sphere-product-type-import.git","type":"git"},"_npmVersion":"5.6.0","description":"Library that helps with importing product type into the commercetools platform","directories":{},"_nodeVersion":"8.9.4","dependencies":{"ajv":"^4.0.0","lodash":"^4.6.1","bluebird":"^2.11.0","underscore":"^1.8.3","sphere-node-sdk":"^1.10.1","sphere-node-utils":"^0.8.0","underscore-mixins":"^0.1.4"},"eslintConfig":{"extends":"commercetools","settings":{"import/resolver":{"node":{"paths":["src/"]}}}},"devDependencies":{"nyc":"^8.3.1","cuid":"^1.3.8","tape":"^4.6.0","sinon":"^1.17.3","eslint":"^3.6.1","ghooks":"^1.0.3","rimraf":"^2.5.4","codecov":"^1.0.1","tap-spec":"^4.1.1","babel-cli":"^6.6.0","cross-env":"^2.0.1","babel-core":"^6.6.5","commitizen":"^2.6.1","babel-eslint":"^7.0.0","chokidar-cli":"^1.2.0","babel-runtime":"^6.9.2","babel-register":"^6.14.0","semantic-release":"^4.3.5","babel-preset-es2015":"^6.14.0","eslint-plugin-react":"^6.3.0","validate-commit-msg":"^2.8.2","eslint-config-airbnb":"^12.0.0","eslint-plugin-import":"^1.16.0","babel-plugin-istanbul":"^2.0.1","eslint-plugin-jsx-a11y":"^2.2.2","eslint-formatter-pretty":"^1.0.0","cz-conventional-changelog":"^1.1.5","eslint-config-commercetools":"^4.0.0","babel-plugin-transform-runtime":"^6.12.0"},"_npmOperationalInternal":{"tmp":"tmp/sphere-product-type-import-2.0.0.tgz_1516120877731_0.9794163124170154","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"sphere-product-type-import","version":"2.0.1","keywords":["ctp","commercetools","product-type","import"],"author":{"name":"Philipp Sporrer","email":"philipp.sporrer@commercetools.de"},"license":"MIT","_id":"sphere-product-type-import@2.0.1","maintainers":[{"name":"commercetools","email":"npmjs@commercetools.com"},{"name":"hisabimbola","email":"abimbola2010@gmail.com"},{"name":"philippspo","email":"philipp.sporrer@planifica.de"},{"name":"wizzy25","email":"womayuku@gmail.com"}],"homepage":"https://github.com/sphereio/sphere-product-type-import#readme","bugs":{"url":"https://github.com/sphereio/sphere-product-type-import/issues"},"nyc":{"include":["src/"],"sourceMap":false,"instrument":false},"dist":{"shasum":"a155b5a0ff6b64810dd5ff5243c51d4ed68da8fa","tarball":"https://registry.npmjs.org/sphere-product-type-import/-/sphere-product-type-import-2.0.1.tgz","fileCount":6,"integrity":"sha512-v7eyaOCwhtUGZJfy+nzTajj+J0/0i8NlrWNzxRNSb344G2G3RDXnBavIC90FqbdnKeDB/sHneCIRrXpHVCoufQ==","signatures":[{"sig":"MEQCIBJWHjp+6Gk2VqRd3zmu6waaqEw7Dw9uIILZHunDFEK+AiAryB5dxLFGewquEPfXoAJH+Hj3kJIj/BtFVO/wY26QwA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFq2+CRA9TVsSAnZWagAAI4oP/2KwaiA7CRWVVGjzmnl5\n8FJ9RcFotWtybaRm0XguLxqvfTmu9nHN1mDrQf61JaD2HTm4KMouYntX271O\nJMTlecEEJ7RQqS1ZFs4RiqS5kcQPh4ZFNwZ64an97Ti71lnPod6apiDxpgyc\nEPxtZAvCYl4OckdZPnhh+gKt5fNsiPZhBshiLCSIacuLLbYzgie4UL2TThNI\nFgtuurgdSJmE79r/o8ZmEQ2+bVVlEH+EpYl9i6Cdh/BFVu+/RobNND7sgOYH\nEjueXfWgleompDfwNDzLM6hXwY0VU7yaKB/uqJ/8EEYtGINIsn3zMUV4blHW\nWsHCUeTRr+xzlJZ14IT3PgItLdszfvvWnduRqXvSJJpAEGupAsSpTlh6169a\nUTK2WeqdOFquU/ULEJezPl1/OTkw9JclFRDNNy4TT7SPdr3pBezwQVueRLTo\nwGnzVzINOCufMcTLpb7dPCbo6Aj4A0bGVADjHXMfRCjDRPlGmOfX0V+c+XC4\nvUw6imkr13P90UEc9Ma8gr26vwak+4/IiZN6MjQxVaeZYuy2WrixYb1dJOs5\nQ/adY54louLSVvmQ91jyM2c4wVtE+hS01IM1NX1sgllDkitqQ04Vao9sPiI/\nFdCoHc7/9CGAokkhnUaqWkfT3bXA6RPkhiKP4+OQBI8b56gmMaP/PQTEewvO\nwVe3\r\n=/4At\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","files":["dist/"],"config":{"ghooks":{"commit-msg":"validate-commit-msg","pre-commit":"./scripts/lint-staged-files"},"commitizen":{"path":"cz-conventional-changelog"}},"engines":{"node":">= 6"},"gitHead":"6c80f6b901a4c2ba394c8fcb8e9e59e66144d301","scripts":{"lint":"./scripts/lint src tests","test":"cross-env NODE_ENV=test NODE_PATH=./src babel-node node_modules/.bin/tape tests/**/*.spec.js | ./node_modules/.bin/tap-spec","build":"npm run clean && babel src --out-dir dist","clean":"rimraf dist/* coverage","commit":"git-cz","coverage":"npm run lint && npm run clean && cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text npm test","test:watch":"chokidar src test -c 'npm test'","check-coverage":"nyc check-coverage --lines 100 --functions 100 --branches 100 --statements 100","report-coverage":"cat ./coverage/lcov.info | codecov","semantic-release":"semantic-release pre && npm run build && npm publish && semantic-release post"},"_npmUser":{"name":"commercetools-admin","email":"npmjs@commercetools.com"},"repository":{"url":"git+https://github.com/sphereio/sphere-product-type-import.git","type":"git"},"_npmVersion":"5.6.0","description":"Library that helps with importing product type into the commercetools platform","directories":{},"_nodeVersion":"10.2.1","dependencies":{"ajv":"^6.0.1","lodash":"^4.6.1","bluebird":"^3.5.1","estraverse":"^4.2.0","underscore":"^1.8.3","sphere-node-sdk":"^1.23.0","sphere-node-utils":"^1.0.0","underscore-mixins":"^0.1.4"},"eslintConfig":{"rules":{"indent":["error",2],"prefer-promise-reject-errors":0},"extends":"commercetools","settings":{"import/resolver":{"node":{"paths":["src/"]}}}},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.4.1","cuid":"^2.0.2","tape":"^4.6.0","sinon":"^4.1.6","eslint":"^4.16.0","ghooks":"^2.0.2","rimraf":"^2.5.4","codecov":"^3.0.0","tap-spec":"^4.1.1","babel-cli":"^6.6.0","cross-env":"^5.1.3","babel-core":"^6.6.5","commitizen":"^2.6.1","babel-eslint":"^8.2.1","chokidar-cli":"^1.2.0","babel-runtime":"^6.9.2","babel-register":"^6.14.0","semantic-release":"^12.2.0","babel-preset-es2015":"^6.14.0","eslint-plugin-react":"^7.5.1","validate-commit-msg":"^2.8.2","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.8.0","babel-plugin-istanbul":"^4.1.5","eslint-plugin-jsx-a11y":"^6.0.3","eslint-formatter-pretty":"^1.0.0","cz-conventional-changelog":"^2.1.0","eslint-config-commercetools":"^6.0.0","babel-plugin-transform-runtime":"^6.12.0"},"_npmOperationalInternal":{"tmp":"tmp/sphere-product-type-import_2.0.1_1528212925371_0.0706932095775945","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"sphere-product-type-import","version":"2.0.2","keywords":["ctp","commercetools","product-type","import"],"author":{"name":"Philipp Sporrer","email":"philipp.sporrer@commercetools.de"},"license":"MIT","_id":"sphere-product-type-import@2.0.2","maintainers":[{"name":"adnasa","email":"konjuku@gmail.com"},{"name":"commercetools-admin","email":"npmjs@commercetools.com"},{"name":"daern91","email":"daern91@gmail.com"},{"name":"emmenko","email":"emmenko@gmail.com"},{"name":"hajoeichler","email":"eichler.hajo@gmail.com"},{"name":"hisabimbola","email":"abimbola2010@gmail.com"},{"name":"philippspo","email":"philipp.sporrer@planifica.de"},{"name":"tdeekens","email":"nerd@tdeekens.name"},{"name":"wizzy25","email":"womayuku@gmail.com"},{"name":"yanns","email":"yann.simon.fr@gmail.com"}],"homepage":"https://github.com/sphereio/sphere-product-type-import#readme","bugs":{"url":"https://github.com/sphereio/sphere-product-type-import/issues"},"nyc":{"include":["src/"],"sourceMap":false,"instrument":false},"dist":{"shasum":"702dc5b2957535a2477762cce3c8b05c5c70c4be","tarball":"https://registry.npmjs.org/sphere-product-type-import/-/sphere-product-type-import-2.0.2.tgz","fileCount":6,"integrity":"sha512-y6J/T8GZWjH1MJpjR6Jzs6FM/PMGVYa7yPDE9zPaouTDEWJ1I2+rqoycTuMkgmPkUka8545/YLxF3bOK3xCrQQ==","signatures":[{"sig":"MEUCIDYNnsHiKWmcprgWUVqJfxmY0sLji8WkdBnfVzMq5CSwAiEAqa6VAVQY+zaS9uBJADWF7ctOOWaXJO54B87j+HyVr5s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16574,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9UQsCRA9TVsSAnZWagAAPRAP/2rp1Ux39qhfIONFB8Es\n7FleAldf1r27xFsgf7w79n0XTZ2XOmrpA+mLYsxbegPCe28FOlIgIWOn8JdR\nORb4bdtAqON+lvm0T28Whs0J4wxOv89IF3Olxq8+SUtmbEG6CqRLv1kE1N4G\ndXeQiuk9uyzqOeAQEbA6bAD8Eb2BGlQca4Nuq13DKK6tAB6KU9SvUqv8Rl6G\nLckGrGBUcC0yrvVo6yBnn82dM7WxYyaMnvPnEHx+3kjhG1xLUaFTmCDIMyli\nDnsiqtVHlM/mees1Z1HWDwKnbhYJnjpl+Q/6MOaih8fWQOa9gqncAnFCv4TP\nSFoylf38jvNbpp9pjQiWmt9Y6kv7ZLZQmB1VFFsB1NkyhGttp4ZcTHB+euWZ\n9szRbQGHhRHCNEHWBEb/neP9Lc3hvarSdrbHzdu10QlHNBkJ5UV5+5+LliPj\niesT3Z1lH5P8pHKy0t0AGYfM+DCFqwcei7qakCFnWds/g8uY9xPShfjo7M4B\niBL6bdFW7t/ADTangktVyfOllyVQNcP7sEYVzK6dOf8ovOXw/UMVNuPqNOWi\nofWVFKTQ35HNE9YY6dKTrakd++DTBoyWmplzZvTe8gxSi+F1laHVSgtRh0PN\nRR9Fzq05u6lJ3hhHKueJIJ4iYrUwU+LUQDnKXP6tHpsyV13O6gw+KohtS8bV\nI2I6\r\n=1rF/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","config":{"ghooks":{"commit-msg":"validate-commit-msg","pre-commit":"./scripts/lint-staged-files"},"commitizen":{"path":"cz-conventional-changelog"}},"engines":{"node":">= 6"},"gitHead":"dbd3d4b11e213fa67dc565ccc476aa9780fbaf42","scripts":{"lint":"./scripts/lint src tests","test":"cross-env NODE_ENV=test NODE_PATH=./src babel-node node_modules/.bin/tape tests/**/*.spec.js | ./node_modules/.bin/tap-spec","build":"npm run clean && babel src --out-dir dist","clean":"rimraf dist/* coverage","commit":"git-cz","coverage":"npm run lint && npm run clean && cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text npm test","test:watch":"chokidar src test -c 'npm test'","check-coverage":"nyc check-coverage --lines 100 --functions 100 --branches 100 --statements 100","report-coverage":"cat ./coverage/lcov.info | codecov","semantic-release":"semantic-release pre && npm run build && npm publish && semantic-release post"},"_npmUser":{"name":"daern91","email":"daern91@gmail.com"},"repository":{"url":"git+https://github.com/sphereio/sphere-product-type-import.git","type":"git"},"_npmVersion":"6.4.1","description":"Library that helps with importing product type into the commercetools platform","directories":{},"_nodeVersion":"8.12.0","dependencies":{"ajv":"^6.0.1","lodash":"^4.6.1","bluebird":"^3.5.1","estraverse":"^4.2.0","underscore":"^1.8.3","sphere-node-sdk":"^2.1.2","sphere-node-utils":"^1.0.0","underscore-mixins":"^0.1.4"},"eslintConfig":{"rules":{"indent":["error",2],"prefer-promise-reject-errors":0},"extends":"commercetools","settings":{"import/resolver":{"node":{"paths":["src/"]}}}},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.4.1","cuid":"^2.0.2","tape":"^4.6.0","sinon":"^4.1.6","eslint":"^4.16.0","ghooks":"^2.0.2","rimraf":"^2.5.4","codecov":"^3.0.0","tap-spec":"^5.0.0","babel-cli":"^6.6.0","cross-env":"^5.1.3","babel-core":"^6.6.5","commitizen":"^2.6.1","babel-eslint":"^8.2.1","chokidar-cli":"^1.2.1","babel-runtime":"^6.9.2","babel-register":"^6.14.0","semantic-release":"^12.2.0","babel-preset-es2015":"^6.14.0","eslint-plugin-react":"^7.5.1","validate-commit-msg":"^2.8.2","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.8.0","babel-plugin-istanbul":"^4.1.5","eslint-plugin-jsx-a11y":"^6.0.3","eslint-formatter-pretty":"^1.0.0","cz-conventional-changelog":"^2.1.0","eslint-config-commercetools":"^6.0.0","babel-plugin-transform-runtime":"^6.12.0"},"_npmOperationalInternal":{"tmp":"tmp/sphere-product-type-import_2.0.2_1542800428291_0.5328481710167745","host":"s3://npm-registry-packages"}}},"time":{"created":"2016-04-18T12:03:48.157Z","modified":"2026-07-06T10:29:29.164Z","1.0.0":"2016-04-18T12:03:48.157Z","1.1.0":"2016-08-10T15:42:01.494Z","1.1.1":"2018-01-16T16:12:43.982Z","2.0.0":"2018-01-16T16:41:18.691Z","2.0.1":"2018-06-05T15:35:25.453Z","2.0.2":"2018-11-21T11:40:28.442Z"},"bugs":{"url":"https://github.com/sphereio/sphere-product-type-import/issues"},"author":{"name":"Philipp Sporrer","email":"philipp.sporrer@commercetools.de"},"license":"MIT","homepage":"https://github.com/sphereio/sphere-product-type-import#readme","keywords":["ctp","commercetools","product-type","import"],"repository":{"url":"git+https://github.com/sphereio/sphere-product-type-import.git","type":"git"},"description":"Library that helps with importing product type into the commercetools platform","maintainers":[{"email":"npmjs@commercetools.com","name":"commercetools-admin"},{"email":"emmenko@gmail.com","name":"emmenko"},{"email":"eichler.hajo@gmail.com","name":"hajoeichler"},{"email":"nerd@tdeekens.name","name":"tdeekens"},{"email":"jens.schulze@commercetools.com","name":"jenschude"},{"email":"chukwuemeka.ajima@commercetools.com","name":"chukwuemeka"}],"readme":"![commercetools logo](https://cdn.rawgit.com/commercetools/press-kit/master/PNG/72DPI/CT%20logo%20horizontal%20RGB%2072dpi.png)\n\n# sphere-product-type-import\n\n[![Travis][travis-badge]][travis-url]\n[![Codecov][codecov-badge]][codecov-url]\n[![npm][npm-lic-badge]][npm-lic-url]\n[![semantic-release][semantic-release-badge]][semantic-release-url]\n[![Commitizen friendly][commitizen-badge]][commitizen-url]\n[![NPM version][npm-image]][npm-url]\n\nA library that helps with importing [product-types](http://dev.commercetools.com/http-api-projects-productTypes.html) into the [Commercetools Platform](http://www.commercetools.com/).  \nThis library is built to be used in conjunction with [sphere-node-cli](https://github.com/sphereio/sphere-node-cli).\n\nTable of Contents\n=================\n  * [Features](#features)\n  * [Configuration](#configuration)\n  * [Usage](#usage)\n    * [Usage with sphere-node-cli](#usage-with-sphere-node-cli)\n    * [Direct usage](#direct-usage)\n  * [Contributing](#contributing)\n\n## Features\n- Import product types to your CTP project\n- Pre-validate product types using a [JSON schema](https://github.com/sphereio/sphere-product-type-import/blob/master/src/product-type-import.js#L7)\n\n## Configuration\nThe configuration object may contain:\n- `sphereClientConfig`: see the [sphere-node-sdk docs](http://sphereio.github.io/sphere-node-sdk/) for more information on this\n\n## Usage\n\n### Usage with `sphere-node-cli`\n\nYou can use the product type import from the command line using the [`sphere-node-cli`](https://github.com/sphereio/sphere-node-cli).\nIn order for the cli to import product types, the file to import from must be JSON and follow the this structure:\n```\n{\n  \"productTypes\": [\n    <product-type>,\n    <product-type>,\n    ...\n  ]\n}\n```\nThen you can import this file using the cli:\n```\nsphere-node-cli -t productType -p my-project-key -f /sample_dir/productTypes.json\n```\nYou can pass a custom configuration as described above via the `-c` operator followed by a JSON String that represents your configuration\n\n### Direct usage\n\nIf you want more control, you can also use this library directly in JavaScript. To do this you first need to install it:\n```\nnpm install sphere-product-type-import --save-dev\n```\nThen you can use it to import product types like so:\n```\nimport ProductTypeImport from 'sphere-product-type-import'\n\nconst productType = {\n  name: '<some-name>',\n  description: '<some-description>'\n}\nconst config = {\n  importerConfig: {\n    continueOnProblems: false\n  },\n  sphereClientConfig: {\n    config: {\n      project_key: <PROJECT_KEY>,\n      client_id: '*********',\n      client_secret: '*********'\n    }\n  }\n}\nconst productTypeImport = ProductTypeImport(config)\n\nproductTypeImport.importProductType(productType)\n.then(() => {\n  // done importing the productType\n  // look at the summary to see errors\n  productTypeImport.summary\n  // the summary hast the following structure\n  // {\n  //   errors: [],\n  //   inserted: [<some-name>],\n  //   successfulImports: 1\n  // }\n})\n```\n\nWhen there is an error during processing productTypes, process will by default save this error to `summary.errors` array and reject. If the configuration flag `importerConfig.continueOnProblems` is set to `true` the importer will only push error to summary and then continue with next productType.\n \n## Contributing\n  See [CONTRIBUTING.md](CONTRIBUTING.md) file for info on how to contribute to this library\n\n[travis-badge]: https://img.shields.io/travis/sphereio/sphere-product-type-import.svg?style=flat-square\n[travis-url]: https://travis-ci.org/sphereio/sphere-product-type-import\n\n[codecov-badge]: https://img.shields.io/codecov/c/github/sphereio/sphere-product-type-import.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/sphereio/sphere-product-type-import\n\n[npm-lic-badge]: https://img.shields.io/npm/l/sphere-product-type-import.svg?style=flat-square\n[npm-lic-url]: http://spdx.org/licenses/MIT\n\n[semantic-release-badge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square\n[semantic-release-url]: https://github.com/semantic-release/semantic-release\n\n[commitizen-badge]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square\n[commitizen-url]: http://commitizen.github.io/cz-cli/\n\n[npm-url]: https://npmjs.org/package/sphere-product-type-import\n[npm-image]: http://img.shields.io/npm/v/sphere-product-type-import.svg?style=flat-square\n[npm-downloads-image]: https://img.shields.io/npm/dt/sphere-product-type-import.svg?style=flat-square\n","readmeFilename":"README.md"}