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

@heap-code/singleton

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heap-code/singleton - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

dist/bundles/singleton.umd.js

20

package.json

@@ -6,4 +6,10 @@ {

},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"description": "A simple singleton implementation in Typescript",
"devDependencies": {
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@compodoc/compodoc": "^1.1.21",

@@ -14,4 +20,6 @@ "@cspell/eslint-plugin": "^6.31.1",

"@types/jest": "^29.5.2",
"@types/webpack-node-externals": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.42.0",

@@ -38,5 +46,10 @@ "eslint-config-prettier": "^8.8.0",

"release-it": "^15.11.0",
"terser-webpack-plugin": "^5.3.9",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
"ts-node": "^10.9.1",
"typescript": "^5.1.3"
"typescript": "^5.1.3",
"webpack-cli": "^5.1.4",
"webpack-node-externals": "^3.0.0",
"wepback": "^1.0.0"
},

@@ -62,3 +75,3 @@ "es2015": "./dist/esm2015/index.js",

"build": "npm run build:cjs",
"build:all": "npm run build:cjs && npm run build:es2015 && npm run build:esm5 && npm run build:types",
"build:all": "npm run build:cjs && npm run build:es2015 && npm run build:esm5 && npm run build:types && npm run build:umd",
"build:cjs": "npx tsc -p tools/tsconfigs/tsconfig.cjs.json",

@@ -68,2 +81,3 @@ "build:es2015": "npx tsc -p tools/tsconfigs/tsconfig.esm2015.json",

"build:types": "npx tsc -p tools/tsconfigs/tsconfig.types.json",
"build:umd": "npx webpack",
"compodoc": "npm run compodoc:build -- -r 3080 -s",

@@ -79,3 +93,3 @@ "compodoc:build": "npx @compodoc/compodoc -p ./tsconfig.build.json -d ./dist/compodoc",

"types": "./dist/types/index.js",
"version": "1.0.0"
"version": "1.1.0"
}

@@ -18,2 +18,28 @@ # Singleton

### CDN
Thanks to [_jsdelivr_](https://www.jsdelivr.com/),
this package can easily be used in browsers like this:
```html
<script
src="https://cdn.jsdelivr.net/npm/@heap-code/singleton/dist/bundles/singleton.umd.js"
type="application/javascript"
></script>
```
> **Note:**
> It is recommended to use a minified and versioned bundle.
>
> For example:
>
> ```html
> <script
> src="https://cdn.jsdelivr.net/npm/@heap-code/singleton@1.1.0/dist/bundles/singleton.umd.min.js"
> type="application/javascript"
> ></script>
> ```
More at this [_jsdelivr_ package page](https://www.jsdelivr.com/package/npm/@heap-code/singleton).
## Usage

@@ -20,0 +46,0 @@

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