{"_id":"@emiljohansson/vue-context","_rev":"3-ab66639e8ce53ed8fd18ac49a1d2a8c4","name":"@emiljohansson/vue-context","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@emiljohansson/vue-context","version":"0.0.1","description":"Creates a React like context between parent and child components","main":"dist/vue-context.js","types":"dist/vue-context.d.ts","scripts":{"test":"jest","test:watch":"jest --watchAll","test:coverage":"jest --coverage","build":"tsc -p tsconfig.json --declaration","serve:demo":"npm run build && parcel ./demo/index.html -d demo/dist"},"repository":{"type":"git","url":"git+https://github.com/emiljohansson/vue-context.git"},"keywords":["vue","vue-context","provider","inject"],"author":{"name":"Emil Johansson","email":"emiljohansson.dev@gmail.com"},"license":"MIT","devDependencies":{"@types/jest":"24.0.11","@vue/component-compiler-utils":"3.0.0","babel-eslint":"10.0.1","jest":"24.7.1","parcel-bundler":"1.12.3","ts-jest":"24.0.2","typescript":"3.4.3","vue":"2.6.10","vue-hot-reload-api":"2.3.3","vue-template-compiler":"2.6.10","vue-typescript-jest":"0.3.1"},"posthtml":{"recognizeSelfClosing":true},"jest":{"collectCoverageFrom":["**/vue-context.ts"],"moduleFileExtensions":["ts","js"],"transform":{"^.+\\.ts?$":"ts-jest",".*\\.(ts|vue)$":"<rootDir>/node_modules/vue-typescript-jest/preprocessor.js"},"testMatch":["**/test.ts"],"globals":{"ts-jest":{"babelConfig":true,"tsConfig":"tsconfig.jest.json"}},"coveragePathIgnorePatterns":["/node_modules/"],"coverageReporters":["json","lcov","text","text-summary"]},"gitHead":"91867e045e66ca649727874403e7215cba8a748c","bugs":{"url":"https://github.com/emiljohansson/vue-context/issues"},"homepage":"https://github.com/emiljohansson/vue-context#readme","_id":"@emiljohansson/vue-context@0.0.1","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"emiljohansson","email":"emiljohansson.dev@gmail.com"},"dist":{"integrity":"sha512-f2k7uTsw7KVM5AFPkLKGimt3MoMDfxCVwRgqOsIt/n5+uOreIGDSW0uJC0sMr2BASFUQsh9uQEp9OtNyuNiSnQ==","shasum":"887651a7246138986b31ac8f673990cefe761091","tarball":"https://registry.npmjs.org/@emiljohansson/vue-context/-/vue-context-0.0.1.tgz","fileCount":10,"unpackedSize":8301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcs2KhCRA9TVsSAnZWagAAGy8P/0u+hb08lFq2HIFqr9UJ\nct8ChNeCNS+J/bKHP0kbA31m4Fo0qSQ63V8tVRhKF6LLUPzMvJwjOjEmeycC\nyF68cK8fFC5aF55cz3uqMoQHyJaF8jewpcO8BSXheHP67+73+i3HBYXyWy4Q\nSyEQCZBcSWZmCinBon+4jGgivnpSu/oyTzndrSibmqSAK8Hkclayb5PSJsmL\neCaJz2G2vBXetA00HFPTqO+KSGR8o0Z9h+CqC6wQYpXx0p787o7fQ6Z/XsLB\nRGOEDVvPHUXMH3I2ql/ZnfkD64DO2Hgv/KMDQ6X5DhPuBTnbNkNjFl3+3hOC\nb8NF4LKRgvnBKhRtszIus85u28HeUGTsxF0X2zgLKWY275jxlxVcc3DrSYus\n54r6LqJmuHFC7UVqr8SEWdap2oSnDFQVfwxgU2JAKVwRuv0DFEzJGa1mhL+x\njq9iw2VF4hs2smo9dQEg86Xqewlc9PtUuj/eD79hLvRtLRuJdwHBUrIUGP1q\nqR8WbgZewox88uOjLtJ/asVU2XJRyjGpWdE7bzQB9l20Wr5rX0Fgk/9+PYW5\ntfztXqlLjsdFEwIXiMs8e0TlvIfDsJPHm2fYE6m4r64+ZGwYuWNuW9at23LR\nDZZ2Nfx1LOB01qKI9jDDt4RebYHy5zBcEOcP34CmSAs/HvjaXk9+hOgXTgG8\nyeBk\r\n=Wroy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFziLcYeT0bugLsdHeXkQQ4OJh3L8E1oB1ZlD23PHOpoAiB3W2QYuYqPIQEhUxXAZQzA5GENnNk2ueueR1qoR4wpxQ=="}]},"maintainers":[{"name":"emiljohansson","email":"emiljohansson.dev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-context_0.0.1_1555260064933_0.36558363042082376"},"_hasShrinkwrap":false},"0.0.2":{"name":"@emiljohansson/vue-context","version":"0.0.2","description":"Creates a React like context between parent and child components","main":"dist/vue-context.js","types":"dist/vue-context.d.ts","scripts":{"test":"jest","test:watch":"jest --watchAll","test:coverage":"jest --coverage","build":"tsc -p tsconfig.json --declaration","serve:demo":"npm run build && parcel ./demo/index.html -d demo/dist --no-cache","build:demo":"npm run build && parcel build ./demo/index.html -d demo/build --public-url ./ --no-cache"},"repository":{"type":"git","url":"git+https://github.com/emiljohansson/vue-context.git"},"keywords":["vue","vue-context","provider","inject"],"author":{"name":"Emil Johansson","email":"emiljohansson.dev@gmail.com"},"license":"MIT","devDependencies":{"@types/jest":"24.0.11","@vue/component-compiler-utils":"3.0.0","babel-eslint":"10.0.1","jest":"24.7.1","parcel-bundler":"1.12.3","ts-jest":"24.0.2","typescript":"3.4.3","vue":"2.6.10","vue-hot-reload-api":"2.3.3","vue-template-compiler":"2.6.10","vue-typescript-jest":"0.3.1"},"posthtml":{"recognizeSelfClosing":true},"jest":{"collectCoverageFrom":["**/vue-context.ts"],"moduleFileExtensions":["ts","js"],"transform":{"^.+\\.ts?$":"ts-jest",".*\\.(ts|vue)$":"<rootDir>/node_modules/vue-typescript-jest/preprocessor.js"},"testMatch":["**/test.ts"],"globals":{"ts-jest":{"babelConfig":true,"tsConfig":"tsconfig.jest.json"}},"coveragePathIgnorePatterns":["/node_modules/"],"coverageReporters":["json","lcov","text","text-summary"]},"gitHead":"dd6ce93993710617a55060cd460c61898e5e0649","bugs":{"url":"https://github.com/emiljohansson/vue-context/issues"},"homepage":"https://github.com/emiljohansson/vue-context#readme","_id":"@emiljohansson/vue-context@0.0.2","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"emiljohansson","email":"emiljohansson.dev@gmail.com"},"dist":{"integrity":"sha512-nAan57hModL+uh/QeJPKNGLD4YvvrafTWY8wizjKIvaEoMxvYOtDLwV5Os/dKFuB8nYVKfpluKaf921iCDpl4g==","shasum":"8675a83ce36fbda5dfd6d6753220c4c727eb2c64","tarball":"https://registry.npmjs.org/@emiljohansson/vue-context/-/vue-context-0.0.2.tgz","fileCount":5,"unpackedSize":5221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcs3r5CRA9TVsSAnZWagAARYQQAI/YB6UV/x8Q/6Z3cxQx\nXduFuAUfkhDfVFbWsp38gLg1SPevMP/yBUj+7PjZwjDHwwJiguO6CuxcFSXI\nPKbU+4tMdCukw7Dg5O2nbPfc3ah7rmQNspw5GAMakTwuZOeA0HCWn9im8SWK\nvj/rnnavnLYaK7o0O4bjz+pzqjLJne2cQS6/SP1Bg4kREp6pKnQBVKPHlTg0\nx7uuyskjJC039Rwjnh2IvRmV69PFagMXxnUg6mDFf0qGcwUTesQY4RBAM1zy\nZ7Uw7VmDjn2Inl2JCdVJLKpqK9npVKXzH1vmHCHDgj01C1UjKr7W6m8kI39D\n9LXqv7wZtCH8yckwYIqEJK9Zx16hbo5D5eLPhUgtRL3/1z0PpoIMOJousb2U\njRmkLjpjIlGzpLUHHJfpL1aam6TUTbqpC7dOqYDMokWA5xQKgI4Hjily6ku0\nHGp6RnwjQ7e7Bx8IeoUle98bPd93HFjrecWSqXeSuDMmIijL5Lc7Hpxan9S0\nzGRMtKEMfp1yhhcWzBlTX+pR7LXLTjPeNAqENU0YfVP+Lyb6GS5dG1cfv3QW\nCtjdjMsLCSbKtG5k+tBs2gCZO2D86oieXnIhEEdGBKF98CjaHQAdXUt6FqZI\n+XlBUUvxdmZtQBw7neIwr24DUWnGwkxACduXLwsHGnJxkhek1xJ9PSZYwnjd\nKI+h\r\n=KLNw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSEGWb9mFIusKejIF1BMw0GhEGWL7eEsuthXT5gWUzRwIhAPlbYqAnieKL0evaXDXCdqRJI6bDjDddoDdXwYXZQBEb"}]},"maintainers":[{"name":"emiljohansson","email":"emiljohansson.dev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-context_0.0.2_1555266297095_0.22289500882188595"},"_hasShrinkwrap":false},"0.0.3":{"name":"@emiljohansson/vue-context","version":"0.0.3","description":"Creates a React like context between parent and child components","main":"dist/vue-context.js","types":"dist/vue-context.d.ts","scripts":{"test":"jest","test:watch":"jest --watchAll","test:coverage":"jest --coverage","build":"tsc -p config/tsconfig.json --declaration","serve:demo":"npm run build && parcel ./demo/index.html -d demo/dist --no-cache","build:demo":"npm run build && parcel build ./demo/index.html -d demo/build --public-url ./ --no-cache"},"repository":{"type":"git","url":"git+https://github.com/emiljohansson/vue-context.git"},"keywords":["vue","vue-context","provider","inject"],"author":{"name":"Emil Johansson","email":"emiljohansson.dev@gmail.com"},"license":"MIT","devDependencies":{"@types/jest":"24.0.11","@vue/component-compiler-utils":"3.0.0","babel-eslint":"10.0.1","jest":"24.7.1","parcel-bundler":"1.12.3","ts-jest":"24.0.2","typescript":"3.4.3","vue":"2.6.10","vue-hot-reload-api":"2.3.3","vue-template-compiler":"2.6.10","vue-typescript-jest":"0.3.1"},"posthtml":{"recognizeSelfClosing":true},"jest":{"collectCoverageFrom":["src/vue-context.ts"],"moduleFileExtensions":["ts","js"],"transform":{"^.+\\.ts?$":"ts-jest",".*\\.(ts|vue)$":"<rootDir>/node_modules/vue-typescript-jest/preprocessor.js"},"testMatch":["**/src/test.ts"],"globals":{"ts-jest":{"babelConfig":true,"tsConfig":"config/tsconfig.jest.json"}},"coveragePathIgnorePatterns":["/node_modules/"],"coverageReporters":["json","lcov","text","text-summary"]},"gitHead":"18de687954d5dfe15fbffdd4131a1147c8b61752","bugs":{"url":"https://github.com/emiljohansson/vue-context/issues"},"homepage":"https://github.com/emiljohansson/vue-context#readme","_id":"@emiljohansson/vue-context@0.0.3","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"emiljohansson","email":"emiljohansson.dev@gmail.com"},"dist":{"integrity":"sha512-rIJ2j/5aRpThfqShW/tcRkuVnxKnYdl/adKoi9V1KqI3OseH5qoeY5SBiLcvKRtLdtjHjnXJ1/QlvCDyKp3N/Q==","shasum":"c83ebffd8b2347fc897b35ddb222b51fd37d6abb","tarball":"https://registry.npmjs.org/@emiljohansson/vue-context/-/vue-context-0.0.3.tgz","fileCount":5,"unpackedSize":5240,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcs4HSCRA9TVsSAnZWagAAXdcQAI4BSK//JzEedZfmJq15\nD6+pj6wMm7NMsrM0oy3hAs4vxwMEWxRCEGvQlZ476fvkpnlTPy1qJsFYzS2G\njEp8Ib2AzBIa14TaKY2RUFAgBqCJJNrf88zREDgJ8OuZYAvWtuXojsM7BbcQ\n96fZs9tWGA8ZxrSSffF0ffYVpKfkzynHGymlMhAmlMRgEW+PHe7EGXcOcbbb\n8hBtHZ52Kzn+cVohKC7KRb3gMfQnvCKwpPQSt1wgbcPs9bAb2axfsngUErDU\nLgY2dBVoIOdWGRSIrMBQPHdtLJbMNgpUcjSXKVd4XpVI9squ1vbNZJsRZhYo\nGcQjBRK8ofaJQzK/PH/HNtB0++oyTTN8xrQgyBUQNpCUMyvD2RmMnlxf2Fns\nf/G2oSPEEsznta9Os2tGQliRlYE/ztuFg4gv76YBXfeg77zDWHguPl2D1ck+\nf/wGGfSTsW7ok0af3v9DcMqsf8HF+/V4NuLvAr+1shZkl8n5EvsZlQ4rSp3W\nhSIMYEzspjp4rYlF4dB1R8qTpJGYMHweewUAecuYFGZ6PA1nKXF58p3H3waE\nXI4LpdnGPqSiQ8r+ar4kB9jjbrYTiGIn/N+JxMIl1T6erLHCc4/E3zxkmzQy\nChitH3KYfTX9ikrwsXHZnzHCIuDv7VLLadAb6257pnMJ2QVAeoxw04p8VZxY\nkoRm\r\n=7ix0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9xDXg9b+GYp6Agzj4vhjX5vqwAAi2RKY2tLMjPJ45cgIhAIQy8vYTviJaScgUozd/ZScCr1NL3BinfFhW6B8qNE6a"}]},"maintainers":[{"name":"emiljohansson","email":"emiljohansson.dev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-context_0.0.3_1555268049756_0.7546993221786693"},"_hasShrinkwrap":false}},"time":{"created":"2019-04-14T16:41:04.740Z","0.0.1":"2019-04-14T16:41:05.087Z","modified":"2022-04-05T07:33:25.304Z","0.0.2":"2019-04-14T18:24:57.254Z","0.0.3":"2019-04-14T18:54:09.890Z"},"maintainers":[{"name":"emiljohansson","email":"emiljohansson.dev@gmail.com"}],"description":"Creates a React like context between parent and child components","homepage":"https://github.com/emiljohansson/vue-context#readme","keywords":["vue","vue-context","provider","inject"],"repository":{"type":"git","url":"git+https://github.com/emiljohansson/vue-context.git"},"author":{"name":"Emil Johansson","email":"emiljohansson.dev@gmail.com"},"bugs":{"url":"https://github.com/emiljohansson/vue-context/issues"},"license":"MIT","readme":"# vue-context [![Build Status](https://travis-ci.org/emiljohansson/vue-context.svg?branch=master)](https://travis-ci.org/emiljohansson/vue-context)\n\nCreates a React like context between parent and child components.\n\n## Demo\n\n**https://emiljohansson.github.io/vue-context/demo/build/**\n\n## Install\n\n#### NPM\n```bash\n$ npm install @emiljohansson/vue-context\n```\n\n```javascript\nimport VueContext from '@emiljohansson/vue-context'\n\nVue.use(VueContext)\n```\n\n## Example\n\n```javascript\nconst store = {\n  state: {\n    value: 42\n  },\n  methods: {\n    setValue (state, newValue) {\n      state.value = newValue\n    }\n  }\n}\n\nconst root = {\n  data () {\n    return {\n      // If you need to use the same data in the provider.\n      // Otherwise you can create this directly in provide()\n      appContext: this.$createContext(store)\n    }\n  },\n  provide () {\n    return {\n      appContext: this.appContext\n    }\n  }\n}\n\nconst childComponent = {\n  inject: ['appContext']\n}\n\n```\n\n## License\n\nMIT © [Emil Johansson](http://emiljohansson.dev)\n","readmeFilename":"readme.md"}