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

@locator/shared

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locator/shared - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

1

dist/index.d.ts

@@ -27,2 +27,3 @@ export * from "./types";

}): string;
export declare function detectSvelte(): boolean;
export declare type SourceLocation = {

@@ -29,0 +30,0 @@ start: {

@@ -39,1 +39,10 @@ export * from "./types";

}
export function detectSvelte() {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
if (window.__SVELTE_HMR) {
// __SVELTE_HMR is so far the only way to detect svelte I found
return true;
}
return false;
}

4

package.json
{
"name": "@locator/shared",
"version": "0.1.2",
"version": "0.1.3",
"main": "./dist/index.js",

@@ -18,3 +18,3 @@ "license": "MIT",

},
"gitHead": "2168e6ca3246548a392148a4c113c4757f265177",
"gitHead": "496da1f7c2e458861650c667fdd4c2296af9a0dc",
"files": [

@@ -21,0 +21,0 @@ "dist",

@@ -54,2 +54,11 @@ export * from "./types";

export function detectSvelte() {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
if (window.__SVELTE_HMR) {
// __SVELTE_HMR is so far the only way to detect svelte I found
return true;
}
return false;
}
export type SourceLocation = {

@@ -56,0 +65,0 @@ start: {

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