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

angular-svg-icon

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-svg-icon - npm Package Compare versions

Comparing version 4.1.1 to 4.2.0

9

angular-dual-listbox.bundle.js

@@ -48,2 +48,7 @@ (function (global, factory) {

};
SvgIconRegistryService.prototype.unloadSvg = function (url) {
if (this.iconsByUrl.has(url)) {
this.iconsByUrl.delete(url);
}
};
return SvgIconRegistryService;

@@ -78,3 +83,5 @@ }());

SvgIconComponent.prototype.ngOnDestroy = function () {
this.icnSub.unsubscribe();
if (this.icnSub) {
this.icnSub.unsubscribe();
}
};

@@ -81,0 +88,0 @@ SvgIconComponent.prototype.setSvg = function (svg) {

2

package.json
{
"name": "angular-svg-icon",
"description": "Angular 2+ component for inlining SVGs allowing them to be easily styled with CSS.",
"version": "4.1.1",
"version": "4.2.0",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -14,2 +14,3 @@ import { Http } from '@angular/http';

loadSvg(url: string): Observable<SVGElement>;
unloadSvg(url: string): void;
}

@@ -41,2 +41,7 @@ import { Injectable } from '@angular/core';

};
SvgIconRegistryService.prototype.unloadSvg = function (url) {
if (this.iconsByUrl.has(url)) {
this.iconsByUrl.delete(url);
}
};
return SvgIconRegistryService;

@@ -43,0 +48,0 @@ }());

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

[{"__symbolic":"module","version":3,"metadata":{"SvgIconRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"loadSvg":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SvgIconRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"loadSvg":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"SvgIconRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"loadSvg":[{"__symbolic":"method"}],"unloadSvg":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SvgIconRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"loadSvg":[{"__symbolic":"method"}],"unloadSvg":[{"__symbolic":"method"}]}}}}]

@@ -17,3 +17,5 @@ import { Component, ElementRef, Input, Optional, Renderer, SkipSelf } from '@angular/core';

SvgIconComponent.prototype.ngOnDestroy = function () {
this.icnSub.unsubscribe();
if (this.icnSub) {
this.icnSub.unsubscribe();
}
};

@@ -20,0 +22,0 @@ SvgIconComponent.prototype.setSvg = function (svg) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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