Socket
Socket
Sign inDemoInstall

dojo

Package Overview
Dependencies
Maintainers
3
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dojo - npm Package Compare versions

Comparing version 1.11.1 to 1.11.2

cldr/nls/bs/currency.js

9

_base/kernel.js

@@ -83,3 +83,3 @@ define(["../has", "./config", "require", "module"], function(has, config, require, module){

var rev = "$Rev: 3594395 $".match(/[0-9a-f]{7,}/);
var rev = "$Rev: 91fa0cb $".match(/[0-9a-f]{7,}/);
dojo.version = {

@@ -97,3 +97,3 @@ // summary:

major: 1, minor: 11, patch: 1, flag: "",
major: 1, minor: 11, patch: 2, flag: "",
revision: rev ? rev[0] : NaN,

@@ -162,3 +162,6 @@ toString: function(){

// IE 9 bug: https://bugs.dojotoolkit.org/ticket/18197
has.add("console-as-object", Function.prototype.bind && console && typeof console.log === "object");
has.add("console-as-object", function () {
return Function.prototype.bind && console && typeof console.log === "object";
});
typeof console != "undefined" || (console = {}); // intentional assignment

@@ -165,0 +168,0 @@ // Be careful to leave 'log' always at the end

@@ -329,2 +329,3 @@ define({ root:

"fr": true,
"hr": true,
"hu": true,

@@ -341,2 +342,3 @@ "it": true,

"ru": true,
"sr": true,
"sv": true,

@@ -343,0 +345,0 @@ "th": true,

@@ -420,2 +420,3 @@ define({ root:

"fr": true,
"hr": true,
"hu": true,

@@ -422,0 +423,0 @@ "it": true,

@@ -458,2 +458,3 @@ define({ root:

"ru": true,
"sr": true,
"sv": true,

@@ -460,0 +461,0 @@ "th": true,

@@ -17,2 +17,3 @@ define({ root:

"ar": true,
"bs": true,
"ca": true,

@@ -32,2 +33,3 @@ "cs": true,

"he": true,
"hr": true,
"hu": true,

@@ -37,2 +39,3 @@ "it": true,

"ko": true,
"mk": true,
"nb": true,

@@ -47,2 +50,3 @@ "nl": true,

"sl": true,
"sr": true,
"sv": true,

@@ -49,0 +53,0 @@ "th": true,

@@ -458,2 +458,3 @@ define({ root:

"ru": true,
"sr": true,
"sv": true,

@@ -460,0 +461,0 @@ "th": true,

@@ -435,2 +435,3 @@ define({ root:

"ar": true,
"bs": true,
"ca": true,

@@ -450,2 +451,3 @@ "cs": true,

"he": true,
"hr": true,
"hu": true,

@@ -455,2 +457,3 @@ "it": true,

"ko": true,
"mk": true,
"nb": true,

@@ -465,2 +468,3 @@ "nl": true,

"sl": true,
"sr": true,
"sv": true,

@@ -467,0 +471,0 @@ "th": true,

@@ -322,2 +322,3 @@ define({ root:

"ar": true,
"bs": true,
"ca": true,

@@ -337,2 +338,3 @@ "cs": true,

"he": true,
"hr": true,
"hu": true,

@@ -342,2 +344,3 @@ "it": true,

"ko": true,
"mk": true,
"nb": true,

@@ -352,2 +355,3 @@ "nl": true,

"sl": true,
"sr": true,
"sv": true,

@@ -354,0 +358,0 @@ "th": true,

@@ -341,2 +341,3 @@ define({ root:

"he": true,
"hr": true,
"hu": true,

@@ -353,2 +354,3 @@ "it": true,

"ru": true,
"sr": true,
"sv": true,

@@ -355,0 +357,0 @@ "th": true,

@@ -447,2 +447,3 @@ define({ root:

"ru": true,
"sr": true,
"sv": true,

@@ -449,0 +450,0 @@ "th": true,

@@ -320,2 +320,3 @@ define({ root:

"ar": true,
"bs": true,
"cs": true,

@@ -331,2 +332,3 @@ "da": true,

"he": true,
"hr": true,
"hu": true,

@@ -343,2 +345,3 @@ "it": true,

"ru": true,
"sr": true,
"sv": true,

@@ -345,0 +348,0 @@ "th": true,

@@ -1156,2 +1156,3 @@ define({ root:

"he": true,
"hr": true,
"hu": true,

@@ -1167,2 +1168,3 @@ "it": true,

"ru": true,
"sr": true,
"sv": true,

@@ -1169,0 +1171,0 @@ "th": true,

@@ -32,2 +32,3 @@ define({ root:

"ar": true,
"bs": true,
"ca": true,

@@ -45,2 +46,3 @@ "cs": true,

"he": true,
"hr": true,
"hu": true,

@@ -50,2 +52,3 @@ "it": true,

"ko": true,
"mk": true,
"nb": true,

@@ -60,2 +63,3 @@ "nl": true,

"sl": true,
"sr": true,
"sv": true,

@@ -62,0 +66,0 @@ "th": true,

@@ -327,2 +327,3 @@ define({ root:

"ru": true,
"sr": true,
"sv": true,

@@ -329,0 +330,0 @@ "th": true,

@@ -456,2 +456,3 @@ define({ root:

"fr": true,
"hr": true,
"hu": true,

@@ -467,2 +468,3 @@ "it": true,

"ru": true,
"sr": true,
"sv": true,

@@ -469,0 +471,0 @@ "th": true,

@@ -179,3 +179,3 @@ define([

//
return new _chain(lang.isArray(animations) ? animations : Array.prototype.slice.call(arguments, 0)); // dojo/_base/fx.Animation
return new _chain(lang.isArray(animations) ? animations : Array.prototype.slice.call(animations, 0)); // dojo/_base/fx.Animation
};

@@ -290,3 +290,3 @@

//
return new _combine(lang.isArray(animations) ? animations : Array.prototype.slice.call(arguments, 0)); // dojo/_base/fx.Animation
return new _combine(lang.isArray(animations) ? animations : Array.prototype.slice.call(animations, 0)); // dojo/_base/fx.Animation
};

@@ -293,0 +293,0 @@

{
"name": "dojo",
"version": "1.11.1",
"version": "1.11.2",
"directories": {

@@ -12,5 +12,5 @@ "lib": "."

"jsgi-node": "0.3.1",
"formidable": "1.0.14",
"formidable": "1.0.17",
"sinon": "1.12.2",
"dojo": "1.11.1"
"dojo": "1.11.2"
},

@@ -17,0 +17,0 @@ "main": "main",

@@ -872,13 +872,8 @@ define([

// determine the root node and options based on the passed arguments.
var root;
if(!options && rootNode && rootNode.rootNode){
if(rootNode && typeof rootNode != "string" && !("nodeType" in rootNode)){
// If called as parse(options) rather than parse(), parse(rootNode), or parse(rootNode, options)...
options = rootNode;
root = options.rootNode;
}else if(rootNode && dlang.isObject(rootNode) && !("nodeType" in rootNode)){
options = rootNode;
}else{
root = rootNode;
rootNode = options.rootNode;
}
root = root ? dom.byId(root) : dwindow.body();
var root = rootNode ? dom.byId(rootNode) : dwindow.body();
options = options || {};

@@ -885,0 +880,0 @@

@@ -122,5 +122,5 @@ define([

query = options.query;
if(data && !skipData){
if(typeof data === 'object'){
if(typeof data === 'object' && !(data instanceof ArrayBuffer || data instanceof Blob )){
options.data = ioQuery.objectToQuery(data);

@@ -127,0 +127,0 @@ }

@@ -5,13 +5,16 @@ define(["../has", "require"],

"use strict";
var testDiv = document.createElement("div");
has.add("dom-qsa2.1", !!testDiv.querySelectorAll);
has.add("dom-qsa3", function(){
// test to see if we have a reasonable native selector engine available
try{
testDiv.innerHTML = "<p class='TEST'></p>"; // test kind of from sizzle
// Safari can't handle uppercase or unicode characters when
// in quirks mode, IE8 can't handle pseudos like :empty
return testDiv.querySelectorAll(".TEST:empty").length == 1;
}catch(e){}
});
if (typeof document !== "undefined") {
var testDiv = document.createElement("div");
has.add("dom-qsa2.1", !!testDiv.querySelectorAll);
has.add("dom-qsa3", function(){
// test to see if we have a reasonable native selector engine available
try{
testDiv.innerHTML = "<p class='TEST'></p>"; // test kind of from sizzle
// Safari can't handle uppercase or unicode characters when
// in quirks mode, IE8 can't handle pseudos like :empty
return testDiv.querySelectorAll(".TEST:empty").length == 1;
}catch(e){}
});
}
var fullEngine;

@@ -24,2 +27,11 @@ var acme = "./acme", lite = "./lite";

load: function(id, parentRequire, loaded, config){
if (config && config.isBuild) {
//Indicate that the optimizer should not wait
//for this resource any more and complete optimization.
//This resource will be resolved dynamically during
//run time in the web browser.
loaded();
return;
}
var req = require;

@@ -26,0 +38,0 @@ // here we implement the default logic for choosing a selector engine

@@ -249,3 +249,3 @@ define([

var tnl = new NodeList(dojo.byId(sq100Id));
assert.isTrue(dojo.isArray(tnl));
assert.isTrue(dojo.isArrayLike(tnl));
assert.equal(120, tnl.coords()[0].w, 120);

@@ -367,5 +367,3 @@ assert.equal(130, tnl.coords()[0].h, 130);

var pnl = new NodeList(t, t, c);
console.debug(pnl.splice(1));
/*
assert.equal(pnl.splice(1).length, 2);

@@ -378,3 +376,2 @@ assert.equal(pnl.length, 1);

assert.equal(pnl.splice(-2).length, 2);
*/
},

@@ -475,3 +472,3 @@

var tnl = new NodeList(dojo.byId('sq100-NodeList'));
assert.isTrue(dojo.isArray(tnl));
assert.isTrue(dojo.isArrayLike(tnl));
assert.equal(tnl.position()[0].w, 100);

@@ -478,0 +475,0 @@ assert.equal(tnl.position()[0].h, 100);

@@ -85,4 +85,4 @@ define([

packages: [
{ name: 'dojo1', location: './' },
{ name: 'dojo2', location: './' }
{ name: 'dojo1', location: '.' },
{ name: 'dojo2', location: '.' }
]

@@ -93,3 +93,3 @@ }, ['dojo1/aspect', 'dojo2/aspect'], this.async().callback(function(aspectOne, aspectTwo) {

target.onclick = function() {};
aspectOne.after(target, 'onclick', function() {

@@ -104,5 +104,5 @@ aspectAfterCount++;

});
target.onclick();
assert.equal(aspectAfterCount, 3);

@@ -109,0 +109,0 @@ }));

@@ -18,3 +18,2 @@ define([

name: 'dojo/request/xhr',
'.get': function () {

@@ -52,3 +51,3 @@ var promise = xhr.get('/__services/request/xhr', {

},
'.get json with truthy value': function () {

@@ -122,3 +121,84 @@ var def = this.async(),

},
'.post ArrayBuffer': function() {
if (!ArrayBuffer) {
this.skip('ArrayBuffer not available');
}
var def = this.async(),
str = 'foo',
arrbuff = new ArrayBuffer(str.length),
i8array = new Uint8Array(arrbuff);
for (var i = 0; i < str.length; i++) {
i8array[i] = str.charCodeAt(i);
}
var promise = xhr.post('/__services/request/xhr', {
data: arrbuff,
handleAs: 'json',
headers: {
'Content-Type':'text/plain'
}
});
promise.response.then(
def.callback(function (response) {
assert.strictEqual(response.data.method, 'POST');
var payload = response.data.payload;
assert.deepEqual(payload, {'foo':''});
}),
def.reject
);
},
'.post Blob': function() {
if (!Blob) {
this.skip('Blob not available');
}
var def = this.async(),
str = 'foo',
blob = new Blob([str], {type:'text/plain'});
var promise = xhr.post('/__services/request/xhr', {
data: blob,
handleAs: 'json',
headers: {
'Content-Type':'text/plain'
}
});
promise.response.then(
def.callback(function (response) {
assert.strictEqual(response.data.method, 'POST');
var payload = response.data.payload;
assert.deepEqual(payload, {'foo':''});
}),
def.reject
);
},
'.post File': function() {
if (!File) {
this.skip('File not available');
}
var def = this.async(),
str = 'foo',
file = new File([str], 'bar.txt', {type:'text/plain'});
var promise = xhr.post('/__services/request/xhr', {
data: file,
handleAs: 'json',
headers: {
'Content-Type':'text/plain'
}
});
promise.response.then(
def.callback(function (response) {
assert.strictEqual(response.data.method, 'POST');
var payload = response.data.payload;
assert.deepEqual(payload, {'foo':''});
}),
def.reject
);
},
'.post with query': function () {

@@ -125,0 +205,0 @@ var def = this.async(),

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