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

angular2-pipes

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-pipes - npm Package Compare versions

Comparing version 0.4.15 to 0.4.16

src/app/pipes/helpers/helpers.d.ts

4

gulpfile.js

@@ -9,4 +9,4 @@ const gulp = require('gulp');

gulp.task('clean', () => {
const tsResult = gulp.src(['./src/**/*.d.ts', './src/**/*.js', './src/**/*.js', './src/**/*.js.map']);
return tsResult.pipe(clean());
return gulp.src(['./src/**/*.d.ts', './src/**/*.js', './src/**/*.js', './src/**/*.js.map'])
.pipe(clean());
});

@@ -13,0 +13,0 @@

{
"name": "angular2-pipes",
"version": "0.4.15",
"version": "0.4.16",
"author": "Dan Revah",

@@ -5,0 +5,0 @@ "description": "Useful angular2 pipes",

@@ -92,3 +92,5 @@ # Angular2 Pipes

```typescript
```typescript
import {ReversePipe} from 'ng2-pipes/src/app/pipes/array/reverse';
@Component({

@@ -95,0 +97,0 @@ // ..

import {PipeTransform, Pipe, Injectable} from '@angular/core';
import {extractProperty} from '../utils/utils';

@@ -4,0 +3,0 @@ @Injectable()

@@ -12,3 +12,3 @@ "use strict";

var core_1 = require('@angular/core');
var utils_1 = require('../utils/utils');
var helpers_1 = require('../helpers');
var PluckPipe = (function () {

@@ -19,3 +19,3 @@ function PluckPipe() {

return Array.isArray(arr)
? arr.map(function (e) { return utils_1.extractProperty(e, map); })
? arr.map(function (e) { return helpers_1.extractProperty(e, map); })
: arr;

@@ -22,0 +22,0 @@ };

import {PipeTransform, Pipe, Injectable} from '@angular/core';
import {extractProperty} from '../utils/utils';
import {extractProperty} from '../helpers';

@@ -4,0 +4,0 @@ @Injectable()

import {PipeTransform, Pipe, Injectable} from '@angular/core';
import {extractProperty} from '../utils/utils';

@@ -4,0 +3,0 @@ @Injectable()

import {PipeTransform, Pipe, Injectable} from '@angular/core';
import {extractProperty} from '../utils/utils';

@@ -4,0 +3,0 @@ @Injectable()

@@ -12,3 +12,3 @@ "use strict";

var core_1 = require('@angular/core');
var utils_1 = require("../utils/utils");
var helpers_1 = require('../helpers');
var BytesPipe = (function () {

@@ -18,3 +18,3 @@ function BytesPipe() {

BytesPipe.prototype.transform = function (value) {
if (!utils_1.isNumberFinite(value)) {
if (!helpers_1.isNumberFinite(value)) {
return NaN;

@@ -21,0 +21,0 @@ }

import {PipeTransform, Pipe, Injectable} from '@angular/core';
import {isNumberFinite} from "../utils/utils";
import {isNumberFinite} from '../helpers';

@@ -4,0 +4,0 @@ @Injectable()

@@ -12,3 +12,3 @@ "use strict";

var core_1 = require('@angular/core');
var utils_1 = require('../utils/utils');
var helpers_1 = require('../helpers');
var DegreesPipe = (function () {

@@ -18,3 +18,3 @@ function DegreesPipe() {

DegreesPipe.prototype.transform = function (radians) {
if (!utils_1.isNumberFinite(radians)) {
if (!helpers_1.isNumberFinite(radians)) {
return NaN;

@@ -21,0 +21,0 @@ }

import {PipeTransform, Pipe, Injectable} from '@angular/core';
import {isNumberFinite} from '../utils/utils';
import {isNumberFinite} from '../helpers';

@@ -4,0 +4,0 @@ @Injectable()

@@ -12,3 +12,3 @@ "use strict";

var core_1 = require('@angular/core');
var utils_1 = require('../utils/utils');
var helpers_1 = require('../helpers');
var RadiansPipe = (function () {

@@ -18,3 +18,3 @@ function RadiansPipe() {

RadiansPipe.prototype.transform = function (degrees) {
if (!utils_1.isNumberFinite(degrees)) {
if (!helpers_1.isNumberFinite(degrees)) {
return NaN;

@@ -21,0 +21,0 @@ }

import {PipeTransform, Pipe, Injectable} from '@angular/core';
import {isNumberFinite} from '../utils/utils';
import {isNumberFinite} from '../helpers';

@@ -4,0 +4,0 @@ @Injectable()

@@ -16,3 +16,3 @@ "use strict";

// Then we find all the tests.
var context = require.context('./', true, /\.spec\.ts/);
var context = require.context('../test/', true, /\.spec\.ts/);
// And load the modules.

@@ -19,0 +19,0 @@ context.keys().map(context);

@@ -28,3 +28,3 @@ import './polyfills.ts';

// Then we find all the tests.
let context = require.context('./', true, /\.spec\.ts/);
let context = require.context('../test/', true, /\.spec\.ts/);
// And load the modules.

@@ -31,0 +31,0 @@ context.keys().map(context);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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