@jobber/components 6.39.0 → 6.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Chips/index.cjs +1 -4
- package/dist/Chips/index.mjs +1 -4
- package/dist/Combobox/index.cjs +0 -2
- package/dist/Combobox/index.mjs +0 -2
- package/dist/Combobox-cjs.js +0 -7
- package/dist/Combobox-es.js +0 -7
- package/dist/ConfirmationModal/index.cjs +0 -1
- package/dist/ConfirmationModal/index.mjs +0 -1
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +0 -2
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +0 -2
- package/dist/DataList/components/DataListFilters/index.cjs +0 -2
- package/dist/DataList/components/DataListFilters/index.mjs +0 -2
- package/dist/DataList/index.cjs +0 -2
- package/dist/DataList/index.mjs +0 -2
- package/dist/FeatureSwitch/index.cjs +0 -1
- package/dist/FeatureSwitch/index.mjs +0 -1
- package/dist/FormatFile/index.cjs +0 -1
- package/dist/FormatFile/index.mjs +0 -1
- package/dist/Gallery/index.cjs +0 -1
- package/dist/Gallery/index.mjs +0 -1
- package/dist/List/index.cjs +0 -1
- package/dist/List/index.mjs +0 -1
- package/dist/Markdown/index.cjs +0 -1
- package/dist/Markdown/index.mjs +0 -1
- package/dist/Markdown-cjs.js +228 -3
- package/dist/Markdown-es.js +226 -1
- package/dist/Page/index.cjs +0 -1
- package/dist/Page/index.mjs +0 -1
- package/dist/index.cjs +0 -2
- package/dist/index.mjs +0 -2
- package/package.json +2 -2
- package/dist/_polyfill-node.process-cjs.js +0 -258
- package/dist/_polyfill-node.process-es.js +0 -255
- package/dist/useAssert-cjs.js +0 -28
- package/dist/useAssert-es.js +0 -26
package/dist/Markdown-es.js
CHANGED
|
@@ -5,7 +5,6 @@ import { H as Heading } from './Heading-es.js';
|
|
|
5
5
|
import { C as Content } from './Content-es.js';
|
|
6
6
|
import { P as PropTypes } from './index-es.js';
|
|
7
7
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
|
|
8
|
-
import { b as browser$1 } from './_polyfill-node.process-es.js';
|
|
9
8
|
|
|
10
9
|
const protocols = ['http', 'https', 'mailto', 'tel'];
|
|
11
10
|
|
|
@@ -610,6 +609,232 @@ var substr = 'ab'.substr(-1) === 'b' ?
|
|
|
610
609
|
}
|
|
611
610
|
;
|
|
612
611
|
|
|
612
|
+
var global$1 = (typeof global !== "undefined" ? global :
|
|
613
|
+
typeof self !== "undefined" ? self :
|
|
614
|
+
typeof window !== "undefined" ? window : {});
|
|
615
|
+
|
|
616
|
+
// shim for using process in browser
|
|
617
|
+
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
618
|
+
|
|
619
|
+
function defaultSetTimout() {
|
|
620
|
+
throw new Error('setTimeout has not been defined');
|
|
621
|
+
}
|
|
622
|
+
function defaultClearTimeout () {
|
|
623
|
+
throw new Error('clearTimeout has not been defined');
|
|
624
|
+
}
|
|
625
|
+
var cachedSetTimeout = defaultSetTimout;
|
|
626
|
+
var cachedClearTimeout = defaultClearTimeout;
|
|
627
|
+
if (typeof global$1.setTimeout === 'function') {
|
|
628
|
+
cachedSetTimeout = setTimeout;
|
|
629
|
+
}
|
|
630
|
+
if (typeof global$1.clearTimeout === 'function') {
|
|
631
|
+
cachedClearTimeout = clearTimeout;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
function runTimeout(fun) {
|
|
635
|
+
if (cachedSetTimeout === setTimeout) {
|
|
636
|
+
//normal enviroments in sane situations
|
|
637
|
+
return setTimeout(fun, 0);
|
|
638
|
+
}
|
|
639
|
+
// if setTimeout wasn't available but was latter defined
|
|
640
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
641
|
+
cachedSetTimeout = setTimeout;
|
|
642
|
+
return setTimeout(fun, 0);
|
|
643
|
+
}
|
|
644
|
+
try {
|
|
645
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
646
|
+
return cachedSetTimeout(fun, 0);
|
|
647
|
+
} catch(e){
|
|
648
|
+
try {
|
|
649
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
650
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
651
|
+
} catch(e){
|
|
652
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
653
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
}
|
|
659
|
+
function runClearTimeout(marker) {
|
|
660
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
661
|
+
//normal enviroments in sane situations
|
|
662
|
+
return clearTimeout(marker);
|
|
663
|
+
}
|
|
664
|
+
// if clearTimeout wasn't available but was latter defined
|
|
665
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
666
|
+
cachedClearTimeout = clearTimeout;
|
|
667
|
+
return clearTimeout(marker);
|
|
668
|
+
}
|
|
669
|
+
try {
|
|
670
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
671
|
+
return cachedClearTimeout(marker);
|
|
672
|
+
} catch (e){
|
|
673
|
+
try {
|
|
674
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
675
|
+
return cachedClearTimeout.call(null, marker);
|
|
676
|
+
} catch (e){
|
|
677
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
678
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
679
|
+
return cachedClearTimeout.call(this, marker);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
}
|
|
686
|
+
var queue = [];
|
|
687
|
+
var draining = false;
|
|
688
|
+
var currentQueue;
|
|
689
|
+
var queueIndex = -1;
|
|
690
|
+
|
|
691
|
+
function cleanUpNextTick() {
|
|
692
|
+
if (!draining || !currentQueue) {
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
draining = false;
|
|
696
|
+
if (currentQueue.length) {
|
|
697
|
+
queue = currentQueue.concat(queue);
|
|
698
|
+
} else {
|
|
699
|
+
queueIndex = -1;
|
|
700
|
+
}
|
|
701
|
+
if (queue.length) {
|
|
702
|
+
drainQueue();
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
function drainQueue() {
|
|
707
|
+
if (draining) {
|
|
708
|
+
return;
|
|
709
|
+
}
|
|
710
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
711
|
+
draining = true;
|
|
712
|
+
|
|
713
|
+
var len = queue.length;
|
|
714
|
+
while(len) {
|
|
715
|
+
currentQueue = queue;
|
|
716
|
+
queue = [];
|
|
717
|
+
while (++queueIndex < len) {
|
|
718
|
+
if (currentQueue) {
|
|
719
|
+
currentQueue[queueIndex].run();
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
queueIndex = -1;
|
|
723
|
+
len = queue.length;
|
|
724
|
+
}
|
|
725
|
+
currentQueue = null;
|
|
726
|
+
draining = false;
|
|
727
|
+
runClearTimeout(timeout);
|
|
728
|
+
}
|
|
729
|
+
function nextTick(fun) {
|
|
730
|
+
var args = new Array(arguments.length - 1);
|
|
731
|
+
if (arguments.length > 1) {
|
|
732
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
733
|
+
args[i - 1] = arguments[i];
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
queue.push(new Item(fun, args));
|
|
737
|
+
if (queue.length === 1 && !draining) {
|
|
738
|
+
runTimeout(drainQueue);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
// v8 likes predictible objects
|
|
742
|
+
function Item(fun, array) {
|
|
743
|
+
this.fun = fun;
|
|
744
|
+
this.array = array;
|
|
745
|
+
}
|
|
746
|
+
Item.prototype.run = function () {
|
|
747
|
+
this.fun.apply(null, this.array);
|
|
748
|
+
};
|
|
749
|
+
var title = 'browser';
|
|
750
|
+
var platform = 'browser';
|
|
751
|
+
var browser = true;
|
|
752
|
+
var env = {};
|
|
753
|
+
var argv = [];
|
|
754
|
+
var version = ''; // empty string to avoid regexp issues
|
|
755
|
+
var versions = {};
|
|
756
|
+
var release = {};
|
|
757
|
+
var config = {};
|
|
758
|
+
|
|
759
|
+
function noop() {}
|
|
760
|
+
|
|
761
|
+
var on = noop;
|
|
762
|
+
var addListener = noop;
|
|
763
|
+
var once = noop;
|
|
764
|
+
var off = noop;
|
|
765
|
+
var removeListener = noop;
|
|
766
|
+
var removeAllListeners = noop;
|
|
767
|
+
var emit = noop;
|
|
768
|
+
|
|
769
|
+
function binding(name) {
|
|
770
|
+
throw new Error('process.binding is not supported');
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
function cwd () { return '/' }
|
|
774
|
+
function chdir (dir) {
|
|
775
|
+
throw new Error('process.chdir is not supported');
|
|
776
|
+
}function umask() { return 0; }
|
|
777
|
+
|
|
778
|
+
// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
779
|
+
var performance = global$1.performance || {};
|
|
780
|
+
var performanceNow =
|
|
781
|
+
performance.now ||
|
|
782
|
+
performance.mozNow ||
|
|
783
|
+
performance.msNow ||
|
|
784
|
+
performance.oNow ||
|
|
785
|
+
performance.webkitNow ||
|
|
786
|
+
function(){ return (new Date()).getTime() };
|
|
787
|
+
|
|
788
|
+
// generate timestamp or delta
|
|
789
|
+
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
790
|
+
function hrtime(previousTimestamp){
|
|
791
|
+
var clocktime = performanceNow.call(performance)*1e-3;
|
|
792
|
+
var seconds = Math.floor(clocktime);
|
|
793
|
+
var nanoseconds = Math.floor((clocktime%1)*1e9);
|
|
794
|
+
if (previousTimestamp) {
|
|
795
|
+
seconds = seconds - previousTimestamp[0];
|
|
796
|
+
nanoseconds = nanoseconds - previousTimestamp[1];
|
|
797
|
+
if (nanoseconds<0) {
|
|
798
|
+
seconds--;
|
|
799
|
+
nanoseconds += 1e9;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
return [seconds,nanoseconds]
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
var startTime = new Date();
|
|
806
|
+
function uptime() {
|
|
807
|
+
var currentTime = new Date();
|
|
808
|
+
var dif = currentTime - startTime;
|
|
809
|
+
return dif / 1000;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
var browser$1 = {
|
|
813
|
+
nextTick: nextTick,
|
|
814
|
+
title: title,
|
|
815
|
+
browser: browser,
|
|
816
|
+
env: env,
|
|
817
|
+
argv: argv,
|
|
818
|
+
version: version,
|
|
819
|
+
versions: versions,
|
|
820
|
+
on: on,
|
|
821
|
+
addListener: addListener,
|
|
822
|
+
once: once,
|
|
823
|
+
off: off,
|
|
824
|
+
removeListener: removeListener,
|
|
825
|
+
removeAllListeners: removeAllListeners,
|
|
826
|
+
emit: emit,
|
|
827
|
+
binding: binding,
|
|
828
|
+
cwd: cwd,
|
|
829
|
+
chdir: chdir,
|
|
830
|
+
umask: umask,
|
|
831
|
+
hrtime: hrtime,
|
|
832
|
+
platform: platform,
|
|
833
|
+
release: release,
|
|
834
|
+
config: config,
|
|
835
|
+
uptime: uptime
|
|
836
|
+
};
|
|
837
|
+
|
|
613
838
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
614
839
|
|
|
615
840
|
|
package/dist/Page/index.cjs
CHANGED
|
@@ -16,7 +16,6 @@ require('../Content-cjs.js');
|
|
|
16
16
|
require('../Markdown-cjs.js');
|
|
17
17
|
require('../Emphasis-cjs.js');
|
|
18
18
|
require('../index-cjs.js');
|
|
19
|
-
require('../_polyfill-node.process-cjs.js');
|
|
20
19
|
require('../Button-cjs.js');
|
|
21
20
|
require('react-router-dom');
|
|
22
21
|
require('../tslib.es6-cjs.js');
|
package/dist/Page/index.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -28,7 +28,6 @@ var Checkbox_index = require('./Checkbox/index.cjs');
|
|
|
28
28
|
var Chip = require('./Chip-cjs.js');
|
|
29
29
|
var ChipDismissible = require('./ChipDismissible-cjs.js');
|
|
30
30
|
var Chips = require('./Chips-cjs.js');
|
|
31
|
-
require('./useAssert-cjs.js');
|
|
32
31
|
var Combobox = require('./Combobox-cjs.js');
|
|
33
32
|
var ComboboxProvider = require('./ComboboxProvider-cjs.js');
|
|
34
33
|
var ConfirmationModal = require('./ConfirmationModal-cjs.js');
|
|
@@ -129,7 +128,6 @@ require('./_baseFlatten-cjs.js');
|
|
|
129
128
|
require('./_baseGet-cjs.js');
|
|
130
129
|
require('./_getTag-cjs.js');
|
|
131
130
|
require('./_baseEach-cjs.js');
|
|
132
|
-
require('./_polyfill-node.process-cjs.js');
|
|
133
131
|
require('./ComboboxContent-cjs.js');
|
|
134
132
|
require('./ComboboxContentSearch-cjs.js');
|
|
135
133
|
require('./ComboboxContentList-cjs.js');
|
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,6 @@ export { Checkbox } from './Checkbox/index.mjs';
|
|
|
26
26
|
export { C as Chip } from './Chip-es.js';
|
|
27
27
|
export { a as ChipDismissible, C as ChipSelectable } from './ChipDismissible-es.js';
|
|
28
28
|
export { C as Chips } from './Chips-es.js';
|
|
29
|
-
import './useAssert-es.js';
|
|
30
29
|
export { C as Combobox } from './Combobox-es.js';
|
|
31
30
|
export { C as ComboboxContextProvider } from './ComboboxProvider-es.js';
|
|
32
31
|
export { C as ConfirmationModal } from './ConfirmationModal-es.js';
|
|
@@ -127,7 +126,6 @@ import './_baseFlatten-es.js';
|
|
|
127
126
|
import './_baseGet-es.js';
|
|
128
127
|
import './_getTag-es.js';
|
|
129
128
|
import './_baseEach-es.js';
|
|
130
|
-
import './_polyfill-node.process-es.js';
|
|
131
129
|
import './ComboboxContent-es.js';
|
|
132
130
|
import './ComboboxContentSearch-es.js';
|
|
133
131
|
import './ComboboxContentList-es.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.40.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -534,5 +534,5 @@
|
|
|
534
534
|
"> 1%",
|
|
535
535
|
"IE 10"
|
|
536
536
|
],
|
|
537
|
-
"gitHead": "
|
|
537
|
+
"gitHead": "065748b88086d7e331a152db5e2db163c8f26f42"
|
|
538
538
|
}
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var global$1 = (typeof global !== "undefined" ? global :
|
|
4
|
-
typeof self !== "undefined" ? self :
|
|
5
|
-
typeof window !== "undefined" ? window : {});
|
|
6
|
-
|
|
7
|
-
// shim for using process in browser
|
|
8
|
-
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
9
|
-
|
|
10
|
-
function defaultSetTimout() {
|
|
11
|
-
throw new Error('setTimeout has not been defined');
|
|
12
|
-
}
|
|
13
|
-
function defaultClearTimeout () {
|
|
14
|
-
throw new Error('clearTimeout has not been defined');
|
|
15
|
-
}
|
|
16
|
-
var cachedSetTimeout = defaultSetTimout;
|
|
17
|
-
var cachedClearTimeout = defaultClearTimeout;
|
|
18
|
-
if (typeof global$1.setTimeout === 'function') {
|
|
19
|
-
cachedSetTimeout = setTimeout;
|
|
20
|
-
}
|
|
21
|
-
if (typeof global$1.clearTimeout === 'function') {
|
|
22
|
-
cachedClearTimeout = clearTimeout;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function runTimeout(fun) {
|
|
26
|
-
if (cachedSetTimeout === setTimeout) {
|
|
27
|
-
//normal enviroments in sane situations
|
|
28
|
-
return setTimeout(fun, 0);
|
|
29
|
-
}
|
|
30
|
-
// if setTimeout wasn't available but was latter defined
|
|
31
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
32
|
-
cachedSetTimeout = setTimeout;
|
|
33
|
-
return setTimeout(fun, 0);
|
|
34
|
-
}
|
|
35
|
-
try {
|
|
36
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
37
|
-
return cachedSetTimeout(fun, 0);
|
|
38
|
-
} catch(e){
|
|
39
|
-
try {
|
|
40
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
41
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
42
|
-
} catch(e){
|
|
43
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
44
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
function runClearTimeout(marker) {
|
|
51
|
-
if (cachedClearTimeout === clearTimeout) {
|
|
52
|
-
//normal enviroments in sane situations
|
|
53
|
-
return clearTimeout(marker);
|
|
54
|
-
}
|
|
55
|
-
// if clearTimeout wasn't available but was latter defined
|
|
56
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
57
|
-
cachedClearTimeout = clearTimeout;
|
|
58
|
-
return clearTimeout(marker);
|
|
59
|
-
}
|
|
60
|
-
try {
|
|
61
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
62
|
-
return cachedClearTimeout(marker);
|
|
63
|
-
} catch (e){
|
|
64
|
-
try {
|
|
65
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
66
|
-
return cachedClearTimeout.call(null, marker);
|
|
67
|
-
} catch (e){
|
|
68
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
69
|
-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
70
|
-
return cachedClearTimeout.call(this, marker);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
var queue = [];
|
|
78
|
-
var draining = false;
|
|
79
|
-
var currentQueue;
|
|
80
|
-
var queueIndex = -1;
|
|
81
|
-
|
|
82
|
-
function cleanUpNextTick() {
|
|
83
|
-
if (!draining || !currentQueue) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
draining = false;
|
|
87
|
-
if (currentQueue.length) {
|
|
88
|
-
queue = currentQueue.concat(queue);
|
|
89
|
-
} else {
|
|
90
|
-
queueIndex = -1;
|
|
91
|
-
}
|
|
92
|
-
if (queue.length) {
|
|
93
|
-
drainQueue();
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function drainQueue() {
|
|
98
|
-
if (draining) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
102
|
-
draining = true;
|
|
103
|
-
|
|
104
|
-
var len = queue.length;
|
|
105
|
-
while(len) {
|
|
106
|
-
currentQueue = queue;
|
|
107
|
-
queue = [];
|
|
108
|
-
while (++queueIndex < len) {
|
|
109
|
-
if (currentQueue) {
|
|
110
|
-
currentQueue[queueIndex].run();
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
queueIndex = -1;
|
|
114
|
-
len = queue.length;
|
|
115
|
-
}
|
|
116
|
-
currentQueue = null;
|
|
117
|
-
draining = false;
|
|
118
|
-
runClearTimeout(timeout);
|
|
119
|
-
}
|
|
120
|
-
function nextTick(fun) {
|
|
121
|
-
var args = new Array(arguments.length - 1);
|
|
122
|
-
if (arguments.length > 1) {
|
|
123
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
124
|
-
args[i - 1] = arguments[i];
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
queue.push(new Item(fun, args));
|
|
128
|
-
if (queue.length === 1 && !draining) {
|
|
129
|
-
runTimeout(drainQueue);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
// v8 likes predictible objects
|
|
133
|
-
function Item(fun, array) {
|
|
134
|
-
this.fun = fun;
|
|
135
|
-
this.array = array;
|
|
136
|
-
}
|
|
137
|
-
Item.prototype.run = function () {
|
|
138
|
-
this.fun.apply(null, this.array);
|
|
139
|
-
};
|
|
140
|
-
var title = 'browser';
|
|
141
|
-
var platform = 'browser';
|
|
142
|
-
var browser = true;
|
|
143
|
-
var env = {};
|
|
144
|
-
var argv = [];
|
|
145
|
-
var version = ''; // empty string to avoid regexp issues
|
|
146
|
-
var versions = {};
|
|
147
|
-
var release = {};
|
|
148
|
-
var config = {};
|
|
149
|
-
|
|
150
|
-
function noop() {}
|
|
151
|
-
|
|
152
|
-
var on = noop;
|
|
153
|
-
var addListener = noop;
|
|
154
|
-
var once = noop;
|
|
155
|
-
var off = noop;
|
|
156
|
-
var removeListener = noop;
|
|
157
|
-
var removeAllListeners = noop;
|
|
158
|
-
var emit = noop;
|
|
159
|
-
|
|
160
|
-
function binding(name) {
|
|
161
|
-
throw new Error('process.binding is not supported');
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function cwd () { return '/' }
|
|
165
|
-
function chdir (dir) {
|
|
166
|
-
throw new Error('process.chdir is not supported');
|
|
167
|
-
}function umask() { return 0; }
|
|
168
|
-
|
|
169
|
-
// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
170
|
-
var performance = global$1.performance || {};
|
|
171
|
-
var performanceNow =
|
|
172
|
-
performance.now ||
|
|
173
|
-
performance.mozNow ||
|
|
174
|
-
performance.msNow ||
|
|
175
|
-
performance.oNow ||
|
|
176
|
-
performance.webkitNow ||
|
|
177
|
-
function(){ return (new Date()).getTime() };
|
|
178
|
-
|
|
179
|
-
// generate timestamp or delta
|
|
180
|
-
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
181
|
-
function hrtime(previousTimestamp){
|
|
182
|
-
var clocktime = performanceNow.call(performance)*1e-3;
|
|
183
|
-
var seconds = Math.floor(clocktime);
|
|
184
|
-
var nanoseconds = Math.floor((clocktime%1)*1e9);
|
|
185
|
-
if (previousTimestamp) {
|
|
186
|
-
seconds = seconds - previousTimestamp[0];
|
|
187
|
-
nanoseconds = nanoseconds - previousTimestamp[1];
|
|
188
|
-
if (nanoseconds<0) {
|
|
189
|
-
seconds--;
|
|
190
|
-
nanoseconds += 1e9;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
return [seconds,nanoseconds]
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
var startTime = new Date();
|
|
197
|
-
function uptime() {
|
|
198
|
-
var currentTime = new Date();
|
|
199
|
-
var dif = currentTime - startTime;
|
|
200
|
-
return dif / 1000;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
var browser$1 = {
|
|
204
|
-
nextTick: nextTick,
|
|
205
|
-
title: title,
|
|
206
|
-
browser: browser,
|
|
207
|
-
env: env,
|
|
208
|
-
argv: argv,
|
|
209
|
-
version: version,
|
|
210
|
-
versions: versions,
|
|
211
|
-
on: on,
|
|
212
|
-
addListener: addListener,
|
|
213
|
-
once: once,
|
|
214
|
-
off: off,
|
|
215
|
-
removeListener: removeListener,
|
|
216
|
-
removeAllListeners: removeAllListeners,
|
|
217
|
-
emit: emit,
|
|
218
|
-
binding: binding,
|
|
219
|
-
cwd: cwd,
|
|
220
|
-
chdir: chdir,
|
|
221
|
-
umask: umask,
|
|
222
|
-
hrtime: hrtime,
|
|
223
|
-
platform: platform,
|
|
224
|
-
release: release,
|
|
225
|
-
config: config,
|
|
226
|
-
uptime: uptime
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
var _polyfillNode_process = /*#__PURE__*/Object.freeze({
|
|
230
|
-
__proto__: null,
|
|
231
|
-
addListener: addListener,
|
|
232
|
-
argv: argv,
|
|
233
|
-
binding: binding,
|
|
234
|
-
browser: browser,
|
|
235
|
-
chdir: chdir,
|
|
236
|
-
config: config,
|
|
237
|
-
cwd: cwd,
|
|
238
|
-
default: browser$1,
|
|
239
|
-
emit: emit,
|
|
240
|
-
env: env,
|
|
241
|
-
hrtime: hrtime,
|
|
242
|
-
nextTick: nextTick,
|
|
243
|
-
off: off,
|
|
244
|
-
on: on,
|
|
245
|
-
once: once,
|
|
246
|
-
platform: platform,
|
|
247
|
-
release: release,
|
|
248
|
-
removeAllListeners: removeAllListeners,
|
|
249
|
-
removeListener: removeListener,
|
|
250
|
-
title: title,
|
|
251
|
-
umask: umask,
|
|
252
|
-
uptime: uptime,
|
|
253
|
-
version: version,
|
|
254
|
-
versions: versions
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
exports._polyfillNode_process = _polyfillNode_process;
|
|
258
|
-
exports.browser$1 = browser$1;
|