Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.11
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
649371
2