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
```yaml ui: mocha-bdd server: ./test/support/server.js tunnel_host: path_to_url browsers: - name: chrome version: latest - name: firefox version: latest - name: safari version: latest - name: ie version: 9..latest browserify: - transform: name: babelify configFile: './.dist.babelrc...
/content/code_sandbox/node_modules/superagent/.zuul.yml
yaml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
97
```unknown CONTRIBUTING.md HISTORY.md docs ```
/content/code_sandbox/node_modules/superagent/.remarkignore
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
13
```javascript var assert = require('assert-plus'); var crypto = require('crypto'); var http = require('http'); var util = require('util'); var sshpk = require('sshpk'); var jsprim = require('jsprim'); var utils = require('./utils'); var sprintf = require('util').format; var HASH_ALGOS = utils.HASH_ALGOS; var PK_ALGO...
/content/code_sandbox/node_modules/http-signature/lib/signer.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,047
```unknown NODETESTS ?= test/*.js test/node/*.js BROWSERTESTS ?= test/*.js test/client/*.js REPORTER = spec test: @if [ "x$(BROWSER)" = "x" ]; then make test-node; else make test-browser; fi test-node: @NODE_ENV=test ./node_modules/.bin/mocha \ --require should \ --trace-warnings \ --throw-deprecation \ --...
/content/code_sandbox/node_modules/superagent/Makefile
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
423
```javascript "use strict"; function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = func...
/content/code_sandbox/node_modules/superagent/lib/utils.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,290
```javascript "use strict"; /** * Module dependencies. */ var utils = require('./utils'); /** * Expose `ResponseBase`. */ module.exports = ResponseBase; /** * Initialize a new `ResponseBase`. * * @api public */ function ResponseBase(obj) { if (obj) return mixin(obj); } /** * Mixin the prototype propertie...
/content/code_sandbox/node_modules/superagent/lib/response-base.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,311
```html <!DOCTYPE html> <html> <head> <meta charset="utf8"> <title>SuperAgent elegant API for AJAX in Node and browsers</title> <link rel="stylesheet" href="path_to_url"> <link rel="stylesheet" href="docs/style.css"> </head> <body> <ul id="menu"></ul> <div id="content"> <h1 id="superagent...
/content/code_sandbox/node_modules/superagent/index.html
html
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
11,130
```javascript "use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === ...
/content/code_sandbox/node_modules/superagent/lib/is-object.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
220
```javascript "use strict"; function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-arra...
/content/code_sandbox/node_modules/superagent/lib/agent-base.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
733
```javascript "use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === ...
/content/code_sandbox/node_modules/superagent/lib/client.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
10,191
```javascript "use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === ...
/content/code_sandbox/node_modules/superagent/lib/request-base.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
7,682
```javascript "use strict"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })...
/content/code_sandbox/node_modules/superagent/lib/node/http2wrapper.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,705
```javascript "use strict"; /** * Module dependencies. */ var util = require('util'); var Stream = require('stream'); var ResponseBase = require('../response-base'); /** * Expose `Response`. */ module.exports = Response; /** * Initialize a new `Response` with the given `xhr`. * * - set flags (.ok, .error, ...
/content/code_sandbox/node_modules/superagent/lib/node/response.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,105
```javascript "use strict"; /** * Module dependencies. */ var _require = require('string_decoder'), StringDecoder = _require.StringDecoder; var Stream = require('stream'); var zlib = require('zlib'); /** * Buffers response data events and re-emits when they're unzipped. * * @param {Request} req * @param {R...
/content/code_sandbox/node_modules/superagent/lib/node/unzip.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
789
```javascript "use strict"; /** * Module dependencies. */ // eslint-disable-next-line node/no-deprecated-api var _require = require('url'), parse = _require.parse; var _require2 = require('cookiejar'), CookieJar = _require2.CookieJar; var _require3 = require('cookiejar'), CookieAccessInfo = _require3.C...
/content/code_sandbox/node_modules/superagent/lib/node/agent.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,024
```javascript "use strict"; exports['application/x-www-form-urlencoded'] = require('./urlencoded'); exports['application/json'] = require('./json'); exports.text = require('./text'); var binary = require('./image'); exports['application/octet-stream'] = binary; exports['application/pdf'] = binary; exports.image = bi...
/content/code_sandbox/node_modules/superagent/lib/node/parsers/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
154
```javascript "use strict"; module.exports = function (res, fn) { res.text = ''; res.setEncoding('utf8'); res.on('data', function (chunk) { res.text += chunk; }); res.on('end', function () { var body; var err; try { body = res.text && JSON.parse(res.text); } catch (err_) { er...
/content/code_sandbox/node_modules/superagent/lib/node/parsers/json.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
337
```javascript "use strict"; module.exports = function (res, fn) { var data = []; // Binary data needs binary storage res.on('data', function (chunk) { data.push(chunk); }); res.on('end', function () { fn(null, Buffer.concat(data)); }); }; //# sourceMappingURL=data:application/json;charset=utf-8;base...
/content/code_sandbox/node_modules/superagent/lib/node/parsers/image.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
170
```javascript "use strict"; module.exports = function (res, fn) { res.text = ''; res.setEncoding('utf8'); res.on('data', function (chunk) { res.text += chunk; }); res.on('end', fn); }; //# sourceMappingURL=data:application/json;charset=utf-8;base64,your_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha...
/content/code_sandbox/node_modules/superagent/lib/node/parsers/text.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
138
```javascript "use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === ...
/content/code_sandbox/node_modules/superagent/lib/node/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
14,368
```javascript "use strict"; /** * Module dependencies. */ var qs = require('qs'); module.exports = function (res, fn) { res.text = ''; res.setEncoding('ascii'); res.on('data', function (chunk) { res.text += chunk; }); res.on('end', function () { try { fn(null, qs.parse(res.text)); } catc...
/content/code_sandbox/node_modules/superagent/lib/node/parsers/urlencoded.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
252
```javascript !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).superagent=t()}}((function(){var t={exports:{}};f...
/content/code_sandbox/node_modules/superagent/dist/superagent.min.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
8,989
```html <!DOCTYPE html> <html> <head> <meta charset="utf8"> <title>SuperAgent elegant API for AJAX in Node and browsers</title> <link rel="stylesheet" href="path_to_url"> <link rel="stylesheet" href="docs/style.css"> </head> <body> <ul id="menu"></ul> <div id="content"> ```
/content/code_sandbox/node_modules/superagent/docs/head.html
html
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
87
```html </div> <a href="path_to_url"><img style="position: absolute; top: 0; right: 0; border: 0;" src="path_to_url" alt="Fork me on GitHub"></a> <script src="path_to_url"></script> <script> $('code').each(function(){ $(this).html(highlight($(this).text())); }); function highl...
/content/code_sandbox/node_modules/superagent/docs/tail.html
html
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
378
```javascript (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g....
/content/code_sandbox/node_modules/superagent/dist/superagent.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
21,839
```css body { padding: 40px 80px; font: 14px/1.5 "Helvetica Neue", Helvetica, sans-serif; background: #181818 url(images/bg.png); text-align: center; } #content { margin: 0 auto; padding: 10px 40px; text-align: left; background: white; width: 50%; -webkit-border-radius: 2px; -moz-border-radius: 2...
/content/code_sandbox/node_modules/superagent/docs/style.css
css
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
515
```xml // Definitions by: Carlos Ballesteros Velasco <path_to_url // Leon Yu <path_to_url // BendingBender <path_to_url // Maple Miao <path_to_url /// <reference types="node" /> import * as stream from 'stream'; import * as http from 'http'; export = FormData; // Extra...
/content/code_sandbox/node_modules/superagent/node_modules/form-data/index.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
414
```unknown # Form-Data [![NPM Module](path_to_url [![Join the chat at path_to_url A library to create readable ```"multipart/form-data"``` streams. Can be used to submit forms and file uploads to other web applications. The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface][xhr2-fd]. [xhr2-...
/content/code_sandbox/node_modules/superagent/node_modules/form-data/README.md.bak
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,559
```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/superagent/node_modules/form-data/License
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
204
```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/superagent/node_modules/form-data/lib/form_data.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,146
```javascript // populates missing values module.exports = function(dst, src) { Object.keys(src).forEach(function(prop) { dst[prop] = dst[prop] || src[prop]; }); return dst; }; ```
/content/code_sandbox/node_modules/superagent/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/superagent/node_modules/form-data/lib/browser.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
24
```unknown { "all": true, "check-coverage": false, "reporter": ["text-summary", "text", "html", "json"], "lines": 86, "statements": 85.93, "functions": 82.43, "branches": 76.06, "exclude": [ "coverage", "dist" ] } ```
/content/code_sandbox/node_modules/superagent/node_modules/qs/.nycrc
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
86
```javascript 'use strict'; var utils = require('./utils'); var has = Object.prototype.hasOwnProperty; var isArray = Array.isArray; var defaults = { allowDots: false, allowPrototypes: false, allowSparse: false, arrayLimit: 20, charset: 'utf-8', charsetSentinel: false, comma: false, de...
/content/code_sandbox/node_modules/superagent/node_modules/qs/lib/parse.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,215
```javascript 'use strict'; var stringify = require('./stringify'); var parse = require('./parse'); var formats = require('./formats'); module.exports = { formats: formats, parse: parse, stringify: stringify }; ```
/content/code_sandbox/node_modules/superagent/node_modules/qs/lib/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
46
```javascript 'use strict'; var formats = require('./formats'); var has = Object.prototype.hasOwnProperty; var isArray = Array.isArray; var hexTable = (function () { var array = []; for (var i = 0; i < 256; ++i) { array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); } retu...
/content/code_sandbox/node_modules/superagent/node_modules/qs/lib/utils.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,823
```javascript 'use strict'; var replace = String.prototype.replace; var percentTwenties = /%20/g; var Format = { RFC1738: 'RFC1738', RFC3986: 'RFC3986' }; module.exports = { 'default': Format.RFC3986, formatters: { RFC1738: function (value) { return replace.call(value, percentTwen...
/content/code_sandbox/node_modules/superagent/node_modules/qs/lib/formats.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
131
```javascript 'use strict'; var getSideChannel = require('side-channel'); var utils = require('./utils'); var formats = require('./formats'); var has = Object.prototype.hasOwnProperty; var arrayPrefixGenerators = { brackets: function brackets(prefix) { return prefix + '[]'; }, comma: 'comma', ...
/content/code_sandbox/node_modules/superagent/node_modules/qs/lib/stringify.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,341
```javascript 'use strict'; var test = require('tape'); var qs = require('../'); var utils = require('../lib/utils'); var iconv = require('iconv-lite'); var SaferBuffer = require('safer-buffer').Buffer; test('parse()', function (t) { t.test('parses a simple string', function (st) { st.deepEqual(qs.parse('...
/content/code_sandbox/node_modules/superagent/node_modules/qs/test/parse.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
10,551
```html <!DOCTYPE html> <html> <head> <meta charset="utf8"> <title>SuperAgent elegant API for AJAX in Node and browsers</title> <link rel="stylesheet" href="path_to_url"> <link rel="stylesheet" href="docs/style.css"> </head> <body> <ul id="menu"></ul> <div id="content"> <section class...
/content/code_sandbox/node_modules/superagent/docs/test.html
html
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
50,283
```javascript 'use strict'; var test = require('tape'); var inspect = require('object-inspect'); var SaferBuffer = require('safer-buffer').Buffer; var forEach = require('for-each'); var utils = require('../lib/utils'); test('merge()', function (t) { t.deepEqual(utils.merge(null, true), [null, true], 'merges true ...
/content/code_sandbox/node_modules/superagent/node_modules/qs/test/utils.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,439
```javascript 'use strict'; var test = require('tape'); var qs = require('../'); var utils = require('../lib/utils'); var iconv = require('iconv-lite'); var SaferBuffer = require('safer-buffer').Buffer; var hasSymbols = require('has-symbols'); var hasBigInt = typeof BigInt === 'function'; test('stringify()', function...
/content/code_sandbox/node_modules/superagent/node_modules/qs/test/stringify.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
10,194
```javascript 'use strict'; const codes = {}; function createErrorType(code, message, Base) { if (!Base) { Base = Error } function getMessage (arg1, arg2, arg3) { if (typeof message === 'string') { return message } else { return message(arg1, arg2, arg3) } } class NodeError ext...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/errors.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
905
```javascript 'use strict'; function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } var codes = {}; function createErrorType(code, message, Base) { if (!Base) { Base = Error; } f...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/errors-browser.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,006
```javascript exports = module.exports = require('./lib/_stream_readable.js'); exports.Stream = exports; exports.Readable = exports; exports.Writable = require('./lib/_stream_writable.js'); exports.Duplex = require('./lib/_stream_duplex.js'); exports.Transform = require('./lib/_stream_transform.js'); exports.PassThroug...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/readable-browser.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
103
```javascript 'use strict' var experimentalWarnings = new Set(); function emitExperimentalWarning(feature) { if (experimentalWarnings.has(feature)) return; var msg = feature + ' is an experimental feature. This feature could ' + 'change at any time'; experimentalWarnings.add(feature); process.emitWarni...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/experimentalWarning.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
93
```javascript var Stream = require('stream'); if (process.env.READABLE_STREAM === 'disable' && Stream) { module.exports = Stream.Readable; Object.assign(module.exports, Stream); module.exports.Stream = Stream; } else { exports = module.exports = require('./lib/_stream_readable.js'); exports.Stream = Stream ||...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/readable.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
163
```javascript // // 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, sublic...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/_stream_passthrough.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
326
```javascript // // 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, sublic...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/_stream_writable.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
5,347
```javascript (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g....
/content/code_sandbox/node_modules/superagent/node_modules/qs/dist/qs.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
17,517
```javascript // // 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, sublic...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/_stream_duplex.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,015
```javascript // // 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, sublic...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/_stream_transform.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,879
```javascript 'use strict'; // undocumented cb() API, needed for core, not for public API function destroy(err, cb) { var _this = this; var readableDestroyed = this._readableState && this._readableState.destroyed; var writableDestroyed = this._writableState && this._writableState.destroyed; if (readableDestr...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/destroy.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
833
```javascript module.exports = require('events').EventEmitter; ```
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/stream-browser.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
11
```javascript module.exports = function () { throw new Error('Readable.from is not available in the browser') }; ```
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/from-browser.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
22
```javascript // Ported from path_to_url with // permission from the author, Mathias Buus (@mafintosh). 'use strict'; var ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE; function once(callback) { var called = false; return function () { if (called) return; called ...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
758
```javascript 'use strict'; var _Object$setPrototypeO; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var finished = require('./end-of-stream'); var kLas...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/async_iterator.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,427
```javascript // Ported from path_to_url with // permission from the author, Mathias Buus (@mafintosh). 'use strict'; var eos; function once(callback) { var called = false; return function () { if (called) return; called = true; callback.apply(void 0, arguments); }; } var _require$codes = require('...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/pipeline.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
602
```javascript 'use strict'; var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE; function highWaterMarkFrom(options, isDuplex, duplexKey) { return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; } function getHighWaterMark(state, options,...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/state.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
209
```javascript module.exports = require('stream'); ```
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/stream.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
8
```javascript 'use strict'; function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerat...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/from.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
741
```javascript 'use strict'; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/buffer_list.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,573
```javascript /** * Helpers. */ var s = 1000; var m = s * 60; var h = m * 60; var d = h * 24; var w = d * 7; var y = d * 365.25; /** * Parse or format the given `val`. * * Options: * * - `long` verbose formatting [false] * * @param {String|Number} val * @param {Object} [options] * @throws {Error} throw an...
/content/code_sandbox/node_modules/superagent/node_modules/ms/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
981
```javascript // // 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, sublic...
/content/code_sandbox/node_modules/superagent/node_modules/readable-stream/lib/_stream_readable.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
9,045
```xml declare module "safe-buffer" { export class Buffer { length: number write(string: string, offset?: number, length?: number, encoding?: string): number; toString(encoding?: string, start?: number, end?: number): string; toJSON(): { type: 'Buffer', data: any[] }; equals(otherBuffer: Buffer): ...
/content/code_sandbox/node_modules/superagent/node_modules/safe-buffer/index.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,112
```javascript /* eslint-disable node/no-deprecated-api */ var buffer = require('buffer') var Buffer = buffer.Buffer // alternative to using Object.keys for old browsers function copyProps (src, dst) { for (var key in src) { dst[key] = src[key] } } if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer...
/content/code_sandbox/node_modules/superagent/node_modules/safe-buffer/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
390
```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 sell co...
/content/code_sandbox/node_modules/superagent/node_modules/combined-stream/License
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
208
```javascript var util = require('util'); var Stream = require('stream').Stream; var DelayedStream = require('delayed-stream'); module.exports = CombinedStream; function CombinedStream() { this.writable = false; this.readable = true; this.dataSize = 0; this.maxDataSize = 2 * 1024 * 1024; this.pauseStreams = ...
/content/code_sandbox/node_modules/superagent/node_modules/combined-stream/lib/combined_stream.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,144
```javascript /** * Detect Electron renderer / nwjs process, which is node, but we should * treat as a browser. */ if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { module.exports = require('./browser.js'); } else { module.exports = require('./node....
/content/code_sandbox/node_modules/superagent/node_modules/debug/src/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
73
```javascript // // 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, sublic...
/content/code_sandbox/node_modules/superagent/node_modules/string_decoder/lib/string_decoder.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,657
```javascript /** * Module dependencies. */ const tty = require('tty'); const util = require('util'); /** * This is the Node.js implementation of `debug()`. */ exports.init = init; exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports...
/content/code_sandbox/node_modules/superagent/node_modules/debug/src/node.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,400
```javascript /** * This is the common logic for both the Node.js and web browser * implementations of `debug()`. */ function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; createDebug.coerce = coerce; createDebug.disable = disable; createDebug.enable = enable; createDebug.e...
/content/code_sandbox/node_modules/superagent/node_modules/debug/src/common.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,693
```javascript /* eslint-env browser */ /** * This is the web browser implementation of `debug()`. */ exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = localstorage(); exports.destroy = (() => { let warned = false; return () => { if (!war...
/content/code_sandbox/node_modules/superagent/node_modules/debug/src/browser.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,732
```unknown .DS_Store npm-debug.log /node_modules ```
/content/code_sandbox/node_modules/esmangle-evaluator/.npmignore
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
12
```javascript /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributio...
/content/code_sandbox/node_modules/esmangle-evaluator/common.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
465
```javascript /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistribut...
/content/code_sandbox/node_modules/esmangle-evaluator/evaluator.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,058
```unknown - Add support for some SITE commands such as CHMOD, CHGRP, and QUOTA - Active (non-passive) data connections - IPv6 support ```
/content/code_sandbox/node_modules/ftp/TODO
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
35
```javascript /*! * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /** * Module dependencies. */ var crypto = require('crypto') , parse = require('url').parse ; /** * Valid keys. ...
/content/code_sandbox/node_modules/aws-sign2/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,062
```javascript var WritableStream = require('stream').Writable || require('readable-stream').Writable, inherits = require('util').inherits, inspect = require('util').inspect; var XRegExp = require('xregexp').XRegExp; var REX_LISTUNIX = XRegExp.cache('^(?<type>[\\-ld])(?<permission>([\\-r][...
/content/code_sandbox/node_modules/ftp/lib/parser.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,241
```javascript require('fs').readdirSync(__dirname).forEach(function(f) { if (f.substr(0, 5) === 'test-') require('./' + f); }); ```
/content/code_sandbox/node_modules/ftp/test/test.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
40
```javascript var Parser = require('../lib/parser'), parseListEntry = Parser.parseListEntry; var path = require('path'), assert = require('assert'), inspect = require('util').inspect; var group = path.basename(__filename, '.js') + '/'; [ { source: 'drwxr-xr-x 10 root root 4096 Dec 21 2012 usr', ...
/content/code_sandbox/node_modules/ftp/test/test-parser.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,227
```javascript module.exports = require("./lib/_stream_transform.js") ```
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/transform.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
12
```javascript module.exports = require("./lib/_stream_duplex.js") ```
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/duplex.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
13
```unknown build/ test/ examples/ fs.js zlib.js ```
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/.npmignore
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
13
```javascript module.exports = require("./lib/_stream_writable.js") ```
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/writable.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
13
```javascript module.exports = require("./lib/_stream_passthrough.js") ```
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/passthrough.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
13
```javascript exports = module.exports = require('./lib/_stream_readable.js'); exports.Stream = require('stream'); exports.Readable = exports; exports.Writable = require('./lib/_stream_writable.js'); exports.Duplex = require('./lib/_stream_duplex.js'); exports.Transform = require('./lib/_stream_transform.js'); exports....
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/readable.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
102
```javascript var fs = require('fs'), tls = require('tls'), zlib = require('zlib'), Socket = require('net').Socket, EventEmitter = require('events').EventEmitter, inherits = require('util').inherits, inspect = require('util').inspect; var Parser = require('./parser'); var XRegExp = require('xre...
/content/code_sandbox/node_modules/ftp/lib/connection.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
7,653
```javascript // // 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, sublic...
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/lib/_stream_passthrough.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
349
```diff diff --git a/lib/_stream_duplex.js b/lib/_stream_duplex.js index c5a741c..a2e0d8e 100644 --- a/lib/_stream_duplex.js +++ b/lib/_stream_duplex.js @@ -26,8 +26,8 @@ module.exports = Duplex; var util = require('util'); -var Readable = require('_stream_readable'); -var Writable = require('_stream_writable'); +v...
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/float.patch
diff
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
8,260
```javascript // // 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, sublic...
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/lib/_stream_writable.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,258
```javascript // // 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, sublic...
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/lib/_stream_transform.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,719
```javascript // // 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, sublic...
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/lib/_stream_duplex.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
647
```javascript module.exports = Array.isArray || function (arr) { return Object.prototype.toString.call(arr) == '[object Array]'; }; ```
/content/code_sandbox/node_modules/ftp/node_modules/isarray/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
26
```javascript /** * Require the given path. * * @param {String} path * @return {Object} exports * @api public */ function require(path, parent, orig) { var resolved = require.resolve(path); // lookup failed if (null == resolved) { orig = orig || path; parent = parent || 'root'; var err = new ...
/content/code_sandbox/node_modules/ftp/node_modules/isarray/build/build.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,063
```javascript 'use strict' module.exports = { afterRequest: require('./afterRequest.json'), beforeRequest: require('./beforeRequest.json'), browser: require('./browser.json'), cache: require('./cache.json'), content: require('./content.json'), cookie: require('./cookie.json'), creator: require('./creator...
/content/code_sandbox/node_modules/har-schema/lib/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
162
```javascript module.exports = Pend; function Pend() { this.pending = 0; this.max = Infinity; this.listeners = []; this.waiting = []; this.error = null; } Pend.prototype.go = function(fn) { if (this.pending < this.max) { pendGo(this, fn); } else { this.waiting.push(fn); } }; Pend.prototype.wa...
/content/code_sandbox/node_modules/pend/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
292
```javascript var assert = require('assert'); var Pend = require('./'); var tests = [ { name: "basic", fn: testBasic, }, { name: "max", fn: testWithMax, }, { name: "callback twice", fn: testCallbackTwice, }, { name: "calling wait twice", fn: testCallingWaitTwice, }, { ...
/content/code_sandbox/node_modules/pend/test.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
683
```javascript // // 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, sublic...
/content/code_sandbox/node_modules/ftp/node_modules/readable-stream/lib/_stream_readable.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
6,741
```javascript /** * marked - a markdown parser * path_to_url */ !function(e){"use strict";var k={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:f,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:f,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$...
/content/code_sandbox/node_modules/marked/marked.min.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
8,554