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

@iconify/api

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iconify/api - npm Package Compare versions

Comparing version 3.1.0-beta.4 to 3.1.0-beta.5

6

lib/config/importers/full-local-package.js

@@ -0,1 +1,2 @@

import { createRequire } from 'node:module';
import { dirname } from 'node:path';

@@ -8,4 +9,7 @@ import { createIconSetsPackageImporter } from '../../importers/full/json.js';

export function createPackageIconSetImporter(packageName = '@iconify/json') {
const dir = dirname(import.meta.resolve(`${packageName}/package.json`));
// const dir = dirname(import.meta.resolve(`${packageName}/package.json`));
const req = createRequire(import.meta.url);
const filename = req.resolve(`${packageName}/package.json`);
const dir = dirname(filename);
return createIconSetsPackageImporter(new DirectoryDownloader(dir), {});
}

6

lib/init.js

@@ -17,6 +17,6 @@ import { getImporters } from './config/icon-sets.js';

importers = await getImporters();
for (let i = 0; i < importers.length; i++) {
await importers[i].init();
}
}
for (let i = 0; i < importers.length; i++) {
await importers[i].init();
}
// Update

@@ -23,0 +23,0 @@ setImporters(importers);

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "3.1.0-beta.4",
"version": "3.1.0-beta.5",
"publishConfig": {

@@ -9,0 +9,0 @@ "access": "public",

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