browsed 0.3.0 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +27 -27
  3. data/browsed.gemspec +2 -3
  4. data/lib/browsed.rb +1 -1
  5. data/lib/browsed/chrome.rb +2 -2
  6. data/lib/browsed/client.rb +2 -2
  7. data/lib/browsed/firefox.rb +2 -2
  8. data/lib/browsed/version.rb +1 -1
  9. metadata +11 -164
  10. data/lib/browsed/proxies/proxy-chain-server/node_modules/.bin/portastic +0 -1
  11. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/LICENSE +0 -21
  12. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/README.md +0 -57
  13. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/changelog.md +0 -1
  14. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.core.js +0 -3824
  15. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.core.min.js +0 -31
  16. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.js +0 -5666
  17. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.min.js +0 -31
  18. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/any.js +0 -21
  19. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/assert.js +0 -55
  20. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/async.js +0 -165
  21. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/bind.js +0 -67
  22. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/bluebird.js +0 -11
  23. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/call_get.js +0 -123
  24. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/cancel.js +0 -129
  25. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/catch_filter.js +0 -42
  26. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/context.js +0 -69
  27. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/debuggability.js +0 -934
  28. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/direct_resolve.js +0 -46
  29. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/each.js +0 -30
  30. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/errors.js +0 -116
  31. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/es5.js +0 -80
  32. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/filter.js +0 -12
  33. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/finally.js +0 -146
  34. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/generators.js +0 -223
  35. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/join.js +0 -168
  36. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/map.js +0 -168
  37. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/method.js +0 -55
  38. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/nodeback.js +0 -51
  39. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/nodeify.js +0 -58
  40. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/promise.js +0 -789
  41. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/promise_array.js +0 -185
  42. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/promisify.js +0 -314
  43. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/props.js +0 -118
  44. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/queue.js +0 -73
  45. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/race.js +0 -49
  46. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/reduce.js +0 -172
  47. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/schedule.js +0 -62
  48. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/settle.js +0 -43
  49. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/some.js +0 -148
  50. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/synchronous_inspection.js +0 -103
  51. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/thenables.js +0 -86
  52. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/timers.js +0 -93
  53. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/using.js +0 -226
  54. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/util.js +0 -389
  55. data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/package.json +0 -102
  56. data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/CHANGELOG.md +0 -408
  57. data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/LICENSE +0 -22
  58. data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/Readme.md +0 -428
  59. data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/index.js +0 -1224
  60. data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/package.json +0 -70
  61. data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/typings/index.d.ts +0 -310
  62. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.coveralls.yml +0 -1
  63. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.eslintrc +0 -11
  64. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.npmignore +0 -9
  65. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.travis.yml +0 -14
  66. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/CHANGELOG.md +0 -362
  67. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/LICENSE +0 -19
  68. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/Makefile +0 -50
  69. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/README.md +0 -312
  70. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/component.json +0 -19
  71. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/karma.conf.js +0 -70
  72. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/node.js +0 -1
  73. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/package.json +0 -88
  74. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/browser.js +0 -185
  75. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/debug.js +0 -202
  76. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/index.js +0 -10
  77. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/inspector-log.js +0 -15
  78. data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/node.js +0 -248
  79. data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/index.js +0 -152
  80. data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/license.md +0 -21
  81. data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/package.json +0 -69
  82. data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/readme.md +0 -51
  83. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/LICENSE +0 -13
  84. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/README.md +0 -148
  85. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/bin/portastic +0 -65
  86. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/history.md +0 -7
  87. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/index.js +0 -4
  88. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/lib/monitor.js +0 -59
  89. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/lib/portastic.js +0 -167
  90. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/LICENSE +0 -21
  91. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/README.md +0 -677
  92. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/changelog.md +0 -1730
  93. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/browser/bluebird.js +0 -4892
  94. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/browser/bluebird.min.js +0 -31
  95. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/any.js +0 -21
  96. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/assert.js +0 -55
  97. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/async.js +0 -150
  98. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/bind.js +0 -72
  99. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/bluebird.js +0 -11
  100. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/call_get.js +0 -123
  101. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/cancel.js +0 -48
  102. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/captured_trace.js +0 -493
  103. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/catch_filter.js +0 -66
  104. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/context.js +0 -38
  105. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/debuggability.js +0 -162
  106. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/direct_resolve.js +0 -63
  107. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/each.js +0 -12
  108. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/errors.js +0 -111
  109. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/es5.js +0 -80
  110. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/filter.js +0 -12
  111. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/finally.js +0 -98
  112. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/generators.js +0 -136
  113. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/join.js +0 -107
  114. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/map.js +0 -133
  115. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/method.js +0 -44
  116. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/nodeify.js +0 -59
  117. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/progress.js +0 -76
  118. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promise.js +0 -759
  119. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promise_array.js +0 -142
  120. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promise_resolver.js +0 -123
  121. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promisify.js +0 -307
  122. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/props.js +0 -79
  123. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/queue.js +0 -90
  124. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/race.js +0 -47
  125. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/reduce.js +0 -148
  126. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/schedule.js +0 -35
  127. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/settle.js +0 -40
  128. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/some.js +0 -125
  129. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/synchronous_inspection.js +0 -94
  130. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/thenables.js +0 -84
  131. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/timers.js +0 -64
  132. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/using.js +0 -213
  133. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/util.js +0 -321
  134. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/package.json +0 -103
  135. data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/package.json +0 -69
  136. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/CHANGELOG.md +0 -109
  137. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/LICENSE +0 -201
  138. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/README.md +0 -278
  139. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/anonymize_proxy.js +0 -100
  140. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_base.js +0 -319
  141. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_custom_response.js +0 -96
  142. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_forward.js +0 -173
  143. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_tunnel_chain.js +0 -132
  144. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_tunnel_direct.js +0 -89
  145. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_tunnel_tcp_chain.js +0 -271
  146. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/index.js +0 -26
  147. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/run_locally.js +0 -66
  148. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/server.js +0 -595
  149. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/tcp_tunnel.js +0 -138
  150. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/testing_tcp_service.js +0 -37
  151. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/tools.js +0 -220
  152. data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/package.json +0 -104
  153. data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/LICENSE +0 -23
  154. data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/README.md +0 -28
  155. data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/package.json +0 -81
  156. data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/underscore-min.js +0 -5
  157. data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/underscore-min.js.map +0 -1
  158. data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/underscore.js +0 -1692
  159. data/lib/browsed/proxies/proxy-chain-server/package-lock.json +0 -63
  160. data/lib/browsed/proxies/proxy-chain-server/package.json +0 -15
  161. data/lib/browsed/proxies/proxy-chain-server/server.js +0 -25
  162. data/lib/browsed/proxies/proxy_chain.rb +0 -46
