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

typescript-angular-utilities

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-angular-utilities - npm Package Compare versions

Comparing version 2.0.6 to 2.1.0

gulpfile.js

12

.vscode/tasks.json
{
"version": "0.1.0",
"command": "gulp",
"command": "npm",
"isShellCommand": true,

@@ -11,3 +11,3 @@ "args": [

"taskName": "build",
"args": [],
"args": ["run"],
"isBuildCommand": true,

@@ -25,2 +25,10 @@ "isWatching": false,

"isTestCommand": true
},
{
"taskName": "update",
"args": ["run"]
},
{
"taskName": "clean",
"args": ["run"]
}

@@ -27,0 +35,0 @@ ],

4

karma.conf.js
// Karma default configuration
var karmaSettings = require('gulp-utilities').karma.standard;
module.exports = function (karma) {
require('./karma/default.config.js')(karma);
karmaSettings(karma, ['test-bootstrapper.js']);
};
// Karma debug configuration
var karmaSettings = require('gulp-utilities').karma.debug;
module.exports = function (karma) {
require('./karma/debug.config.js')(karma);
karmaSettings(karma, ['test-bootstrapper.js']);
};
// Karma full browser configuration
var karmaSettings = require('gulp-utilities').karma.full;
module.exports = function (karma) {
require('./karma/full.config.js')(karma);
karmaSettings(karma, ['test-bootstrapper.js']);
};
{
"name": "typescript-angular-utilities",
"version": "2.0.6",
"version": "2.1.0",
"description": "Typescript utility classes published as angular services",

@@ -21,3 +21,5 @@ "author": "Renovo Development Team",

"test.full": "karma start karma.full.conf.js",
"build": "tsc"
"build": "gulp clean && tsc && echo Build complete",
"build.library": "webpack & webpack --config webpack.min.config.js",
"clean": "gulp clean"
},

@@ -27,2 +29,5 @@ "devDependencies": {

"chai": "^2.1.2",
"del": "^2.0.2",
"gulp": "^3.9.0",
"gulp-utilities": "https://github.com/RenovoSolutions/Gulp-Typescript-Utilities/archive/1.0.1.tar.gz",
"karma": "^0.13.10",

@@ -44,2 +49,3 @@ "karma-browserify": "^4.1.2",

"sinon": "^1.17.0",
"source-map-loader": "^0.1.5",
"ts-loader": "^0.5.5",

@@ -52,6 +58,5 @@ "typescript": "^1.6.2",

"lodash": "^3.10.1",
"moment": "^2.10.6",
"q": "^1.4.1"
"moment": "^2.10.6"
},
"license": "MIT"
}

@@ -16,3 +16,3 @@ import * as array from './array/array.service';

import * as stringService from './string/string.service';
import * as test from './test/test';
import * as test from './test/test.module';
import * as time from './time/time.service';

@@ -19,0 +19,0 @@ import * as validation from './validation/validation.service';

@@ -33,3 +33,3 @@ 'use strict';

exports.string = stringService;
var test = require('./test/test');
var test = require('./test/test.module');
exports.test = test;

@@ -58,4 +58,5 @@ var time = require('./time/time.service');

time.moduleName,
test.moduleName,
validation.moduleName,
]);
//# sourceMappingURL=services.module.js.map

@@ -20,3 +20,3 @@ 'use strict';

import * as stringService from './string/string.service';
import * as test from './test/test';
import * as test from './test/test.module';
import * as time from './time/time.service';

@@ -65,3 +65,4 @@ import * as validation from './validation/validation.service';

time.moduleName,
test.moduleName,
validation.moduleName,
]);

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

export declare var moduleName: string;
export declare var serviceName: string;
export interface IMock {

@@ -9,2 +11,1 @@ service(service?: any): any;

}
export declare var mock: IMock;

@@ -5,5 +5,9 @@ 'use strict';

