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

ng2-pipes

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-pipes - npm Package Compare versions

Comparing version 0.3.7 to 0.3.8

2

bin/app/pipes/string/strip-tags.d.ts
import { PipeTransform } from '@angular/core';
export declare class StripTagsPipe implements PipeTransform {
transform(text: string, [allowedTags]?: any[]): string;
transform(text: string, ...allowedTags: any[]): string;
}

@@ -15,4 +15,7 @@ "use strict";

}
StripTagsPipe.prototype.transform = function (text, _a) {
var _b = (_a === void 0 ? [] : _a)[0], allowedTags = _b === void 0 ? [] : _b;
StripTagsPipe.prototype.transform = function (text) {
var allowedTags = [];
for (var _i = 1; _i < arguments.length; _i++) {
allowedTags[_i - 1] = arguments[_i];
}
return allowedTags.length > 0

@@ -19,0 +22,0 @@ ? text.replace(new RegExp("<(?!/?(" + allowedTags.join('|') + ")s*/?)[^>]+>", 'g'), '')

{
"name": "ng2-pipes",
"version": "0.3.7",
"version": "0.3.8",
"author": "Dan Revah",

@@ -16,4 +16,14 @@ "description": "Useful angular2 pipes",

"keywords": [
"ng2", "ng", "angular", "angular2", "angularjs", "pipes", "filters", "library",
"angular2 pipes", "ng2 pipes", "angular filters", "angular pipes"
"ng2",
"ng",
"angular",
"angular2",
"angularjs",
"pipes",
"filters",
"library",
"angular2 pipes",
"ng2 pipes",
"angular filters",
"angular pipes"
],

@@ -20,0 +30,0 @@ "repository": {

@@ -7,7 +7,7 @@ import {PipeTransform, Pipe, Injectable} from '@angular/core';

transform(text:string, ...allowedTags: any[]):string {
transform(text: string, ...allowedTags: any[]): string {
return allowedTags.length > 0
? text.replace(new RegExp(`<(?!\/?(${allowedTags.join('|')})\s*\/?)[^>]+>`, 'g'), '')
: text.replace(/<(?:.|\s)*?>/g, '');
? text.replace(new RegExp(`<(?!\/?(${allowedTags.join('|')})\s*\/?)[^>]+>`, 'g'), '')
: text.replace(/<(?:.|\s)*?>/g, '');
}
}

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