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

dojo-core

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dojo-core - npm Package Compare versions

Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.11

2

dist/umd/async/Task.js

@@ -23,3 +23,3 @@ var __extends = (this && this.__extends) || function (d, b) {

function isTask(value) {
return Boolean(Promise_1.isThenable(value) && typeof value.cancel === 'function' && Array.isArray(value.children));
return Boolean(value && typeof value.cancel === 'function' && Array.isArray(value.children) && Promise_1.isThenable(value));
}

@@ -26,0 +26,0 @@ exports.isTask = isTask;

@@ -148,3 +148,3 @@ var __extends = (this && this.__extends) || function (d, b) {

exports.filterRegistry.register(function (response, url, options) {
return typeof response.data && options && options.responseType === 'json';
return Boolean(typeof response.data && options && options.responseType === 'json');
}, function (response, url, options) {

@@ -151,0 +151,0 @@ return {

@@ -64,3 +64,3 @@ (function (factory) {

}
var request = (parsedUrl.protocol === 'https:' ? https : http).request(requestOptions);
var request = parsedUrl.protocol === 'https:' ? https.request(requestOptions) : http.request(requestOptions);
var response = {

@@ -67,0 +67,0 @@ data: null,

{
"name": "dojo-core",
"version": "2.0.0-alpha.10",
"version": "2.0.0-alpha.11",
"description": "Basic utilites for common TypeScript development",

@@ -16,3 +16,3 @@ "homepage": "http://dojotoolkit.org",

"scripts": {
"prepublish": "grunt dist",
"prepublish": "grunt peerDepInstall dist",
"test": "grunt test"

@@ -22,4 +22,4 @@ },

"peerDependencies": {
"dojo-has": "next",
"dojo-shim": "next"
"dojo-has": ">=2.0.0-alpha.3",
"dojo-shim": ">=2.0.0-alpha.3"
},

@@ -47,5 +47,5 @@ "devDependencies": {

"sinon": "1.14.1",
"tslint": "^3.10.2",
"typescript": "beta"
"tslint": "next",
"typescript": "2.1.0-dev.20160819"
}
}

@@ -13,3 +13,3 @@ import { Iterable } from 'dojo-shim/iterator';

export function isTask<T>(value: any): value is Task<T> {
return Boolean(isThenable(value) && typeof value.cancel === 'function' && Array.isArray(value.children));
return Boolean(value && typeof value.cancel === 'function' && Array.isArray(value.children) && isThenable(value));
}

@@ -16,0 +16,0 @@

@@ -199,4 +199,4 @@ import Promise from 'dojo-shim/Promise';

filterRegistry.register(
function (response: Response<any>, url: string, options: RequestOptions) {
return typeof response.data && options && options.responseType === 'json';
function (response: Response<any>, url: string, options: RequestOptions): boolean {
return Boolean(typeof response.data && options && options.responseType === 'json');
},

@@ -203,0 +203,0 @@ function (response: Response<any>, url: string, options: RequestOptions): Object {

@@ -113,3 +113,3 @@ import Task from '../async/Task';

const request = (parsedUrl.protocol === 'https:' ? https : http).request(requestOptions);
const request = parsedUrl.protocol === 'https:' ? https.request(requestOptions) : http.request(requestOptions);
const response: Response<T> = {

@@ -116,0 +116,0 @@ data: null,

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