Comparing version 0.1.2 to 0.2.0
@@ -1,1 +0,1 @@ | ||
module.exports = require('classes'); | ||
module.exports = require('component-classes'); |
{ | ||
"name": "min-dom", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "A minimal dom utility toolbelt", | ||
"scripts": { | ||
"test": "echo \"no tests\"; exit 1;" | ||
"test": "karma start test/config/karma.conf.js --single-run --no-auto-watch" | ||
}, | ||
@@ -24,24 +24,5 @@ "keywords": [ | ||
"license": "MIT", | ||
"browser": { | ||
"isArray": "is-array", | ||
"each": "foreach", | ||
"event": "component-event", | ||
"query": "component-query", | ||
"classes": "component-classes", | ||
"delegate": "component-delegate", | ||
"matches-selector": "component-matches-selector", | ||
"css": "component-css", | ||
"keys": "./vendor/keys.js", | ||
"trim": "./vendor/trim.js", | ||
"value": "./vendor/value.js", | ||
"type": "./vendor/type.js", | ||
"text": "./vendor/text.js", | ||
"traverse": "./vendor/traverse.js", | ||
"props": "./vendor/props.js", | ||
"to-function": "./vendor/to-function.js" | ||
}, | ||
"dependencies": { | ||
"component-classes": "^1.2.3", | ||
"component-closest": "^0.1.4", | ||
"component-css": "^0.0.6", | ||
"component-delegate": "^0.2.3", | ||
@@ -51,6 +32,14 @@ "component-event": "^0.1.4", | ||
"component-query": "^0.0.3", | ||
"domify": "^1.3.1", | ||
"foreach": "^2.0.5", | ||
"is-array": "^1.0.1" | ||
"domify": "^1.3.1" | ||
}, | ||
"devDependencies": { | ||
"chai": "^2.0.0", | ||
"karma": "^0.12.31", | ||
"karma-browserify": "^3.0.2", | ||
"karma-chai": "^0.1.0", | ||
"karma-cli": "0.0.4", | ||
"karma-mocha": "^0.1.10", | ||
"karma-phantomjs-launcher": "^0.1.4", | ||
"mocha": "^2.1.0" | ||
} | ||
} |
# min-dom | ||
[![Build Status](https://travis-ci.org/bpmn-io/min-dom.svg?branch=master)](https://travis-ci.org/bpmn-io/min-dom) | ||
A minimal dom utility toolbelt. Library friendly and based on utilities provided by [component](https://github.com/component). | ||
@@ -11,3 +13,6 @@ | ||
``` | ||
$ browserify index.js --standalone=dom | bundle-collapser | uglifyjs | gzip > min-dom.min.js.gz | ||
$ browserify index.js --standalone=dom | \ | ||
bundle-collapser | \ | ||
uglifyjs | \ | ||
gzip > min-dom.min.js.gz | ||
$ du min-dom.min.js.gz | ||
@@ -17,8 +22,21 @@ 4 min-dom.min.js.gz | ||
Bigger when exposing the [component/dom](https://github.com/component/dom) api. | ||
``` | ||
$ browserify dom/index.js --standalone=dom | bundle-collapser | uglifyjs | gzip > dom.min.js.gz | ||
$ du dom.min.js.gz | ||
12 dom.min.js.gz | ||
``` | ||
## Features | ||
The library exposes the following tiny dom helpers: | ||
* `attr` - get and set node attributes | ||
* `classes` - class name helper; [component-classes](https://github.com/component/classes) | ||
* `clear` - remove children from a node | ||
* `closest` - get the closest parent by selector; [component-closest](https://github.com/component/closest) | ||
* `delegate` - event deletation support; [component-delegate](https://github.com/component/delegate) | ||
* `domify` - html to elements; [domify](https://github.com/component/domify) | ||
* `event` - event binding; [component-event](https://github.com/component/event) | ||
* `matches` - selector match check; [component-matches-selector](https://github.com/component/matches-selector) | ||
* `query` - selector query support; [component-query](https://github.com/component/query) | ||
* `remove` - detach a node from its parent | ||
## License | ||
MIT |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
7
2
40
1
9086
8
25
165
- Removedcomponent-css@^0.0.6
- Removedforeach@^2.0.5
- Removedis-array@^1.0.1
- Removedcomponent-css@0.0.6(transitive)
- Removedcomponent-each@0.2.6(transitive)
- Removedcomponent-props@1.1.1(transitive)
- Removedcomponent-type@1.0.0(transitive)
- Removeddebug@4.3.7(transitive)
- Removedforeach@2.0.6(transitive)
- Removedis-array@1.0.1(transitive)
- Removedms@2.1.3(transitive)
- Removedto-camel-case@0.2.1(transitive)
- Removedto-function@2.0.6(transitive)
- Removedto-no-case@0.1.1(transitive)
- Removedto-space-case@0.1.2(transitive)
- Removedwithin-document@0.0.1(transitive)