Skip to content

Commit

Permalink
Merge pull request #32 from abridger/master
Browse files Browse the repository at this point in the history
Update build
  • Loading branch information
vikdoro authored May 11, 2017
2 parents 6618d0e + bc5032e commit 55c1752
Showing 1 changed file with 46 additions and 16 deletions.
62 changes: 46 additions & 16 deletions dist/kano-world-sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,11 @@ module.exports = function (config) {
.add('users.delete', {
method : 'delete',
route : '/users'
})

.add('progress.get', {
method : 'get',
route : '/progress'
});
};

Expand Down Expand Up @@ -3773,7 +3778,7 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

},{}],30:[function(require,module,exports){
module.exports=require(29)
},{"/Users/radek/kano/kano-world-js-sdk/node_modules/browser-resolve/empty.js":29}],31:[function(require,module,exports){
},{"/Users/alan/Kano/kano-world-js-sdk/node_modules/browser-resolve/empty.js":29}],31:[function(require,module,exports){
/*!
* The buffer module from node.js, for the browser.
*
Expand Down Expand Up @@ -7190,8 +7195,8 @@ process.chdir = function (dir) {
// vim:ts=4:sts=4:sw=4:
/*!
*
* Copyright 2009-2012 Kris Kowal under the terms of the MIT
* license found at http://github.com/kriskowal/q/raw/master/LICENSE
* Copyright 2009-2017 Kris Kowal under the terms of the MIT
* license found at https://github.com/kriskowal/q/blob/v1/LICENSE
*
* With parts by Tyler Close
* Copyright 2007-2009 Tyler Close under the terms of the MIT X license found
Expand Down Expand Up @@ -7379,7 +7384,7 @@ var nextTick =(function () {
// `setTimeout`. In this case `setImmediate` is preferred because
// it is faster. Browserify's `process.toString()` yields
// "[object Object]", while in a real Node environment
// `process.nextTick()` yields "[object process]".
// `process.toString()` yields "[object process]".
isNodeJS = true;

requestTick = function () {
Expand Down Expand Up @@ -7516,6 +7521,11 @@ var object_create = Object.create || function (prototype) {
return new Type();
};

var object_defineProperty = Object.defineProperty || function (obj, prop, descriptor) {
obj[prop] = descriptor.value;
return obj;
};

var object_hasOwnProperty = uncurryThis(Object.prototype.hasOwnProperty);

var object_keys = Object.keys || function (object) {
Expand Down Expand Up @@ -7566,19 +7576,20 @@ function makeStackTraceLong(error, promise) {
promise.stack &&
typeof error === "object" &&
error !== null &&
error.stack &&
error.stack.indexOf(STACK_JUMP_SEPARATOR) === -1
error.stack
) {
var stacks = [];
for (var p = promise; !!p; p = p.source) {
if (p.stack) {
if (p.stack && (!error.__minimumStackCounter__ || error.__minimumStackCounter__ > p.stackCounter)) {
object_defineProperty(error, "__minimumStackCounter__", {value: p.stackCounter, configurable: true});
stacks.unshift(p.stack);
}
}
stacks.unshift(error.stack);

var concatedStacks = stacks.join("\n" + STACK_JUMP_SEPARATOR + "\n");
error.stack = filterStackString(concatedStacks);
var stack = filterStackString(concatedStacks);
object_defineProperty(error, "stack", {value: stack, configurable: true});
}
}

Expand Down Expand Up @@ -7705,6 +7716,14 @@ Q.nextTick = nextTick;
*/
Q.longStackSupport = false;

/**
* The counter is used to determine the stopping point for building
* long stack traces. In makeStackTraceLong we walk backwards through
* the linked list of promises, only stacks which were created before
* the rejection are concatenated.
*/
var longStackCounter = 1;

// enable long stacks if Q_DEBUG is set
if (typeof process === "object" && process && process.env && process.env.Q_DEBUG) {
Q.longStackSupport = true;
Expand Down Expand Up @@ -7777,6 +7796,7 @@ function defer() {
// At the same time, cut off the first line; it's always just
// "[object Promise]\n", as per the `toString`.
promise.stack = e.stack.substring(e.stack.indexOf("\n") + 1);
promise.stackCounter = longStackCounter++;
}
}

Expand All @@ -7786,7 +7806,12 @@ function defer() {

function become(newPromise) {
resolvedPromise = newPromise;
promise.source = newPromise;

if (Q.longStackSupport && hasStacks) {
// Only hold a reference to the new promise if long stacks
// are enabled to reduce memory usage
promise.source = newPromise;
}

array_reduce(messages, function (undefined, message) {
Q.nextTick(function () {
Expand Down Expand Up @@ -7914,7 +7939,7 @@ Promise.prototype.join = function (that) {
// TODO: "===" should be Object.is or equiv
return x;
} else {
throw new Error("Can't join: not the same: " + x + " " + y);
throw new Error("Q can't join: not the same: " + x + " " + y);
}
});
};
Expand Down Expand Up @@ -8811,13 +8836,12 @@ function any(promises) {
function onFulfilled(result) {
deferred.resolve(result);
}
function onRejected() {
function onRejected(err) {
pendingCount--;
if (pendingCount === 0) {
deferred.reject(new Error(
"Can't get fulfillment value from any promise, all " +
"promises were rejected."
));
err.message = ("Q can't get fulfillment value from any promise, all " +
"promises were rejected. Last error message: " + err.message);
deferred.reject(err);
}
}
function onProgress(progress) {
Expand Down Expand Up @@ -8941,6 +8965,9 @@ Q["finally"] = function (object, callback) {

Promise.prototype.fin = // XXX legacy
Promise.prototype["finally"] = function (callback) {
if (!callback || typeof callback.apply !== "function") {
throw new Error("Q can't apply finally callback");
}
callback = Q(callback);
return this.then(function (value) {
return callback.fcall().then(function () {
Expand Down Expand Up @@ -9104,6 +9131,9 @@ Promise.prototype.nfcall = function (/*...args*/) {
*/
Q.nfbind =
Q.denodeify = function (callback /*...args*/) {
if (callback === undefined) {
throw new Error("Q can't wrap an undefined function");
}
var baseArgs = array_slice(arguments, 1);
return function () {
var nodeArgs = baseArgs.concat(array_slice(arguments));
Expand Down Expand Up @@ -12931,7 +12961,7 @@ function isNullOrUndefined(arg) {

},{"punycode":47,"querystring":52}],67:[function(require,module,exports){
module.exports=require(41)
},{"/Users/radek/kano/kano-world-js-sdk/node_modules/inherits/inherits_browser.js":41}],68:[function(require,module,exports){
},{"/Users/alan/Kano/kano-world-js-sdk/node_modules/inherits/inherits_browser.js":41}],68:[function(require,module,exports){
module.exports = function isBuffer(arg) {
return arg && typeof arg === 'object'
&& typeof arg.copy === 'function'
Expand Down

0 comments on commit 55c1752

Please sign in to comment.