Comparing version 2.0.0-alpha.3 to 2.0.0-alpha.4
11
has.js
@@ -179,3 +179,12 @@ (function (factory) { | ||
add('es7-array-includes', 'includes' in global_1.default.Array.prototype); | ||
add('es6-symbol', typeof global_1.default.Symbol === 'function'); | ||
add('es6-set', function () { | ||
if (typeof global_1.default.Set === 'function') { | ||
/* IE11 and older versions of Safari are missing critical ES6 Set functionality */ | ||
var set = new global_1.default.Set([1]); | ||
return set.has(1) && 'keys' in set && typeof set.keys === 'function'; | ||
} | ||
return false; | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2hhcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7SUFBQSx1QkFBbUIsVUFBVSxDQUFDLENBQUE7SUFNakIsYUFBSyxHQUFxQixNQUFNLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQzlDLHFCQUFhLEdBQXFCLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7SUFFbkU7Ozs7OztPQU1HO0lBQ0gsY0FBcUIsVUFBa0IsRUFBRSxPQUEyQixFQUFFLElBQTJCLEVBQUUsTUFBMEI7UUFDNUgsRUFBRSxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQztZQUNoQixPQUFPLENBQUMsQ0FBRSxVQUFVLENBQUUsRUFBRSxJQUFJLENBQUMsQ0FBQztRQUMvQixDQUFDO1FBQ0QsSUFBSSxDQUFDLENBQUM7WUFDTCxJQUFJLEVBQUUsQ0FBQztRQUNSLENBQUM7SUFDRixDQUFDO0lBUGUsWUFBSSxPQU9uQixDQUFBO0lBRUQ7Ozs7O09BS0c7SUFDSCxtQkFBMEIsVUFBa0IsRUFBRSxTQUF1QztRQUNwRixJQUFNLE1BQU0sR0FBRyxVQUFVLENBQUM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cml0aWNhbCBFUzYgU2V0IGZ1bmN0aW9uYWxpdHkgKi9cblx0XHRjb25zdCBzZXQgPSBuZXcgZ2xvYmFsLlNldChbMV0pO1xuXHRcdHJldHVybiBzZXQuaGFzKDEpICYmICdrZXlzJyBpbiBzZXQgJiYgdHlwZW9mIHNldC5rZXlzID09PSAnZnVuY3Rpb24nO1xuXHR9XG5cdHJldHVybiBmYWxzZTtcbn0pO1xuIl19 |
{ | ||
"name": "dojo-core", | ||
"version": "2.0.0-alpha.3", | ||
"version": "2.0.0-alpha.4", | ||
"description": "Basic utilites for common TypeScript development", | ||
@@ -19,3 +19,3 @@ "homepage": "http://dojotoolkit.org", | ||
"dts-generator": "1.7.0", | ||
"formidable": "1.0.14", | ||
"formidable": "1.0.17", | ||
"glob": "7.0.3", | ||
@@ -27,14 +27,13 @@ "grunt": "0.4.5", | ||
"grunt-text-replace": "0.4.0", | ||
"grunt-ts": "5.3.2", | ||
"grunt-ts": "5.5.0-beta.2", | ||
"grunt-tslint": "3.0.3", | ||
"http-proxy": "0.10.3", | ||
"intern": "theintern/intern#75c1472d6d1e3fcf7b1ed7f92deb14ea8b631a44", | ||
"intern": "3.1.1", | ||
"istanbul": "0.4.2", | ||
"leadfoot": "^1.6.5", | ||
"remap-istanbul": "0.5.1", | ||
"sinon": "1.14.1", | ||
"tslint": "3.6.0", | ||
"tslint": "3.7.1", | ||
"typescript": "1.8.9" | ||
}, | ||
"typings": "typings/dojo-core/dojo-core-2.0.0-alpha.3.d.ts" | ||
"typings": "typings/dojo-core/dojo-core-2.0.0-alpha.4.d.ts" | ||
} |
@@ -5,2 +5,3 @@ # Dojo 2 core | ||
[![codecov.io](http://codecov.io/github/dojo/core/coverage.svg?branch=master)](http://codecov.io/github/dojo/core?branch=master) | ||
[![npm version](https://badge.fury.io/js/dojo-core.svg)](http://badge.fury.io/js/dojo-core) | ||
@@ -7,0 +8,0 @@ This package provides a set of language helpers, utility functions, and classes for writing TypeScript applications. |
@@ -145,3 +145,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
exports.filterRegistry.register(function (response, url, options) { | ||
return typeof response.data && options && (options.responseType === 'json' || options.handleAs === 'json'); | ||
return typeof response.data && options && options.responseType === 'json'; | ||
}, function (response, url, options) { | ||
@@ -153,2 +153,2 @@ return { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9yZXF1ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0lBQUEscUJBQWlCLGNBQWMsQ0FBQyxDQUFBO0lBQ2hDLG9CQUFnQixlQUFlLENBQUMsQ0FBQTtJQUdoQyx5QkFBK0IsWUFBWSxDQUFDLENBQUE7SUFDNUMscUJBQWlCLFFBQVEsQ0FBQyxDQUFBO0lBSzFCO1FBQW9DLGtDQUF1QjtRQUEzRDtZQUFvQyw4QkFBdUI7UUFvQjNELENBQUM7UUFuQkEsaUNBQVEsR0FBUixVQUFTLElBQXlDLEVBQUUsS0FBb0IsRUFBRSxLQUFlO1lBQ3hGLElBQUksU0FBZSxDQUFDO1lBRXBCLEVBQUUsQ0FBQyxDQUFDLE9BQU8sSUFBSSxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUM7Z0JBQzlCLFNBQVMsR0FBRyxVQUFDLFFBQVEsRUFBRSxHQUFHLEVBQUUsT0FBTztvQkFDbEMsTUFBTSxDQUFDLElBQUksS0FBSyxHQUFHLENBQUM7Z0JBQ3JCLENBQUMsQ0FBQztZQUNILENBQUM7WUFDRCxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUMsSUFBSSxZQUFZLE1BQU0sQ0FBQyxDQUFDLENBQUM7Z0JBQ2pDLFNBQVMsR0FBRyxVQUFDLFFBQVEsRUFBRSxHQUFHLEVBQUUsT0FBTztvQkFDbEMsTUFBTSxDQUFD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ZXIgdGhhdCBhdXRvbWF0aWNhbGx5IHBhcnNlcyBpbmNvbWluZyBKU09OIHJlc3BvbnNlcy5cbiAqL1xuZmlsdGVyUmVnaXN0cnkucmVnaXN0ZXIoXG5cdGZ1bmN0aW9uIChyZXNwb25zZTogUmVzcG9uc2U8YW55PiwgdXJsOiBzdHJpbmcsIG9wdGlvbnM6IFJlcXVlc3RPcHRpb25zKSB7XG5cdFx0cmV0dXJuIHR5cGVvZiByZXNwb25zZS5kYXRhICYmIG9wdGlvbnMgJiYgb3B0aW9ucy5yZXNwb25zZVR5cGUgPT09ICdqc29uJztcblx0fSxcblx0ZnVuY3Rpb24gKHJlc3BvbnNlOiBSZXNwb25zZTxhbnk+LCB1cmw6IHN0cmluZywgb3B0aW9uczogUmVxdWVzdE9wdGlvbnMpOiBPYmplY3Qge1xuXHRcdHJldHVybiB7XG5cdFx0XHRkYXRhOiBKU09OLnBhcnNlKFN0cmluZyhyZXNwb25zZS5kYXRhKSlcblx0XHR9O1xuXHR9XG4pO1xuIl19 |
22
util.js
@@ -93,3 +93,23 @@ (function (factory) { | ||
exports.throttleAfter = throttleAfter; | ||
/** | ||
* Helper function to generate a value property descriptor | ||
* @param {T} value The value the property descriptor should be set to | ||
* @param {boolean} enumerable If the property should be enumberable, defaults to false | ||
* @param {boolean} writable If the property should be writable, defaults to true | ||
* @param {boolean} configurable If the property should be configurable, defaults to true | ||
* @returns {TypedPropertyDescriptor<T>} The property descriptor object | ||
*/ | ||
function getValueDescriptor(value, enumerable, writable, configurable) { | ||
if (enumerable === void 0) { enumerable = false; } | ||
if (writable === void 0) { writable = true; } | ||
if (configurable === void 0) { configurable = true; } | ||
return { | ||
value: value, | ||
enumerable: enumerable, | ||
writable: writable, | ||
configurable: configurable | ||
}; | ||
} | ||
exports.getValueDescriptor = getValueDescriptor; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOi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BlcnR5RGVzY3JpcHRvcjxUPn0gICAgICAgICAgICAgIFRoZSBwcm9wZXJ0eSBkZXNjcmlwdG9yIG9iamVjdFxuICovXG5leHBvcnQgZnVuY3Rpb24gZ2V0VmFsdWVEZXNjcmlwdG9yPFQ+KHZhbHVlOiBULCBlbnVtZXJhYmxlOiBib29sZWFuID0gZmFsc2UsIHdyaXRhYmxlOiBib29sZWFuID0gdHJ1ZSwgY29uZmlndXJhYmxlOiBib29sZWFuID0gdHJ1ZSk6IFR5cGVkUHJvcGVydHlEZXNjcmlwdG9yPFQ+IHtcblx0cmV0dXJuIHtcblx0XHR2YWx1ZTogdmFsdWUsXG5cdFx0ZW51bWVyYWJsZTogZW51bWVyYWJsZSxcblx0XHR3cml0YWJsZTogd3JpdGFibGUsXG5cdFx0Y29uZmlndXJhYmxlOiBjb25maWd1cmFibGVcblx0fTtcbn1cbiJdfQ== |
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
985648
20
60
10422
135