Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shortid-dist

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shortid-dist - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

scripts/_deps.js

7

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc