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

typescript-services-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-services-api - npm Package Compare versions

Comparing version 1.1.0-1.3 to 1.3.0

34

gulpfile.js
'use strict';
var fs = require('fs');
var gulp = require('gulp');

@@ -11,7 +10,7 @@ var del = require('del');

src: 'index.js',
test: 'test/**/*_test.ts',
test: 'index_test.ts',
testDest: '.tmp/',
packageJson: 'package.json',
testPackageDir: 'node_modules/typescript-services-api',
typescriptFiles: 'test/**/*.ts'
typescriptFiles: ['index_test.ts', 'index.d.ts']
};

@@ -26,3 +25,3 @@

var mochaOptions = {
reporter: 'spec'
reporter: 'nyan'
};

@@ -68,7 +67,6 @@

function test(watching) {
return gulp.src(paths.typescriptFiles)
return gulp.src(paths.test)
.pipe(plugins.plumber({errorHandler: function() {
if (!watching) { process.exit(1); }
}}))
.pipe(plugins.changed(paths.testDest, {extension: '.js', hasChanged: hasChangedForTest}))
.pipe(plugins.sourcemaps.init())

@@ -81,25 +79,1 @@ .pipe(plugins.typescript(tsProject)).js

}
function hasChangedForTest(stream, callback, sourceFile, destPath) {
if (!fs.existsSync(destPath)) {
stream.push(sourceFile);
return callback();
}
var destStat = fs.statSync(destPath);
if (sourceFile.stat.mtime > destStat.mtime) {
stream.push(sourceFile);
} else if (/_test.ts$/.test(sourceFile.path)) {
var testTargetPath = sourceFile.path
.replace(/_test.ts$/, '.ts')
.replace(process.cwd() + '/test', process.cwd());
var testTargetStat = fs.statSync(testTargetPath);
if (testTargetStat.mtime > destStat.mtime) {
stream.push(sourceFile);
}
}
callback();
}

6

package.json
{
"name": "typescript-services-api",
"description": "A TypeScript services as commonJS module.",
"version": "1.1.0-1.3",
"version": "1.3.0",
"homepage": "https://github.com/shiwano/typescript-services-api",

@@ -34,3 +34,2 @@ "author": {

"gulp": "^3.8.7",
"gulp-changed": "^1.0.0",
"gulp-espower": "^0.9.0",

@@ -46,3 +45,2 @@ "gulp-jshint": "^1.8.4",

"power-assert": "^0.9.0",
"sinon": "^1.10.3",
"source-map-support": "^0.2.7"

@@ -54,3 +52,3 @@ },

"dependencies": {
"typescript": "1.1.0-1"
"typescript": "1.3.0"
},

@@ -57,0 +55,0 @@ "typescript": {

@@ -10,4 +10,4 @@ # typescript-services-api [![Build Status](https://secure.travis-ci.org/shiwano/typescript-services-api.png?branch=master)](http://travis-ci.org/shiwano/typescript-services-api)

## Compiler Version
1.1.0-1
## TypeScript Version
1.3.0

@@ -18,2 +18,3 @@ ## Contributing

## Release History
* 2014-11-14   v1.3.0       Update to TypeScript v1.3.0.
* 2014-11-03   v1.1.0-1.3   Fix index.d.ts.

@@ -20,0 +21,0 @@ * 2014-11-03   v1.1.0-1.2   Divide index.d.ts.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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