Socket
Socket
Sign inDemoInstall

development-assert-ts

Package Overview
Dependencies
307
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

4

lib/index.d.ts

@@ -47,6 +47,6 @@ /// <reference types="gulp" />

*
* @type {string}
* @type {boolean}
* @memberOf ITsTaskOption
*/
sourceMaps?: string;
sourceMaps?: string | boolean;
/**

@@ -53,0 +53,0 @@ * compile .tds define file.

@@ -71,5 +71,3 @@ "use strict";

var option = ctx.option;
var pipes = [
function (ctx) { return sourcemaps.write(option.sourceMaps || './sourcemaps'); }
];
var pipes = [];
if (option.uglify) {

@@ -82,2 +80,6 @@ pipes.splice(0, 0, {

pipes = pipes.concat(_super.prototype.pipes.call(this, ctx, dist, gulp));
if (option.sourceMaps !== false) {
var mappath_1 = (_.isBoolean(option.sourceMaps) || !option.sourceMaps) ? './sourcemaps' : option.sourceMaps;
pipes.push(function (ctx) { return sourcemaps.write(mappath_1); });
}
return pipes;

@@ -84,0 +86,0 @@ };

{
"name": "development-assert-ts",
"version": "2.0.0",
"version": "2.0.1",
"description": "typescript assert tasks for development.",

@@ -35,3 +35,3 @@ "main": "./lib/index.js",

"@types/lodash": "^4.14.37",
"development-core": "^2.0.0",
"development-core": "^2.0.2",
"gulp-cached": "^1.1.1",

@@ -38,0 +38,0 @@ "gulp-sourcemaps": "^2.6.0",

@@ -62,6 +62,6 @@ import * as path from 'path';

*
* @type {string}
* @type {boolean}
* @memberOf ITsTaskOption
*/
sourceMaps?: string;
sourceMaps?: string | boolean;

@@ -121,5 +121,3 @@ /**

let option = <ITsTaskOption>ctx.option;
let pipes: Pipe[] = [
(ctx) => sourcemaps.write(option.sourceMaps || './sourcemaps')
];
let pipes: Pipe[] = [];

@@ -133,2 +131,6 @@ if (option.uglify) {

pipes = pipes.concat(super.pipes(ctx, dist, gulp));
if (option.sourceMaps !== false) {
let mappath = (_.isBoolean(option.sourceMaps) || !option.sourceMaps) ? './sourcemaps' : option.sourceMaps;
pipes.push((ctx) => sourcemaps.write(mappath));
}
return pipes;

@@ -135,0 +137,0 @@ }

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc