vue-fragment
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "vue-fragment", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "fragment component for vuejs", | ||
@@ -9,8 +9,7 @@ "main": "dist/vue-fragments.min.js", | ||
"build": "node ./rollup.build.js", | ||
"prepublish": "npm run build", | ||
"postinstall": "node -e \"require('./package.json').name === 'vue-fragments' ? console.error('\n [vue-fragment] \"vue-fragments\" is deprecated. run \"npm install vue-fragment\" (without trailing s)\n') : null\"" | ||
"prepublish": "npm run build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/y-nk/vue-fragments.git" | ||
"url": "git+https://github.com/y-nk/vue-fragment.git" | ||
}, | ||
@@ -25,3 +24,3 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/y-nk/vue-fragments/issues" | ||
"url": "https://github.com/y-nk/vue-fragment/issues" | ||
}, | ||
@@ -34,3 +33,3 @@ "peerDependencies": { | ||
], | ||
"homepage": "https://github.com/y-nk/vue-fragments#readme", | ||
"homepage": "https://github.com/y-nk/vue-fragment#readme", | ||
"devDependencies": { | ||
@@ -37,0 +36,0 @@ "@babel/core": "^7.1.2", |
@@ -1,2 +0,2 @@ | ||
# vue-fragments | ||
# vue-fragment | ||
## what | ||
@@ -18,3 +18,3 @@ a very candide fragment component for Vue.js | ||
### Use | ||
- download the package `npm i -s vue-fragments` | ||
- download the package `npm i -s vue-fragment` | ||
@@ -25,3 +25,3 @@ From here, you can: | ||
``` | ||
import Fragment from 'vue-fragments' | ||
import Fragment from 'vue-fragment' | ||
Vue.use(Fragment.Plugin) | ||
@@ -31,3 +31,3 @@ | ||
import { Plugin } from 'vue-fragments' | ||
import { Plugin } from 'vue-fragment' | ||
Vue.use(Plugin) | ||
@@ -50,3 +50,3 @@ | ||
``` | ||
import { Fragment } from 'vue-fragments' | ||
import { Fragment } from 'vue-fragment' | ||
@@ -64,4 +64,1 @@ export const MyComponent { | ||
``` | ||
### Side note | ||
The package is named `vue-fragments` because it took some time to release the `vue-fragment` which was already taken. I plan to migrate slow |
import directive from './directive' | ||
/* | ||
// wait for PR 'assets for functional components' to pass | ||
export default { | ||
functional: true, | ||
directives: { | ||
'fragment': directive | ||
}, | ||
render: function(h, context) { | ||
return h( | ||
'div', { | ||
attrs: { class: 'fragment' }, | ||
directives: [{ name: 'fragment' }] | ||
}, | ||
[context.children] | ||
) | ||
} | ||
} | ||
*/ | ||
export default { | ||
abstract: true, | ||
@@ -5,0 +24,0 @@ directives: { 'fragment': directive }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
152
0
0
9105
60