@@ -1,321 +0,0 @@
1
- "use strict";
2
- var es5 = require("./es5.js");
3
- var canEvaluate = typeof navigator == "undefined";
4
- var haveGetters = (function(){
5
- try {
6
- var o = {};
7
- es5.defineProperty(o, "f", {
8
- get: function () {
9
- return 3;
10
- }
11
- });
12
- return o.f === 3;
13
- }
14
- catch (e) {
15
- return false;
16
- }
17
-
18
- })();
19
-
20
- var errorObj = {e: {}};
21
- var tryCatchTarget;
22
- function tryCatcher() {
23
- try {
24
- var target = tryCatchTarget;
25
- tryCatchTarget = null;
26
- return target.apply(this, arguments);
27
- } catch (e) {
28
- errorObj.e = e;
29
- return errorObj;
30
- }
31
- }
32
- function tryCatch(fn) {
33
- tryCatchTarget = fn;
34
- return tryCatcher;
35
- }
36
-
37
- var inherits = function(Child, Parent) {
38
- var hasProp = {}.hasOwnProperty;
39
-
40
- function T() {
41
- this.constructor = Child;
42
- this.constructor$ = Parent;
43
- for (var propertyName in Parent.prototype) {
44
- if (hasProp.call(Parent.prototype, propertyName) &&
45
- propertyName.charAt(propertyName.length-1) !== "$"
46
- ) {
47
- this[propertyName + "$"] = Parent.prototype[propertyName];
48
- }
49
- }
50
- }
51
- T.prototype = Parent.prototype;
52
- Child.prototype = new T();
53
- return Child.prototype;
54
- };
55
-
56
-
57
- function isPrimitive(val) {
58
- return val == null || val === true || val === false ||
59
- typeof val === "string" || typeof val === "number";
60
-
61
- }
62
-
63
- function isObject(value) {
64
- return !isPrimitive(value);
65
- }
66
-
67
- function maybeWrapAsError(maybeError) {
68
- if (!isPrimitive(maybeError)) return maybeError;
69
-
70
- return new Error(safeToString(maybeError));
71
- }
72
-
73
- function withAppended(target, appendee) {
74
- var len = target.length;
75
- var ret = new Array(len + 1);
76
- var i;
77
- for (i = 0; i < len; ++i) {
78
- ret[i] = target[i];
79
- }
80
- ret[i] = appendee;
81
- return ret;
82
- }
83
-
84
- function getDataPropertyOrDefault(obj, key, defaultValue) {
85
- if (es5.isES5) {
86
- var desc = Object.getOwnPropertyDescriptor(obj, key);
87
-
88
- if (desc != null) {
89
- return desc.get == null && desc.set == null
90
- ? desc.value
91
- : defaultValue;
92
- }
93
- } else {
94
- return {}.hasOwnProperty.call(obj, key) ? obj[key] : undefined;
95
- }
96
- }
97
-
98
- function notEnumerableProp(obj, name, value) {
99
- if (isPrimitive(obj)) return obj;
100
- var descriptor = {
101
- value: value,
102
- configurable: true,
103
- enumerable: false,
104
- writable: true
105
- };
106
- es5.defineProperty(obj, name, descriptor);
107
- return obj;
108
- }
109
-
110
- function thrower(r) {
111
- throw r;
112
- }
113
-
114
- var inheritedDataKeys = (function() {
115
- var excludedPrototypes = [
116
- Array.prototype,
117
- Object.prototype,
118
- Function.prototype
119
- ];
120
-
121
- var isExcludedProto = function(val) {
122
- for (var i = 0; i < excludedPrototypes.length; ++i) {
123
- if (excludedPrototypes[i] === val) {
124
- return true;
125
- }
126
- }
127
- return false;
128
- };
129
-
130
- if (es5.isES5) {
131
- var getKeys = Object.getOwnPropertyNames;
132
- return function(obj) {
133
- var ret = [];
134
- var visitedKeys = Object.create(null);
135
- while (obj != null && !isExcludedProto(obj)) {
136
- var keys;
137
- try {
138
- keys = getKeys(obj);
139
- } catch (e) {
140
- return ret;
141
- }
142
- for (var i = 0; i < keys.length; ++i) {
143
- var key = keys[i];
144
- if (visitedKeys[key]) continue;
145
- visitedKeys[key] = true;
146
- var desc = Object.getOwnPropertyDescriptor(obj, key);
147
- if (desc != null && desc.get == null && desc.set == null) {
148
- ret.push(key);
149
- }
150
- }
151
- obj = es5.getPrototypeOf(obj);
152
- }
153
- return ret;
154
- };
155
- } else {
156
- var hasProp = {}.hasOwnProperty;
157
- return function(obj) {
158
- if (isExcludedProto(obj)) return [];
159
- var ret = [];
160
-
161
- /*jshint forin:false */
162
- enumeration: for (var key in obj) {
163
- if (hasProp.call(obj, key)) {
164
- ret.push(key);
165
- } else {
166
- for (var i = 0; i < excludedPrototypes.length; ++i) {
167
- if (hasProp.call(excludedPrototypes[i], key)) {
168
- continue enumeration;
169
- }
170
- }
171
- ret.push(key);
172
- }
173
- }
174
- return ret;
175
- };
176
- }
177
-
178
- })();
179
-
180
- var thisAssignmentPattern = /this\s*\.\s*\S+\s*=/;
181
- function isClass(fn) {
182
- try {
183
- if (typeof fn === "function") {
184
- var keys = es5.names(fn.prototype);
185
-
186
- var hasMethods = es5.isES5 && keys.length > 1;
187
- var hasMethodsOtherThanConstructor = keys.length > 0 &&
188
- !(keys.length === 1 && keys[0] === "constructor");
189
- var hasThisAssignmentAndStaticMethods =
190
- thisAssignmentPattern.test(fn + "") && es5.names(fn).length > 0;
191
-
192
- if (hasMethods || hasMethodsOtherThanConstructor ||
193
- hasThisAssignmentAndStaticMethods) {
194
- return true;
195
- }
196
- }
197
- return false;
198
- } catch (e) {
199
- return false;
200
- }
201
- }
202
-
203
- function toFastProperties(obj) {
204
- /*jshint -W027,-W055,-W031*/
205
- function f() {}
206
- f.prototype = obj;
207
- var l = 8;
208
- while (l--) new f();
209
- return obj;
210
- eval(obj);
211
- }
212
-
213
- var rident = /^[a-z$_][a-z$_0-9]*$/i;
214
- function isIdentifier(str) {
215
- return rident.test(str);
216
- }
217
-
218
- function filledRange(count, prefix, suffix) {
219
- var ret = new Array(count);
220
- for(var i = 0; i < count; ++i) {
221
- ret[i] = prefix + i + suffix;
222
- }
223
- return ret;
224
- }
225
-
226
- function safeToString(obj) {
227
- try {
228
- return obj + "";
229
- } catch (e) {
230
- return "[no string representation]";
231
- }
232
- }
233
-
234
- function markAsOriginatingFromRejection(e) {
235
- try {
236
- notEnumerableProp(e, "isOperational", true);
237
- }
238
- catch(ignore) {}
239
- }
240
-
241
- function originatesFromRejection(e) {
242
- if (e == null) return false;
243
- return ((e instanceof Error["__BluebirdErrorTypes__"].OperationalError) ||
244
- e["isOperational"] === true);
245
- }
246
-
247
- function canAttachTrace(obj) {
248
- return obj instanceof Error && es5.propertyIsWritable(obj, "stack");
249
- }
250
-
251
- var ensureErrorObject = (function() {
252
- if (!("stack" in new Error())) {
253
- return function(value) {
254
- if (canAttachTrace(value)) return value;
255
- try {throw new Error(safeToString(value));}
256
- catch(err) {return err;}
257
- };
258
- } else {
259
- return function(value) {
260
- if (canAttachTrace(value)) return value;
261
- return new Error(safeToString(value));
262
- };
263
- }
264
- })();
265
-
266
- function classString(obj) {
267
- return {}.toString.call(obj);
268
- }
269
-
270
- function copyDescriptors(from, to, filter) {
271
- var keys = es5.names(from);
272
- for (var i = 0; i < keys.length; ++i) {
273
- var key = keys[i];
274
- if (filter(key)) {
275
- try {
276
- es5.defineProperty(to, key, es5.getDescriptor(from, key));
277
- } catch (ignore) {}
278
- }
279
- }
280
- }
281
-
282
- var ret = {
283
- isClass: isClass,
284
- isIdentifier: isIdentifier,
285
- inheritedDataKeys: inheritedDataKeys,
286
- getDataPropertyOrDefault: getDataPropertyOrDefault,
287
- thrower: thrower,
288
- isArray: es5.isArray,
289
- haveGetters: haveGetters,
290
- notEnumerableProp: notEnumerableProp,
291
- isPrimitive: isPrimitive,
292
- isObject: isObject,
293
- canEvaluate: canEvaluate,
294
- errorObj: errorObj,
295
- tryCatch: tryCatch,
296
- inherits: inherits,
297
- withAppended: withAppended,
298
- maybeWrapAsError: maybeWrapAsError,
299
- toFastProperties: toFastProperties,
300
- filledRange: filledRange,
301
- toString: safeToString,
302
- canAttachTrace: canAttachTrace,
303
- ensureErrorObject: ensureErrorObject,
304
- originatesFromRejection: originatesFromRejection,
305
- markAsOriginatingFromRejection: markAsOriginatingFromRejection,
306
- classString: classString,
307
- copyDescriptors: copyDescriptors,
308
- hasDevTools: typeof chrome !== "undefined" && chrome &&
309
- typeof chrome.loadTimes === "function",
310
- isNode: typeof process !== "undefined" &&
311
- classString(process).toLowerCase() === "[object process]"
312
- };
313
- ret.isRecentNode = ret.isNode && (function() {
314
- var version = process.versions.node.split(".").map(Number);
315
- return (version[0] === 0 && version[1] > 10) || (version[0] > 0);
316
- })();
317
-
318
- if (ret.isNode) ret.toFastProperties(process);
319
-
320
- try {throw new Error(); } catch (e) {ret.lastLineError = e;}
321
- module.exports = ret;
@@ -1,103 +0,0 @@
1
- {
2
- "_from": "bluebird@^2.9.34",
3
- "_id": "bluebird@2.11.0",
4
- "_inBundle": false,
5
- "_integrity": "sha1-U0uQM8AiyVecVro7Plpcqvu2UOE=",
6
- "_location": "/portastic/bluebird",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "bluebird@^2.9.34",
12
- "name": "bluebird",
13
- "escapedName": "bluebird",
14
- "rawSpec": "^2.9.34",
15
- "saveSpec": null,
16
- "fetchSpec": "^2.9.34"
17
- },
18
- "_requiredBy": [
19
- "/portastic"
20
- ],
21
- "_resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.11.0.tgz",
22
- "_shasum": "534b9033c022c9579c56ba3b3e5a5caafbb650e1",
23
- "_spec": "bluebird@^2.9.34",
24
- "_where": "/Users/sebastianjohnsson/Programming/Javascript/proxy-chain-server/node_modules/portastic",
25
- "author": {
26
- "name": "Petka Antonov",
27
- "email": "petka_antonov@hotmail.com",
28
- "url": "http://github.com/petkaantonov/"
29
- },
30
- "browser": "./js/browser/bluebird.js",
31
- "bugs": {
32
- "url": "http://github.com/petkaantonov/bluebird/issues"
33
- },
34
- "bundleDependencies": false,
35
- "deprecated": false,
36
- "description": "Full featured Promises/A+ implementation with exceptionally good performance",
37
- "devDependencies": {
38
- "acorn": "~0.6.0",
39
- "baconjs": "^0.7.43",
40
- "bluebird": "^2.9.2",
41
- "body-parser": "^1.10.2",
42
- "browserify": "^8.1.1",
43
- "cli-table": "~0.3.1",
44
- "co": "^4.2.0",
45
- "cross-spawn": "^0.2.3",
46
- "glob": "^4.3.2",
47
- "grunt-saucelabs": "~8.4.1",
48
- "highland": "^2.3.0",
49
- "istanbul": "^0.3.5",
50
- "jshint": "^2.6.0",
51
- "jshint-stylish": "~0.2.0",
52
- "kefir": "^2.4.1",
53
- "mkdirp": "~0.5.0",
54
- "mocha": "~2.1",
55
- "open": "~0.0.5",
56
- "optimist": "~0.6.1",
57
- "rimraf": "~2.2.6",
58
- "rx": "^2.3.25",
59
- "serve-static": "^1.7.1",
60
- "sinon": "~1.7.3",
61
- "uglify-js": "~2.4.16"
62
- },
63
- "files": [
64
- "js/browser",
65
- "js/main",
66
- "js/zalgo",
67
- "zalgo.js"
68
- ],
69
- "homepage": "https://github.com/petkaantonov/bluebird",
70
- "keywords": [
71
- "promise",
72
- "performance",
73
- "promises",
74
- "promises-a",
75
- "promises-aplus",
76
- "async",
77
- "await",
78
- "deferred",
79
- "deferreds",
80
- "future",
81
- "flow control",
82
- "dsl",
83
- "fluent interface",
84
- "parallel",
85
- "thread",
86
- "concurrency"
87
- ],
88
- "license": "MIT",
89
- "main": "./js/main/bluebird.js",
90
- "name": "bluebird",
91
- "repository": {
92
- "type": "git",
93
- "url": "git://github.com/petkaantonov/bluebird.git"
94
- },
95
- "scripts": {
96
- "generate-browser-core": "node tools/build.js --features=core --no-debug --main --zalgo --browser --minify && mv js/browser/bluebird.js js/browser/bluebird.core.js && mv js/browser/bluebird.min.js js/browser/bluebird.core.min.js",
97
- "istanbul": "istanbul",
98
- "lint": "node scripts/jshint.js",
99
- "prepublish": "node tools/build.js --no-debug --main --zalgo --browser --minify",
100
- "test": "node tools/test.js"
101
- },
102
- "version": "2.11.0"
103
- }
@@ -1,69 +0,0 @@
1
- {
2
- "_from": "portastic@^1.0.1",
3
- "_id": "portastic@1.0.1",
4
- "_inBundle": false,
5
- "_integrity": "sha1-HJgF1D+uj2pAzw28d5QJGi6dDSo=",
6
- "_location": "/portastic",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "portastic@^1.0.1",
12
- "name": "portastic",
13
- "escapedName": "portastic",
14
- "rawSpec": "^1.0.1",
15
- "saveSpec": null,
16
- "fetchSpec": "^1.0.1"
17
- },
18
- "_requiredBy": [
19
- "/proxy-chain"
20
- ],
21
- "_resolved": "https://registry.npmjs.org/portastic/-/portastic-1.0.1.tgz",
22
- "_shasum": "1c9805d43fae8f6a40cf0dbc7794091a2e9d0d2a",
23
- "_spec": "portastic@^1.0.1",
24
- "_where": "/Users/sebastianjohnsson/Programming/Javascript/proxy-chain-server/node_modules/proxy-chain",
25
- "author": {
26
- "name": "Alan Hoffmeister",
27
- "email": "alanhoffmeister@gmail.com"
28
- },
29
- "bin": {
30
- "portastic": "./bin/portastic"
31
- },
32
- "bugs": {
33
- "url": "https://github.com/alanhoff/node-portastic/issues"
34
- },
35
- "bundleDependencies": false,
36
- "dependencies": {
37
- "bluebird": "^2.9.34",
38
- "commander": "^2.8.1",
39
- "debug": "^2.2.0"
40
- },
41
- "deprecated": false,
42
- "description": "Pure javascript swiss knife for port management",
43
- "devDependencies": {
44
- "chai": "^3.2.0",
45
- "coveralls": "^2.11.4",
46
- "istanbul": "^0.3.17",
47
- "mocha": "^2.2.5"
48
- },
49
- "homepage": "https://github.com/alanhoff/node-portastic#readme",
50
- "keywords": [
51
- "port",
52
- "management",
53
- "open ports",
54
- "find open",
55
- "interface"
56
- ],
57
- "license": "ISC",
58
- "main": "index.js",
59
- "name": "portastic",
60
- "repository": {
61
- "type": "git",
62
- "url": "git+https://github.com/alanhoff/node-portastic.git"
63
- },
64
- "scripts": {
65
- "test": "mocha --tdd --bail test/**/*-test.js",
66
- "travis": "istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- -R spec test/**/*-test.js && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf ./coverage"
67
- },
68
- "version": "1.0.1"
69
- }