var _ = require('lodash');
var q = require('q');
var angular = require('angular');
exports.moduleName = 'rl.utilities.services.test.mock';
exports.serviceName = 'mockUtility';
var Mock = (function () {
function Mock() {
function Mock($q, $rootScope) {
this.$q = $q;
this.$rootScope = $rootScope;
}

@@ -18,2 +22,3 @@ Mock.prototype.service = function (service) {

Mock.prototype.promise = function (service, methodName, data, successful) {
var _this = this;
// Default successful to true

@@ -24,3 +29,3 @@ if (_.isUndefined(successful)) {

service[methodName] = sinon.spy(function () {
var deferred = q.defer();
var deferred = _this.$q.defer();
service._mock_requestList_.push({

@@ -45,3 +50,3 @@ promise: deferred,

}
var deferred = q.defer();
var deferred = _this.$q.defer();
service._mock_requestList_.push({

@@ -73,6 +78,9 @@ promise: deferred,

});
this.$rootScope.$apply();
};
Mock.$inject = ['$q', '$rootScope'];
return Mock;
})();
exports.mock = new Mock();
angular.module(exports.moduleName, [])
.service(exports.serviceName, Mock);
//# sourceMappingURL=mock.js.map

@@ -7,5 +7,7 @@ 'use strict';

import * as _ from 'lodash';
import * as ng from 'angular';
import * as q from 'q';
import * as angular from 'angular';
export var moduleName: string = 'rl.utilities.services.test.mock';
export var serviceName: string = 'mockUtility';
export interface IMock {

@@ -19,3 +21,3 @@ service(service?: any): any;

interface IMockRequest<TDataType> {
promise: q.Deferred<TDataType>;
promise: angular.IDeferred<TDataType>;
data: TDataType;

@@ -26,2 +28,5 @@ successful: boolean;

class Mock {
static $inject: string[] = ['$q', '$rootScope'];
constructor(private $q: angular.IQService, private $rootScope: angular.IRootScopeService) { }
service(service?: any): any {

@@ -44,3 +49,3 @@ if (_.isUndefined(service)) {

service[methodName] = sinon.spy((): any => {
var deferred: q.Deferred<TDataType> = q.defer<TDataType>();
var deferred: angular.IDeferred<TDataType> = this.$q.defer();

@@ -64,3 +69,3 @@ service._mock_requestList_.push({

service[methodName] = sinon.spy((...params: any[]): any => {
var deferred: q.Deferred<TDataType> = q.defer<TDataType>();
var deferred: angular.IDeferred<TDataType> = this.$q.defer<TDataType>();

@@ -77,3 +82,3 @@ service._mock_requestList_.push({

flush<TDataType>(service: any, scope?: ng.IScope): void {
flush<TDataType>(service: any, scope?: angular.IScope): void {
// Save local reference to the request list and then clear

@@ -97,5 +102,8 @@ var currentPendingRequests: IMockRequest<TDataType>[] = service._mock_requestList_;

});
this.$rootScope.$apply();
}
}
export var mock: IMock = new Mock();
angular.module(moduleName, [])
.service(serviceName, Mock);

@@ -38,6 +38,24 @@ {

},
"del/del.d.ts": {
"commit": "3b7f250dcf631f1c3c545e28d9ff25920c60b5f7"
},
"node/node.d.ts": {
"commit": "3b7f250dcf631f1c3c545e28d9ff25920c60b5f7"
},
"glob/glob.d.ts": {
"commit": "3b7f250dcf631f1c3c545e28d9ff25920c60b5f7"
},
"orchestrator/orchestrator.d.ts": {
"commit": "3b7f250dcf631f1c3c545e28d9ff25920c60b5f7"
},
"gulp/gulp.d.ts": {
"commit": "3b7f250dcf631f1c3c545e28d9ff25920c60b5f7"
},
"minimatch/minimatch.d.ts": {
"commit": "3b7f250dcf631f1c3c545e28d9ff25920c60b5f7"
},
"q/Q.d.ts": {
"commit": "32029fcb4e1a3ef8968711b545d77b584435729d"
"commit": "3b7f250dcf631f1c3c545e28d9ff25920c60b5f7"
}
}
}

@@ -11,2 +11,8 @@ /// <reference path="angularjs/angular.d.ts" />

/// <reference path="angularjs/angular-mocks.d.ts" />
/// <reference path="del/del.d.ts" />
/// <reference path="glob/glob.d.ts" />
/// <reference path="gulp/gulp.d.ts" />
/// <reference path="minimatch/minimatch.d.ts" />
/// <reference path="node/node.d.ts" />
/// <reference path="orchestrator/orchestrator.d.ts" />
/// <reference path="q/Q.d.ts" />

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