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

@frontegg/injector

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/injector - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

4

package.json
{
"name": "@frontegg/injector",
"version": "0.0.10",
"version": "0.0.11",
"main": "dist/cjs/index.js",

@@ -19,3 +19,3 @@ "types": "dist/esm/index.d.ts",

},
"gitHead": "b2173dfadd41bd96151c1dc8c169e5c44075d3e8"
"gitHead": "744db34fb18fbc46b7d0672188a4d3d537b8879b"
}

@@ -14,6 +14,10 @@ import Logger from './logger';

export async function getVersionMetadata(logger: Logger, cdn: string, version: string): Promise<VersionMetadata> {
logger.info(`Retrieving version from cdn: ${version}`);
const res = await fetch(`${cdn}/${version}`, { cache: 'no-cache' });
export async function getVersionMetadata(logger: Logger, cdn: string, _version: string): Promise<VersionMetadata> {
logger.info(`Retrieving version from cdn: ${_version}`);
let version = _version;
if (version !== 'latest' && version !== 'stable') {
version = `${_version}/config`;
}
const res = await fetch(`${cdn}/${version}.json`, { cache: 'no-cache' });
return res.json();
}

@@ -125,2 +125,3 @@ import Logger from './logger';

}
resolve()
});

@@ -146,2 +147,3 @@ }

this.shadowEl.insertBefore(url, this.rootEl);
resolve();
}

@@ -148,0 +150,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