text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```javascript
/**
*
* -
* create at: 2016/05/25
*/
let logger;
const fs = require('fs');
const path = require('path');
const CONF = require('./config');
const UNZIP = require('extract-zip');
class PlugStore {
constructor(electron, app, mainWindow) {
logger = new electron.Logger('PlugStore');
this.lis... | /content/code_sandbox/modules/plugStore.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 886 |
```javascript
/**
*
* 2016/04/28
* <path_to_url
*/
'use strict';
const fs = require('fs'),
path = require('path'),
CONF = require('./config'),
Datastore = require('nedb');
var logger;
class Cache {
/**
*
* @param {Object} electron electron
* @return {[type]} [description]
*/
... | /content/code_sandbox/modules/cache.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 914 |
```javascript
/**
*
*/
'use strict';
class Menubar {
constructor(electron, app, mainWindow) {
const Menu = electron.Menu;
const Tray = electron.Tray;
const nativeImage = electron.nativeImage;
const path = require('path');
//
Menu.setApplicationMenu(Menu.buildFromTemplate([]));
// ... | /content/code_sandbox/modules/menubar.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,930 |
```javascript
/**
* ::
* ?
* 2016/04/26
* 2016/04/28
* <path_to_url
*/
'use strict';
const fs = require('fs'),
path = require('path');
class Conf {
constructor() {
//
let _oldPath = path.join(process.env.HOME || process.env.LOCALAPPPATH || process.cwd() || '.', '.antSword', 'shell.db');
// ... | /content/code_sandbox/modules/config.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 476 |
```javascript
module.exports = ForeverAgent
ForeverAgent.SSL = ForeverAgentSSL
var util = require('util')
, Agent = require('http').Agent
, net = require('net')
, tls = require('tls')
, AgentSSL = require('https').Agent
function getConnectionName(host, port) {
var name = ''
if (typeof host === 'string... | /content/code_sandbox/node_modules/forever-agent/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,077 |
```javascript
module.exports = function (args, opts) {
if (!opts) opts = {};
var flags = { bools : {}, strings : {}, unknownFn: null };
if (typeof opts['unknown'] === 'function') {
flags.unknownFn = opts['unknown'];
}
if (typeof opts['boolean'] === 'boolean' && opts['boolean']) {
... | /content/code_sandbox/node_modules/minimist/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,888 |
```markdown
# minimist
parse argument options
This module is the guts of optimist's argument parser without all the
fanciful decoration.
# example
``` js
var argv = require('minimist')(process.argv.slice(2));
console.log(argv);
```
```
$ node example/parse.js -a beep -b boop
{ _: [], a: 'beep', b: 'boop' }
```
``... | /content/code_sandbox/node_modules/minimist/readme.markdown | markdown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 696 |
```javascript
var argv = require('../')(process.argv.slice(2));
console.log(argv);
``` | /content/code_sandbox/node_modules/minimist/example/parse.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 17 |
```javascript
var parse = require('../');
var test = require('tape');
test('proto pollution', function (t) {
var argv = parse(['--__proto__.x','123']);
t.equal({}.x, undefined);
t.equal(argv.__proto__.x, undefined);
t.equal(argv.x, undefined);
t.end();
});
test('proto pollution (array)', function ... | /content/code_sandbox/node_modules/minimist/test/proto.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 482 |
```javascript
var parse = require('../');
var test = require('tape');
test('parse args', function (t) {
t.deepEqual(
parse([ '--no-moo' ]),
{ moo : false, _ : [] },
'no'
);
t.deepEqual(
parse([ '-v', 'a', '-v', 'b', '-v', 'c' ]),
{ v : ['a','b','c'], _ : [] },
... | /content/code_sandbox/node_modules/minimist/test/parse.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,409 |
```javascript
var parse = require('../');
var test = require('tape');
test('parse with modifier functions' , function (t) {
t.plan(1);
var argv = parse([ '-b', '123' ], { boolean: 'b' });
t.deepEqual(argv, { b: true, _: [123] });
});
``` | /content/code_sandbox/node_modules/minimist/test/parse_modified.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 70 |
```javascript
var parse = require('../');
var test = require('tape');
test('stops parsing on the first non-option when stopEarly is set', function (t) {
var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], {
stopEarly: true
});
t.deepEqual(argv, {
aaa: 'bbb',
_: ['ccc', '--ddd']
... | /content/code_sandbox/node_modules/minimist/test/stop_early.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 88 |
```javascript
var parse = require('../');
var test = require('tape');
test('nums', function (t) {
var argv = parse([
'-x', '1234',
'-y', '5.67',
'-z', '1e7',
'-w', '10f',
'--hex', '0xdeadbeef',
'789'
]);
t.deepEqual(argv, {
x : 1234,
y : 5.67,... | /content/code_sandbox/node_modules/minimist/test/num.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 275 |
```javascript
var test = require('tape');
var parse = require('../');
test('long opts', function (t) {
t.deepEqual(
parse([ '--bool' ]),
{ bool : true, _ : [] },
'long boolean'
);
t.deepEqual(
parse([ '--pow', 'xixxle' ]),
{ pow : 'xixxle', _ : [] },
'long ca... | /content/code_sandbox/node_modules/minimist/test/long.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 218 |
```javascript
var parse = require('../');
var test = require('tape');
test('-', function (t) {
t.plan(5);
t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] });
t.deepEqual(parse([ '-' ]), { _: [ '-' ] });
t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] });
t.deepEqual(
parse([ '-b', '-' ], { ... | /content/code_sandbox/node_modules/minimist/test/dash.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 311 |
```javascript
var parse = require('../');
var test = require('tape');
test('flag boolean default false', function (t) {
var argv = parse(['moo'], {
boolean: ['t', 'verbose'],
default: { verbose: false, t: false }
});
t.deepEqual(argv, {
verbose: false,
t: false,
... | /content/code_sandbox/node_modules/minimist/test/bool.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,192 |
```javascript
var test = require('tape');
var parse = require('../');
test('boolean default true', function (t) {
var argv = parse([], {
boolean: 'sometrue',
default: { sometrue: true }
});
t.equal(argv.sometrue, true);
t.end();
});
test('boolean default false', function (t) {
var ... | /content/code_sandbox/node_modules/minimist/test/default_bool.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 201 |
```javascript
var parse = require('../');
var test = require('tape');
test('flag boolean true (default all --args to boolean)', function (t) {
var argv = parse(['moo', '--honk', 'cow'], {
boolean: true
});
t.deepEqual(argv, {
honk: true,
_: ['moo', 'cow']
});
t.dee... | /content/code_sandbox/node_modules/minimist/test/all_bool.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 208 |
```javascript
var parse = require('../');
var test = require('tape');
test('whitespace should be whitespace' , function (t) {
t.plan(1);
var x = parse([ '-x', '\t' ]).x;
t.equal(x, '\t');
});
``` | /content/code_sandbox/node_modules/minimist/test/whitespace.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 58 |
```javascript
var parse = require('../');
var test = require('tape');
test('numeric short args', function (t) {
t.plan(2);
t.deepEqual(parse([ '-n123' ]), { n: 123, _: [] });
t.deepEqual(
parse([ '-123', '456' ]),
{ 1: true, 2: true, 3: 456, _: [] }
);
});
test('short', function (t) {
... | /content/code_sandbox/node_modules/minimist/test/short.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 475 |
```javascript
var parse = require('../');
var test = require('tape');
test('boolean and alias is not unknown', function (t) {
var unknown = [];
function unknownFn(arg) {
unknown.push(arg);
return false;
}
var aliased = [ '-h', 'true', '--derp', 'true' ];
var regular = [ '--herp', '... | /content/code_sandbox/node_modules/minimist/test/unknown.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 712 |
```javascript
var parse = require('../');
var test = require('tape');
test('short -k=v' , function (t) {
t.plan(1);
var argv = parse([ '-b=123' ]);
t.deepEqual(argv, { b: 123, _: [] });
});
test('multi short -k=v' , function (t) {
t.plan(1);
var argv = parse([ '-a=whatever', '-b=robots' ... | /content/code_sandbox/node_modules/minimist/test/kv_short.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 119 |
```javascript
var parse = require('../');
var test = require('tape');
test('dotted alias', function (t) {
var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
t.equal(argv.a.b, 22);
t.equal(argv.aa.bb, 22);
t.end();
});
test('dotted default', function (t) {
var argv ... | /content/code_sandbox/node_modules/minimist/test/dotted.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 194 |
```javascript
var toString = Object.prototype.toString
var isModern = (
typeof Buffer.alloc === 'function' &&
typeof Buffer.allocUnsafe === 'function' &&
typeof Buffer.from === 'function'
)
function isArrayBuffer (input) {
return toString.call(input).slice(8, -1) === 'ArrayBuffer'
}
function fromArrayBuffer ... | /content/code_sandbox/node_modules/buffer-from/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 397 |
```javascript
module.exports = isTypedArray
isTypedArray.strict = isStrictTypedArray
isTypedArray.loose = isLooseTypedArray
var toString = Object.prototype.toString
var names = {
'[object Int8Array]': true
, '[object Int16Array]': true
, '[object Int32Array]': true
, '[object Uint8Array]': true
, '[o... | /content/code_sandbox/node_modules/is-typedarray/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 278 |
```javascript
var test = require('tape')
var ista = require('./')
test('strict', function(t) {
t.ok(ista.strict(new Int8Array), 'Int8Array')
t.ok(ista.strict(new Int16Array), 'Int16Array')
t.ok(ista.strict(new Int32Array), 'Int32Array')
t.ok(ista.strict(new Uint8Array), 'Uint8Array')
t.ok(ista.strict(new Uin... | /content/code_sandbox/node_modules/is-typedarray/test.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 354 |
```javascript
var Ajv = require('ajv')
var HARError = require('./error')
var schemas = require('har-schema')
var ajv
function createAjvInstance () {
var ajv = new Ajv({
allErrors: true
})
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'))
ajv.addSchema(schemas)
return ajv
}
function ... | /content/code_sandbox/node_modules/har-validator/lib/async.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 571 |
```javascript
function HARError (errors) {
var message = 'validation failed'
this.name = 'HARError'
this.message = message
this.errors = errors
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, this.constructor)
} else {
this.stack = (new Error(message)).stack
}
... | /content/code_sandbox/node_modules/har-validator/lib/error.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 92 |
```javascript
var Ajv = require('ajv')
var HARError = require('./error')
var schemas = require('har-schema')
var ajv
function createAjvInstance () {
var ajv = new Ajv({
allErrors: true
})
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'))
ajv.addSchema(schemas)
return ajv
}
function ... | /content/code_sandbox/node_modules/har-validator/lib/promise.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 488 |
```unknown
{"version":3,"file":"myIpAddress.js","sourceRoot":"","sources":["../src/myIpAddress.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,8CAAqC;AAErC;;;;;;;;;;;;;GAaG;AACH,SAA8B,WAAW;;QACxC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACtC,qCAAqC;YACrC,kDAAkD;YAClD,MAAM,MAAM,GAAG,aAAG,CAAC,OAAO,... | /content/code_sandbox/node_modules/pac-resolver/dist/myIpAddress.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 588 |
```xml
/**
* True during (or between) the specified time(s).
*
* Even though the examples don't show it, this parameter may be present in
* each of the different parameter profiles, always as the last parameter.
*
*
* Examples:
*
* ``` js
* timerange(12)
* true from noon to 1pm.
*
* timerange(12, 13)
* sa... | /content/code_sandbox/node_modules/pac-resolver/dist/timeRange.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 372 |
```xml
/// <reference types="node" />
import { LookupAddress, LookupOptions } from 'dns';
import { GMT } from './index';
export declare function dnsLookup(host: string, opts: LookupOptions): Promise<string | LookupAddress[]>;
export declare function isGMT(v: any): v is GMT;
``` | /content/code_sandbox/node_modules/pac-resolver/dist/util.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 63 |
```xml
/**
* Returns the IP address of the host that the Navigator is running on, as
* a string in the dot-separated integer format.
*
* Example:
*
* ``` js
* myIpAddress()
* // would return the string "198.95.249.79" if you were running the
* // Navigator on that host.
* ```
*
* @return {String} extern... | /content/code_sandbox/node_modules/pac-resolver/dist/myIpAddress.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 95 |
```xml
/// <reference types="node" />
/// <reference types="node" />
import { Context } from 'vm';
import { CompileOptions } from 'degenerator';
/**
* Returns an asynchronous `FindProxyForURL()` function
* from the given JS string (from a PAC file).
*
* @param {String} str JS string
* @param {Object} opts optional... | /content/code_sandbox/node_modules/pac-resolver/dist/index.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 528 |
```xml
/**
* Tries to resolve the hostname. Returns true if succeeds.
*
* @param {String} host is the hostname from the URL.
* @return {Boolean}
*/
export default function isResolvable(host: string): Promise<boolean>;
``` | /content/code_sandbox/node_modules/pac-resolver/dist/isResolvable.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 50 |
```javascript
"use strict";
/**
* If only a single value is specified (from each category: day, month, year), the
* function returns a true value only on days that match that specification. If
* both values are specified, the result is true between those times, including
* bounds.
*
* Even though the examples don... | /content/code_sandbox/node_modules/pac-resolver/dist/dateRange.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 714 |
```javascript
/*!
* jQuery JavaScript Library v2.2.0
* path_to_url
*
* Includes Sizzle.js
* path_to_url
*
* Released under the MIT license
* path_to_url
*
* Date: 2016-01-08T20:02Z
*/
(function( global, factory ) {
// moduleelectronjquery
factory(global);
// if ( typeof module === "object" && typeof mod... | /content/code_sandbox/static/libs/jquery/jquery.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 70,815 |
```unknown
{"version":3,"file":"timeRange.js","sourceRoot":"","sources":["../src/timeRange.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;;AAEH,SAAwB,SAAS;IAChC,8CAA8C;IAC9C,MAAM,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnD,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAA... | /content/code_sandbox/node_modules/pac-resolver/dist/timeRange.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,437 |
```xml
/**
* Returns true iff the domain of hostname matches.
*
* Examples:
*
* ``` js
* dnsDomainIs("www.netscape.com", ".netscape.com")
* // is true.
*
* dnsDomainIs("www", ".netscape.com")
* // is false.
*
* dnsDomainIs("www.mcom.com", ".netscape.com")
* // is false.
* ```
*
*
* @param {String... | /content/code_sandbox/node_modules/pac-resolver/dist/dnsDomainIs.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 151 |
```javascript
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
const url_1 = require("url");
const degenerator_1 = require("degenerator");
/**
* Built-in PAC functions.
*/
const dateRange_1 = __importDefault(requir... | /content/code_sandbox/node_modules/pac-resolver/dist/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 999 |
```unknown
{"version":3,"file":"isPlainHostName.js","sourceRoot":"","sources":["../src/isPlainHostName.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAEH,SAAwB,eAAe,CAAC,IAAY;IACnD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AAFD,kCAEC"}
``` | /content/code_sandbox/node_modules/pac-resolver/dist/isPlainHostName.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 101 |
```unknown
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,6BAA4B;AAE5B,6CAAsD;AAEtD;;GAEG;AACH,4DAAoC;AACpC,gEAAwC;AACxC,wEAAgD;AAChD,8DAAsC;AACtC,wDAAgC;AAChC,wEAAgD;AAChD,kEAA0C;AAC1C,gFAAwD;AACxD,gEAAwC;AACxC,8DAAsC;AACtC,4DAAoC;AACpC,kEAA0C;AAE1C;;;;;;;G... | /content/code_sandbox/node_modules/pac-resolver/dist/index.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,666 |
```unknown
{"version":3,"file":"dnsDomainIs.js","sourceRoot":"","sources":["../src/dnsDomainIs.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAwB,WAAW,CAAC,IAAY,EAAE,MAAc;IAC/D,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IACpB,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IACxB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,G... | /content/code_sandbox/node_modules/pac-resolver/dist/dnsDomainIs.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 176 |
```xml
/**
* Is true if the hostname matches exactly the specified hostname, or if there is
* no domain name part in the hostname, but the unqualified hostname matches.
*
* Examples:
*
* ``` js
* localHostOrDomainIs("www.netscape.com", "www.netscape.com")
* // is true (exact match).
*
* localHostOrDomainIs(... | /content/code_sandbox/node_modules/pac-resolver/dist/localHostOrDomainIs.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 220 |
```unknown
{"version":3,"file":"dnsResolve.js","sourceRoot":"","sources":["../src/dnsResolve.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,iCAAmC;AAEnC;;;;;;;;;;;;;GAaG;AAEH,SAA8B,UAAU,CAAC,IAAY;;QACpD,MAAM,MAAM,GAAG,CAAC,CAAC;QACjB,IAAI;YACH,MAAM,CAAC,GAAG,MAAM,IAAA,gBAAS,EAAC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;YAC5C,IA... | /content/code_sandbox/node_modules/pac-resolver/dist/dnsResolve.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 235 |
```unknown
{"version":3,"file":"isResolvable.js","sourceRoot":"","sources":["../src/isResolvable.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,iCAAmC;AAEnC;;;;;GAKG;AAEH,SAA8B,YAAY,CAAC,IAAY;;QACtD,MAAM,MAAM,GAAG,CAAC,CAAC;QACjB,IAAI;YACH,IAAI,MAAM,IAAA,gBAAS,EAAC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;gBACtC,OAAO,IAAI,CAAC;... | /content/code_sandbox/node_modules/pac-resolver/dist/isResolvable.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 204 |
```unknown
{"version":3,"file":"isInNet.js","sourceRoot":"","sources":["../src/isInNet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;AAEH,qCAAkC;AAClC,iCAAmC;AAEnC;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,SAA8B,OAAO,CACpC,IAAY,EACZ,OAAe,EACf,IAAY;;QAEZ,MAAM,MAAM,GAAG,CAAC,CAAC;QACjB,IAAI;YACH,MAAM,EAAE,GAAG,MAAM,IAAA,gBAAS,E... | /content/code_sandbox/node_modules/pac-resolver/dist/isInNet.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 312 |
```javascript
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfil... | /content/code_sandbox/node_modules/pac-resolver/dist/dnsResolve.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 379 |
```xml
/**
* True iff there is no domain name in the hostname (no dots).
*
* Examples:
*
* ``` js
* isPlainHostName("www")
* // is true.
*
* isPlainHostName("www.netscape.com")
* // is false.
* ```
*
* @param {String} host The hostname from the URL (excluding port number).
* @return {Boolean}
*/
expo... | /content/code_sandbox/node_modules/pac-resolver/dist/isPlainHostName.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 96 |
```javascript
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfil... | /content/code_sandbox/node_modules/pac-resolver/dist/myIpAddress.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 549 |
```javascript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Returns the number (integer) of DNS domain levels (number of dots) in the
* hostname.
*
* Examples:
*
* ``` js
* dnsDomainLevels("www")
* // returns 0.
* dnsDomainLevels("www.netscape.com")
* // returns 2.
* ... | /content/code_sandbox/node_modules/pac-resolver/dist/dnsDomainLevels.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 169 |
```xml
/**
* If only a single value is specified (from each category: day, month, year), the
* function returns a true value only on days that match that specification. If
* both values are specified, the result is true between those times, including
* bounds.
*
* Even though the examples don't show, the "GMT" pa... | /content/code_sandbox/node_modules/pac-resolver/dist/dateRange.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 678 |
```javascript
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfil... | /content/code_sandbox/node_modules/pac-resolver/dist/isResolvable.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 320 |
```xml
/**
* Returns the number (integer) of DNS domain levels (number of dots) in the
* hostname.
*
* Examples:
*
* ``` js
* dnsDomainLevels("www")
* // returns 0.
* dnsDomainLevels("www.netscape.com")
* // returns 2.
* ```
*
* @param {String} host is the hostname from the URL.
* @return {Number} num... | /content/code_sandbox/node_modules/pac-resolver/dist/dnsDomainLevels.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 106 |
```unknown
{"version":3,"file":"shExpMatch.js","sourceRoot":"","sources":["../src/shExpMatch.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;AAEH,SAAwB,UAAU,CAAC,GAAW,EAAE,KAAa;IAC5D,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3B,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC;AAHD,6BAGC;AAED;;;;GAIG;AAEH... | /content/code_sandbox/node_modules/pac-resolver/dist/shExpMatch.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 287 |
```unknown
{"version":3,"file":"dateRange.js","sourceRoot":"","sources":["../src/dateRange.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;;AAEH,SAAwB,SAAS;IAChC,sBAAsB;IACtB,OAAO,KAAK,CAAC;AACd,CAAC;AAHD,4BAGC"}
``` | /content/code_sandbox/node_modules/pac-resolver/dist/dateRange.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 85 |
```unknown
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;AAAA,6BAA2D;AAG3D,SAAgB,SAAS,CACxB,IAAY,EACZ,IAAmB;IAEnB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,IAAA,YAAM,EAAC,IAAI,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAC/B,IAAI,GAAG,EAAE;gBACR,MAA... | /content/code_sandbox/node_modules/pac-resolver/dist/util.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 291 |
```xml
/**
* Module dependencies.
*/
/**
* True iff the IP address of the host matches the specified IP address pattern.
*
* Pattern and mask specification is done the same way as for SOCKS configuration.
*
* Examples:
*
* ``` js
* isInNet(host, "198.95.249.79", "255.255.255.255")
* // is true iff the IP a... | /content/code_sandbox/node_modules/pac-resolver/dist/isInNet.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 260 |
```javascript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isGMT = exports.dnsLookup = void 0;
const dns_1 = require("dns");
function dnsLookup(host, opts) {
return new Promise((resolve, reject) => {
(0, dns_1.lookup)(host, opts, (err, res) => {
if (err) {... | /content/code_sandbox/node_modules/pac-resolver/dist/util.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 138 |
```javascript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Returns true iff the domain of hostname matches.
*
* Examples:
*
* ``` js
* dnsDomainIs("www.netscape.com", ".netscape.com")
* // is true.
*
* dnsDomainIs("www", ".netscape.com")
* // is false.
*
* dnsDomain... | /content/code_sandbox/node_modules/pac-resolver/dist/dnsDomainIs.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 200 |
```xml
import { GMT, Weekday } from './index';
/**
* Only the first parameter is mandatory. Either the second, the third, or both
* may be left out.
*
* If only one parameter is present, the function yeilds a true value on the
* weekday that the parameter represents. If the string "GMT" is specified as
* a second... | /content/code_sandbox/node_modules/pac-resolver/dist/weekdayRange.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 369 |
```javascript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = require("./util");
const weekdays = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'];
/**
* Only the first parameter is mandatory. Either the second, the third, or both
* may be left out.
*
* If only one param... | /content/code_sandbox/node_modules/pac-resolver/dist/weekdayRange.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 741 |
```unknown
{"version":3,"file":"localHostOrDomainIs.js","sourceRoot":"","sources":["../src/localHostOrDomainIs.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAwB,mBAAmB,CAC1C,IAAY,EACZ,OAAe;IAEf,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9B,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,C... | /content/code_sandbox/node_modules/pac-resolver/dist/localHostOrDomainIs.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 303 |
```xml
/**
* Returns true if the string matches the specified shell
* expression.
*
* Actually, currently the patterns are shell expressions,
* not regular expressions.
*
* Examples:
*
* ``` js
* shExpMatch("path_to_url", "*\/ari/*")
* // is true.
*
* shExpMatch("path_to_url", "*\/ari/*")
* // is fals... | /content/code_sandbox/node_modules/pac-resolver/dist/shExpMatch.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 157 |
```javascript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Is true if the hostname matches exactly the specified hostname, or if there is
* no domain name part in the hostname, but the unqualified hostname matches.
*
* Examples:
*
* ``` js
* localHostOrDomainIs("www.netscape... | /content/code_sandbox/node_modules/pac-resolver/dist/localHostOrDomainIs.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 315 |
```javascript
"use strict";
/**
* True iff there is no domain name in the hostname (no dots).
*
* Examples:
*
* ``` js
* isPlainHostName("www")
* // is true.
*
* isPlainHostName("www.netscape.com")
* // is false.
* ```
*
* @param {String} host The hostname from the URL (excluding port number).
* @retu... | /content/code_sandbox/node_modules/pac-resolver/dist/isPlainHostName.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 130 |
```unknown
{"version":3,"file":"dnsDomainLevels.js","sourceRoot":"","sources":["../src/dnsDomainLevels.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;GAeG;AACH,SAAwB,eAAe,CAAC,IAAY;IACnD,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,KAAK,EAAE;QACV,MAAM,GAAG,... | /content/code_sandbox/node_modules/pac-resolver/dist/dnsDomainLevels.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 185 |
```javascript
"use strict";
/**
* Module dependencies.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, r... | /content/code_sandbox/node_modules/pac-resolver/dist/isInNet.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 560 |
```javascript
"use strict";
/**
* Returns true if the string matches the specified shell
* expression.
*
* Actually, currently the patterns are shell expressions,
* not regular expressions.
*
* Examples:
*
* ``` js
* shExpMatch("path_to_url", "*\/ari/*")
* // is true.
*
* shExpMatch("path_to_url", "*\/ar... | /content/code_sandbox/node_modules/pac-resolver/dist/shExpMatch.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 268 |
```javascript
"use strict";
/**
* True during (or between) the specified time(s).
*
* Even though the examples don't show it, this parameter may be present in
* each of the different parameter profiles, always as the last parameter.
*
*
* Examples:
*
* ``` js
* timerange(12)
* true from noon to 1pm.
*
* ti... | /content/code_sandbox/node_modules/pac-resolver/dist/timeRange.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 918 |
```unknown
{"version":3,"file":"weekdayRange.js","sourceRoot":"","sources":["../src/weekdayRange.ts"],"names":[],"mappings":";;AAAA,iCAA+B;AAG/B,MAAM,QAAQ,GAAc,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,SAAwB,YAAY,CACnC,GAAY,E... | /content/code_sandbox/node_modules/pac-resolver/dist/weekdayRange.js.map | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 904 |
```xml
/**
* Resolves the given DNS hostname into an IP address, and returns it in the dot
* separated format as a string.
*
* Example:
*
* ``` js
* dnsResolve("home.netscape.com")
* // returns the string "198.95.249.79".
* ```
*
* @param {String} host hostname to resolve
* @return {String} resolved IP ad... | /content/code_sandbox/node_modules/pac-resolver/dist/dnsResolve.d.ts | xml | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 101 |
```javascript
var Base62 = (function (my) {
my.chars = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q... | /content/code_sandbox/node_modules/base62/base62.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 360 |
```javascript
var assert = require('assert')
var Base62 = require('../base62')
describe("encode", function() {
it("should encode a number to a Base62 string", function() {
assert.equal(Base62.encode(999), 'g7')
});
});
describe("decode", function() {
it("should decode a number from a Base62 string", functio... | /content/code_sandbox/node_modules/base62/test/test.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 95 |
```javascript
/*!
* depd
*/
/**
* Module dependencies.
*/
var relative = require('path').relative
/**
* Module exports.
*/
module.exports = depd
/**
* Get the path to base files on.
*/
var basePath = process.cwd()
/**
* Determine if namespace is contained in the string.
*/
function containsNamespace (... | /content/code_sandbox/node_modules/depd/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 2,833 |
```javascript
/*!
* depd
*/
'use strict'
/**
* Module exports.
* @public
*/
module.exports = depd
/**
* Create deprecate for namespace in caller.
*/
function depd (namespace) {
if (!namespace) {
throw new TypeError('argument namespace is required')
}
function deprecate (message) {
// no-op in... | /content/code_sandbox/node_modules/depd/lib/browser/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 356 |
```javascript
/*
* lib/jsprim.js: utilities for primitive JavaScript types
*/
var mod_assert = require('assert-plus');
var mod_util = require('util');
var mod_extsprintf = require('extsprintf');
var mod_verror = require('verror');
var mod_jsonschema = require('json-schema');
/*
* Public interface
*/
exports.deep... | /content/code_sandbox/node_modules/jsprim/lib/jsprim.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 4,900 |
```unknown
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sel... | /content/code_sandbox/node_modules/form-data/License | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 204 |
```unknown
# Form-Data [ {
Object.keys(src).forEach(function(prop)
{
dst[prop] = dst[prop] || src[prop];
});
return dst;
};
``` | /content/code_sandbox/node_modules/form-data/lib/populate.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 46 |
```javascript
/* eslint-env browser */
module.exports = typeof self == 'object' ? self.FormData : window.FormData;
``` | /content/code_sandbox/node_modules/form-data/lib/browser.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 24 |
```javascript
/* jshint node:true */
var path = require('path');
var saucelabsBrowsers = require(path.resolve('test', 'saucelabs-browsers.js'));
var sourceFiles = [
'Gruntfile.js',
'src/*.js',
'src/**/*.js',
'test/**/test.*.js'
];
module.exports = exports = function(grunt) {
'use strict';
var... | /content/code_sandbox/node_modules/localforage/Gruntfile.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,778 |
```unknown
{
"asi": false,
"bitwise": true,
"browser": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"esnext": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"nonew": true,
"quotmark": false,
"strict": false,
"trailing": false,
... | /content/code_sandbox/node_modules/localforage/.jshintrc | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 182 |
```javascript
var CombinedStream = require('combined-stream');
var util = require('util');
var path = require('path');
var http = require('http');
var https = require('https');
var parseUrl = require('url').parse;
var fs = require('fs');
var mime = require('mime-types');
var asynckit = require('asynckit');
var populate... | /content/code_sandbox/node_modules/form-data/lib/form_data.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 2,839 |
```unknown
.DS_Store
.swp
bower_components
node_modules
components
test/localforage.browserify.js
test/localforage.component.js
test/localforage.webpack.js
# Logs + Sauce Labs Tests
*.log
#WebStorm files
.idea
### Ruby Stuff for slate docs
*.gem
*.rbc
.bundle
.config
coverage
InstalledFiles
lib/bundler/man
pkg
rdoc
... | /content/code_sandbox/node_modules/localforage/.npmignore | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 125 |
```unknown
{
"esnext": true,
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowTrailingComma": true,
"requireBlocksOnNewline": true,
"requireLineFeedAtFileEnd": true,
"requireSpaceAfterKeywords": [
"if",
"else",
"for"... | /content/code_sandbox/node_modules/localforage/.jscsrc | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 196 |
```unknown
{
"presets": ["es2015-loose"],
"plugins": [
"add-module-exports",
"transform-es2015-modules-umd"
]
}
``` | /content/code_sandbox/node_modules/localforage/.babelrc-umd | unknown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 39 |
```html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>localForage Custom Driver Tests!</title>
<link rel="stylesheet" href="/bower_components/mocha/mocha.css">
<script src="/bower_components/assert/assert.js"></script>
<script src="/bower_components/mocha/mocha.js"></script>
<... | /content/code_sandbox/node_modules/localforage/test/test.customdriver.html | html | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 193 |
```javascript
/* global beforeEach:true */
this.mocha.setup('bdd');
beforeEach(function(done) {
var previousDriver = localforage.driver();
function rerequirelocalforage() {
// The API method stubs inserted by callWhenReady must be tested before
// they are replaced by the driver, which happens... | /content/code_sandbox/node_modules/localforage/test/test.callwhenready.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 285 |
```javascript
/* global navigator:true, window:true, Modernizr:true, describe:true, expect:true, it:true, xit:true, before:true, beforeEach:true, after:true*/
var DRIVERS = [
localforage.INDEXEDDB,
localforage.LOCALSTORAGE,
localforage.WEBSQL
];
DRIVERS.forEach(function(driverName) {
if ((!Modernizr.in... | /content/code_sandbox/node_modules/localforage/test/test.serviceworkers.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 715 |
```javascript
(function() {
'use strict';
var dummyStorage = {};
// Config the localStorage backend, using options set in the config.
function _initStorage(options) {
var self = this;
var dbInfo = {};
if (options) {
for (var i in options) {
... | /content/code_sandbox/node_modules/localforage/test/dummyStorageDriver.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 2,681 |
```javascript
// Run before window.onload to make sure the specs have access to describe()
// and other mocha methods. All feels very hacky though :-/
this.mocha.setup('bdd');
function runTests() {
var runner = this.mocha.run();
var failedTests = [];
runner.on('end', function(){
window.mochaResul... | /content/code_sandbox/node_modules/localforage/test/runner.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 425 |
```html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>localForage WebPack Tests!</title>
<link rel="stylesheet" href="/bower_components/mocha/mocha.css">
<script src="/bower_components/assert/assert.js"></script>
<script src="/bower_components/mocha/mocha.js"></script>
<script... | /content/code_sandbox/node_modules/localforage/test/test.webpack.html | html | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 258 |
```javascript
/*globals importScripts:true, self:true */
importScripts("/dist/localforage.js");
self.addEventListener('message', function(e) {
function handleError(e) {
self.postMessage({
error: JSON.stringify(e),
body: e,
fail: true
});
}
localforage.se... | /content/code_sandbox/node_modules/localforage/test/webworker-client.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 131 |
```html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>localForage Tests!</title>
<link rel="stylesheet" href="/bower_components/mocha/mocha.css">
<script src="/bower_components/assert/assert.js"></script>
<script src="/bower_components/mocha/mocha.js"></script>
<script src="/b... | /content/code_sandbox/node_modules/localforage/test/test.nodriver.html | html | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 285 |
```html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>localForage Tests!</title>
<link rel="stylesheet" href="/bower_components/mocha/mocha.css">
<script src="/bower_components/assert/assert.js"></script>
<script src="/bower_components/mocha/mocha.js"></script>
<script src="/b... | /content/code_sandbox/node_modules/localforage/test/test.faultydriver.html | html | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 247 |
```javascript
/* global before:true, beforeEach:true, describe:true, expect:true, it:true, Modernizr:true */
var DRIVERS = [
localforage.INDEXEDDB,
localforage.LOCALSTORAGE,
localforage.WEBSQL
];
DRIVERS.forEach(function(driverName) {
if ((!localforage.supports(localforage.INDEXEDDB) &&
driver... | /content/code_sandbox/node_modules/localforage/test/test.webworkers.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 412 |
```javascript
/* global before:true, beforeEach:true, describe:true, expect:true, it:true */
// kinda lame to define this twice, but it seems require() isn't available here
function createBlob(parts, properties) {
/* global BlobBuilder,MSBlobBuilder,MozBlobBuilder,WebKitBlobBuilder */
parts = parts || [];
... | /content/code_sandbox/node_modules/localforage/test/test.datatypes.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 4,530 |
```javascript
// if (typeof Promise === 'undefined') {
// require('../bower_components/es6-promise/promise');
// }
// require localforage as defined in package.json
window.localforage = require('../');
// require('script!../'); // optionally use webpack/script-loader
``` | /content/code_sandbox/node_modules/localforage/test/runner.webpack.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
// if (typeof Promise === 'undefined') {
// require('../bower_components/es6-promise/promise');
// }
// require localforage as defined in package.json
window.localforage = require('../');
``` | /content/code_sandbox/node_modules/localforage/test/runner.browserify.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 45 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.