Skip to content

Commit d582765

Browse files
author
Travis-CI
committed
Auto build dist files for b31488f [ci skip]
1 parent b31488f commit d582765

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
lines changed

dist/browserTest.js

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2-
/*jslint node: true */
2+
/*jslint node:true */
33
'use strict';
44

55
var lodash = require('lodash'),
@@ -561,6 +561,8 @@ var process = module.exports = {};
561561
process.nextTick = (function () {
562562
var canSetImmediate = typeof window !== 'undefined'
563563
&& window.setImmediate;
564+
var canMutationObserver = typeof window !== 'undefined'
565+
&& window.MutationObserver;
564566
var canPost = typeof window !== 'undefined'
565567
&& window.postMessage && window.addEventListener
566568
;
@@ -569,8 +571,29 @@ process.nextTick = (function () {
569571
return function (f) { return window.setImmediate(f) };
570572
}
571573

574+
var queue = [];
575+
576+
if (canMutationObserver) {
577+
var hiddenDiv = document.createElement("div");
578+
var observer = new MutationObserver(function () {
579+
var queueList = queue.slice();
580+
queue.length = 0;
581+
queueList.forEach(function (fn) {
582+
fn();
583+
});
584+
});
585+
586+
observer.observe(hiddenDiv, { attributes: true });
587+
588+
return function nextTick(fn) {
589+
if (!queue.length) {
590+
hiddenDiv.setAttribute('yes', 'no');
591+
}
592+
queue.push(fn);
593+
};
594+
}
595+
572596
if (canPost) {
573-
var queue = [];
574597
window.addEventListener('message', function (ev) {
575598
var source = ev.source;
576599
if ((source === window || source === null) && ev.data === 'process-tick') {
@@ -610,7 +633,7 @@ process.emit = noop;
610633

611634
process.binding = function (name) {
612635
throw new Error('process.binding is not supported');
613-
}
636+
};
614637

615638
// TODO(shtylman)
616639
process.cwd = function () { return '/' };

dist/jpp-dbg.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jpp-req.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2-
/*jslint node: true */
2+
/*jslint node:true */
33
'use strict';
44

55
var lodash = require('lodash'),

dist/jpp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.JsonPathProcessor=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2-
/*jslint node: true */
2+
/*jslint node:true */
33
'use strict';
44

55
var lodash = require('lodash'),

0 commit comments

Comments
 (0)