New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@annotorious/core

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@annotorious/core - npm Package Compare versions

Comparing version 3.0.0-pre-alpha-44 to 3.0.0-pre-alpha-45

2

package.json
{
"name": "@annotorious/core",
"version": "3.0.0-pre-alpha-44",
"version": "3.0.0-pre-alpha-45",
"description": "Experimental rewrite of Annotorious",

@@ -5,0 +5,0 @@ "type": "module",

@@ -45,4 +45,4 @@ import type { Annotation } from './Annotation';

viewport?: ViewportState;
viewport: ViewportState;
}

@@ -7,14 +7,21 @@ import { writable } from 'svelte/store';

const { subscribe, set } = writable<string[]>([]);
let hasSubscribers = false;
let inViewport: string[] = [];
const { subscribe, set } = writable<string[]>([], () => {
// Function is called when no. of subscribers goes from 0 to 1
console.log('subsc');
hasSubscribers = true;
subscribe(updated => inViewport = updated);
return () => {
// Called when no. of subscribers goes to 0
hasSubscribers = false;
}
});
return {
get inViewport() { return [...inViewport] },
get hasSubscribers() { return hasSubscribers },
subscribe,
set
set
};
}
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