Comparing version 2.1.3 to 3.0.0-alpha.2
{ | ||
"name": "dom7", | ||
"version": "2.1.3", | ||
"version": "3.0.0-alpha.2", | ||
"description": "Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API", | ||
"main": "dist/dom7.js", | ||
"types": "dist/dom7.d.ts", | ||
"jsnext:main": "dist/dom7.module.js", | ||
"module": "dist/dom7.module.js", | ||
"scripts": { | ||
"build-dev": "cross-env NODE_ENV=development gulp build", | ||
"build-prod": "cross-env NODE_ENV=production gulp build", | ||
"dev": "cross-env NODE_ENV=development gulp build && cross-env NODE_ENV=development gulp demo && gulp server", | ||
"prod": "cross-env NODE_ENV=production gulp demo && cross-env NODE_ENV=production gulp server", | ||
"test": "npm run build-dev" | ||
}, | ||
"sideEffects": false, | ||
"main": "dom7.cjs.js", | ||
"types": "dom7.d.ts", | ||
"jsnext:main": "dom7.esm.js", | ||
"module": "dom7.esm.js", | ||
"repository": { | ||
@@ -32,23 +26,6 @@ "type": "git", | ||
}, | ||
"homepage": "http://framework7.io/docs/dom.html", | ||
"devDependencies": { | ||
"cross-env": "^5.2.0", | ||
"eslint": "^5.13.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.16.0", | ||
"gulp": "^4.0.0", | ||
"gulp-connect": "^5.7.0", | ||
"gulp-header": "^2.0.7", | ||
"gulp-modify-file": "^1.0.1", | ||
"gulp-open": "^3.0.1", | ||
"gulp-rename": "^1.4.0", | ||
"gulp-sourcemaps": "^2.6.4", | ||
"gulp-uglify": "^3.0.1", | ||
"rollup": "^1.1.2", | ||
"rollup-plugin-buble": "^0.19.6", | ||
"rollup-plugin-node-resolve": "^4.0.0" | ||
}, | ||
"homepage": "https://framework7.io/docs/dom7.html", | ||
"dependencies": { | ||
"ssr-window": "^1.0.1" | ||
"ssr-window": "^3.0.0-alpha.1" | ||
} | ||
} | ||
} |
@@ -1,7 +0,4 @@ | ||
<a href="https://www.patreon.com/vladimirkharlampidi"><img src="https://cdn.framework7.io/i/support-badge.png" height="20"></a> | ||
[![devDependency Status](https://david-dm.org/nolimits4web/dom7/dev-status.svg)](https://david-dm.org/nolimits4web/dom7#info=devDependencies) | ||
# Dom7 | ||
## Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API | ||
### Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API | ||
@@ -12,30 +9,32 @@ Dom7 - is the default DOM manipulation library built-in [Framework7](https://framework7.io). It utilizes most edge and high-performance methods for DOM manipulation. You don’t need to learn something new, its usage is very simple because it has the same syntax as well known jQuery library with support of the most popular and widely used methods and jQuery-like chaining. | ||
## Build | ||
## Installation | ||
You will need Node.js installed on your system. | ||
Dom7 can be installed with NPM: | ||
First, install all required dependencies | ||
``` | ||
$ npm install | ||
npm install dom7 --save | ||
``` | ||
To build development version: | ||
``` | ||
$ npm run build-dev | ||
``` | ||
## Usage | ||
The resulting files are: | ||
```js | ||
// import Dom7 and methods you need | ||
import { $, addClass, removeClass, toggleClass, on } from 'dom7'; | ||
1. buid/dom7.js | ||
2. buid/dom7.module.js | ||
// install methods | ||
$.fn.addClass = addClass; | ||
$.fn.removeClass = removeClass; | ||
$.fn.toggleClass = toggleClass; | ||
$.fn.on = on; | ||
To build production (minified) version: | ||
// use | ||
$('p').addClass('custom-paragraph'); | ||
$('p').on('click', function() { | ||
$(this).toggleClass('custom-paragraph'); | ||
}); | ||
``` | ||
$ npm run build-prod | ||
``` | ||
The resulting files are: | ||
## Documentation | ||
1. dist/dom7.js | ||
2. dist/dom7.min.js | ||
3. dist/dom7.module.js | ||
See [full documenation here](https://framework7.io/docs/dom7.html) |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
0
202971
9
4624
1
40
1
+ Addedssr-window@3.0.0(transitive)
- Removedssr-window@1.0.1(transitive)
Updatedssr-window@^3.0.0-alpha.1