Socket
Socket
Sign inDemoInstall

suub

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

suub - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

19

dist/mod.js

@@ -237,5 +237,9 @@ "use strict";

isSubscribed = false;
const index = subscriptions.findIndex((i) => (channel === DEFAULT_CHANNEL || i.channel === channel) && i.callback === callback);
const index = subscriptions.findIndex(
(i) => (channel === DEFAULT_CHANNEL || i.channel === channel) && i.callback === callback
);
if (index === -1) {
console.warn(`Subscribe (isSubscribed === true) callback is not in the subscriptions list. Please report a bug.`);
console.warn(
`Subscribe (isSubscribed === true) callback is not in the subscriptions list. Please report a bug.`
);
return;

@@ -269,5 +273,6 @@ }

var SuubErreur = {
SubscriptionDestroyed: import_erreur.Erreur.declare("SubscriptionDestroyed", () => `The subscription has been destroyed`).withTransform(
() => null
),
SubscriptionDestroyed: import_erreur.Erreur.declare(
"SubscriptionDestroyed",
() => `The subscription has been destroyed`
).withTransform(() => null),
MaxSubscriptionCountReached: import_erreur.Erreur.declare(

@@ -285,3 +290,5 @@ "MaxSubscriptionCountReached",

).withTransform((limit) => ({ limit })),
InvalidCallback: import_erreur.Erreur.declare("InvalidCallback", () => `The callback is not a function`).withTransform(() => null)
InvalidCallback: import_erreur.Erreur.declare("InvalidCallback", () => `The callback is not a function`).withTransform(
() => null
)
};

@@ -288,0 +295,0 @@ // Annotate the CommonJS export names for ESM import in node:

{
"name": "suub",
"version": "5.1.0",
"version": "5.1.1",
"description": "A simple pub/sub written in Typescript",

@@ -36,27 +36,33 @@ "keywords": [

"scripts": {
"build": "rimraf dist deno_dist && tsup --format cjs,esm src/mod.ts --dts src/mod.ts && denoify",
"build": "rimraf dist && tsup --format cjs,esm src/mod.ts --dts src/mod.ts",
"build:deno": "rimraf deno_dist && denoify",
"lint": "prettier . --check && eslint . && tsc --noEmit",
"lint:fix": "prettier . --write . && eslint . --fix",
"release": "yarn build && np",
"test": "yarn lint && jest --coverage",
"test:run": "jest",
"test:watch": "jest --watch",
"typecheck": "tsc --noEmit"
"release": "release-it",
"test": "pnpm run lint && vitest run --coverage",
"test:run": "vitest run",
"test:watch": "vitest --watch",
"typecheck": "tsc",
"typecheck:watch": "tsc --watch"
},
"dependencies": {
"erreur": "^2.1.0"
},
"devDependencies": {
"@types/jest": "^29.5.1",
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"denoify": "^1.5.3",
"eslint": "^8.40.0",
"@types/node": "^20.3.0",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@vitest/coverage-v8": "^0.32.0",
"denoify": "^1.5.8",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"jest": "^29.5.0",
"np": "^7.7.0",
"prettier": "^2.8.8",
"rimraf": "^5.0.0",
"ts-jest": "^29.1.0",
"tslib": "^2.5.0",
"release-it": "^15.11.0",
"rimraf": "^5.0.1",
"tslib": "^2.5.3",
"tsup": "^6.7.0",
"typescript": "^5.0.4"
"typescript": "^5.1.3",
"vitest": "^0.32.0"
},
"packageManager": "pnpm@8.6.1",
"publishConfig": {

@@ -66,5 +72,18 @@ "access": "public",

},
"dependencies": {
"erreur": "^2.1.0"
"release-it": {
"hooks": {
"before:init": [
"pnpm test",
"pnpm run build:deno"
]
},
"npm": {
"publish": true
},
"github": {
"release": true,
"web": true,
"autoGenerate": true
}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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