shortid-dist
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "shortid-dist", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "CDN friendly build of shortid", | ||
@@ -8,5 +8,6 @@ "main": "index.js", | ||
"build": "webpack -d && webpack -p", | ||
"clean": "del dist index.html package shortid-dist-*.tgz", | ||
"clean": "del dist package shortid-dist-*.tgz", | ||
"pack": "npm pack . && tar -xzf shortid-dist-*.tgz && echo && find package -type f", | ||
"repack": "npm run clean && npm run build && npm run pack", | ||
"links": "node scripts/links.js", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -33,4 +34,4 @@ }, | ||
"del-cli": "^1.1.0", | ||
"html-webpack-plugin": "^3.0.6", | ||
"license-webpack-plugin": "^1.3.0", | ||
"semver": "^5.5.0", | ||
"webpack": "^4.1.1", | ||
@@ -37,0 +38,0 @@ "webpack-cli": "^2.0.11" |
@@ -12,3 +12,3 @@ # shortid-dist | ||
<script src="https://unpkg.com/shortid-dist@1.0.2/dist/shortid-2.2.8.min.js"></script> | ||
<script src="https://unpkg.com/shortid-dist@1.0.3/dist/shortid-2.2.8.min.js"></script> | ||
@@ -19,3 +19,3 @@ 3 KB | ||
<script src="https://unpkg.com/shortid-dist@1.0.2/dist/shortid-2.2.8.js"></script> | ||
<script src="https://unpkg.com/shortid-dist@1.0.3/dist/shortid-2.2.8.js"></script> | ||
@@ -47,3 +47,3 @@ 31 KB | ||
Bundle shortid with webpack (minified and unminified) and generate **index.html** in the project root: | ||
Bundle shortid with webpack (minified and unminified): | ||
@@ -74,13 +74,24 @@ npm run build | ||
Run `npm version` with one of the following arguments: | ||
The `npm version` and `npm run links` commands both accept a semver argument: | ||
`<newversion>|major|minor|patch` (where `<newversion>` is a standard version number, ex. 1.0.0). | ||
See [npm-version](https://docs.npmjs.com/cli/version) for more information. | ||
Examine what will be included in the npm bundle: | ||
npm run pack | ||
Update the links in the **README.md** and **index.html** files (and commit the changes) _before_ running `npm version`: | ||
npm run links -- patch | ||
git add README.md index.html | ||
git commit -m "Updated links" | ||
Bump the version number in **package.json** and create a git tag: | ||
npm version patch | ||
npm publish | ||
git push --tags | ||
To test what will be included in the npm bundle: | ||
Publish a new version: | ||
npm run pack | ||
npm publish | ||
git push origin master --tags | ||
@@ -87,0 +98,0 @@ ## Author |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
43345
9
319
108
1