Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

favicon-component

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

favicon-component - npm Package Compare versions

Comparing version
0.0.4
to
0.0.5
+21
-3
build/build.js

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

/**

@@ -62,6 +61,10 @@ * Require the given path.

, reg = path + '.js'
, index = path + '/index.js';
, regJSON = path + '.json'
, index = path + '/index.js'
, indexJSON = path + '/index.json';
return require.modules[reg] && reg
|| require.modules[regJSON] && regJSON
|| require.modules[index] && index
|| require.modules[indexJSON] && indexJSON
|| require.modules[orig] && orig

@@ -154,3 +157,12 @@ || null;

fn.resolve = function(path){
if ('.' != path[0]) path = './deps/' + path;
// resolve deps by returning
// the dep in the nearest "deps"
// directory
if ('.' != path[0]) {
var segs = parent.split('/');
var i = segs.lastIndexOf('deps') + 1;
if (!i) i = 0;
path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
return path;
}
return require.normalize(p, path);

@@ -189,2 +201,8 @@ };

/**
* Expose `current()`.
*/
exports.current = current;
/**
* Set the favicon to the given data uri `str`.

@@ -191,0 +209,0 @@ *

+1
-1
{
"name": "favicon",
"description": "Dynamic favicon replacement component",
"version": "0.0.4",
"version": "0.0.5",
"keywords": ["favicon", "image", "ui", "canvas"],

@@ -6,0 +6,0 @@ "dependencies": {},

@@ -21,2 +21,8 @@

/**
* Expose `current()`.
*/
exports.current = current;
/**
* Set the favicon to the given data uri `str`.

@@ -23,0 +29,0 @@ *

{
"name": "favicon-component",
"description": "Dynamic favicon replacement component",
"version": "0.0.4",
"version": "0.0.5",
"keywords": ["favicon", "image", "ui", "canvas"],

@@ -6,0 +6,0 @@ "dependencies": {},

@@ -45,4 +45,8 @@

### icon.current()
Return the current favicon link when present.
## License
MIT