browsed 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +2 -2
- data/README.md +12 -17
- data/bin/browse +13 -10
- data/lib/browsed.rb +9 -2
- data/lib/browsed/browser.rb +82 -0
- data/lib/browsed/chrome.rb +21 -12
- data/lib/browsed/client.rb +48 -130
- data/lib/browsed/constants.rb +7 -1
- data/lib/browsed/errors.rb +1 -0
- data/lib/browsed/extensions/hash.rb +27 -0
- data/lib/browsed/firefox.rb +18 -17
- data/lib/browsed/manager.rb +5 -5
- data/lib/browsed/{poltergeist.rb → phantomjs.rb} +2 -2
- data/lib/browsed/proxies.rb +26 -0
- data/lib/browsed/{extensions → proxies}/chrome/proxy_authentication.rb +3 -3
- data/lib/browsed/proxies/proxy-chain-server/node_modules/.bin/portastic +1 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/LICENSE +21 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/README.md +57 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/changelog.md +1 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.core.js +3824 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.core.min.js +31 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.js +5666 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.min.js +31 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/any.js +21 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/assert.js +55 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/async.js +165 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/bind.js +67 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/bluebird.js +11 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/call_get.js +123 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/cancel.js +129 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/catch_filter.js +42 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/context.js +69 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/debuggability.js +934 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/direct_resolve.js +46 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/each.js +30 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/errors.js +116 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/es5.js +80 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/filter.js +12 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/finally.js +146 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/generators.js +223 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/join.js +168 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/map.js +168 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/method.js +55 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/nodeback.js +51 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/nodeify.js +58 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/promise.js +789 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/promise_array.js +185 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/promisify.js +314 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/props.js +118 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/queue.js +73 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/race.js +49 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/reduce.js +172 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/schedule.js +62 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/settle.js +43 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/some.js +148 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/synchronous_inspection.js +103 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/thenables.js +86 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/timers.js +93 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/using.js +226 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/util.js +389 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/package.json +102 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/CHANGELOG.md +408 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/LICENSE +22 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/Readme.md +428 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/index.js +1224 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/package.json +70 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/typings/index.d.ts +310 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.coveralls.yml +1 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.eslintrc +11 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.npmignore +9 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.travis.yml +14 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/CHANGELOG.md +362 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/LICENSE +19 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/Makefile +50 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/README.md +312 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/component.json +19 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/karma.conf.js +70 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/node.js +1 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/package.json +88 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/browser.js +185 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/debug.js +202 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/index.js +10 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/inspector-log.js +15 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/node.js +248 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/index.js +152 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/license.md +21 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/package.json +69 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/readme.md +51 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/LICENSE +13 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/README.md +148 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/bin/portastic +65 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/history.md +7 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/index.js +4 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/lib/monitor.js +59 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/lib/portastic.js +167 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/LICENSE +21 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/README.md +677 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/changelog.md +1730 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/browser/bluebird.js +4892 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/browser/bluebird.min.js +31 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/any.js +21 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/assert.js +55 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/async.js +150 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/bind.js +72 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/bluebird.js +11 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/call_get.js +123 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/cancel.js +48 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/captured_trace.js +493 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/catch_filter.js +66 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/context.js +38 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/debuggability.js +162 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/direct_resolve.js +63 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/each.js +12 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/errors.js +111 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/es5.js +80 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/filter.js +12 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/finally.js +98 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/generators.js +136 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/join.js +107 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/map.js +133 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/method.js +44 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/nodeify.js +59 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/progress.js +76 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promise.js +759 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promise_array.js +142 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promise_resolver.js +123 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promisify.js +307 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/props.js +79 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/queue.js +90 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/race.js +47 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/reduce.js +148 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/schedule.js +35 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/settle.js +40 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/some.js +125 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/synchronous_inspection.js +94 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/thenables.js +84 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/timers.js +64 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/using.js +213 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/util.js +321 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/package.json +103 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/package.json +69 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/CHANGELOG.md +109 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/LICENSE +201 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/README.md +278 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/anonymize_proxy.js +100 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_base.js +319 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_custom_response.js +96 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_forward.js +173 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_tunnel_chain.js +132 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_tunnel_direct.js +89 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_tunnel_tcp_chain.js +271 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/index.js +26 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/run_locally.js +66 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/server.js +595 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/tcp_tunnel.js +138 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/testing_tcp_service.js +37 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/tools.js +220 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/package.json +104 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/LICENSE +23 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/README.md +28 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/package.json +81 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/underscore-min.js +5 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/underscore-min.js.map +1 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/underscore.js +1692 -0
- data/lib/browsed/proxies/proxy-chain-server/package-lock.json +63 -0
- data/lib/browsed/proxies/proxy-chain-server/package.json +15 -0
- data/lib/browsed/proxies/proxy-chain-server/server.js +25 -0
- data/lib/browsed/proxies/proxy_chain.rb +36 -0
- data/lib/browsed/version.rb +1 -1
- metadata +160 -4
@@ -0,0 +1,321 @@
|
|
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;
|
@@ -0,0 +1,103 @@
|
|
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
|
+
}
|
@@ -0,0 +1,69 @@
|
|
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
|
+
}
|