Showing preview only (5,269K chars total). Download the full file or copy to clipboard to get everything.
Repository: DylanVann/react-native-fast-image
Branch: main
Commit: 9ab80fcd570b
Files: 119
Total size: 5.0 MB
Directory structure:
gitextract_8r78_ugc/
├── .github/
│ ├── ISSUE_TEMPLATE/
│ │ └── bug_report.md
│ └── workflows/
│ └── ci.yml
├── .gitignore
├── .node-version
├── .prettierignore
├── .yarn/
│ └── releases/
│ └── yarn-1.22.10.js
├── .yarnrc
├── CHANGELOG.md
├── LICENSE
├── README.md
├── RNFastImage.podspec
├── ReactNativeFastImageExample/
│ ├── .buckconfig
│ ├── .editorconfig
│ ├── .eslintrc.js
│ ├── .gitattributes
│ ├── .gitignore
│ ├── .prettierrc.js
│ ├── .watchmanconfig
│ ├── __tests__/
│ │ └── App-test.tsx
│ ├── android/
│ │ ├── app/
│ │ │ ├── _BUCK
│ │ │ ├── build.gradle
│ │ │ ├── build_defs.bzl
│ │ │ ├── debug.keystore
│ │ │ ├── proguard-rules.pro
│ │ │ └── src/
│ │ │ ├── debug/
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── java/
│ │ │ │ └── com/
│ │ │ │ └── reactnativefastimageexample/
│ │ │ │ └── ReactNativeFlipper.java
│ │ │ └── main/
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── reactnativefastimageexample/
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── MainApplication.java
│ │ │ └── res/
│ │ │ └── values/
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ ├── build.gradle
│ │ ├── gradle/
│ │ │ └── wrapper/
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ │ ├── gradle.properties
│ │ ├── gradlew
│ │ ├── gradlew.bat
│ │ └── settings.gradle
│ ├── app.json
│ ├── babel.config.js
│ ├── index.js
│ ├── ios/
│ │ ├── Podfile
│ │ ├── ReactNativeFastImageExample/
│ │ │ ├── AppDelegate.h
│ │ │ ├── AppDelegate.m
│ │ │ ├── Images.xcassets/
│ │ │ │ ├── AppIcon.appiconset/
│ │ │ │ │ └── Contents.json
│ │ │ │ └── Contents.json
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── main.m
│ │ ├── ReactNativeFastImageExample.xcodeproj/
│ │ │ ├── project.pbxproj
│ │ │ └── xcshareddata/
│ │ │ └── xcschemes/
│ │ │ └── ReactNativeFastImageExample.xcscheme
│ │ ├── ReactNativeFastImageExample.xcworkspace/
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata/
│ │ │ └── IDEWorkspaceChecks.plist
│ │ └── ReactNativeFastImageExampleTests/
│ │ ├── Info.plist
│ │ └── ReactNativeFastImageExampleTests.m
│ ├── metro.config.js
│ ├── package.json
│ ├── src/
│ │ ├── AutoSizeExample.tsx
│ │ ├── BorderRadiusExample.tsx
│ │ ├── BulletText.tsx
│ │ ├── Button.tsx
│ │ ├── DefaultImageGrid.tsx
│ │ ├── FastImageExamples.tsx
│ │ ├── FastImageGrid.tsx
│ │ ├── FeatureText.tsx
│ │ ├── GifExample.tsx
│ │ ├── Icon.tsx
│ │ ├── ImageGrid.tsx
│ │ ├── LocalImagesExample.tsx
│ │ ├── PreloadExample.tsx
│ │ ├── PriorityExample.tsx
│ │ ├── ProgressExample.tsx
│ │ ├── ResizeModeExample.tsx
│ │ ├── Section.tsx
│ │ ├── SectionFlex.tsx
│ │ ├── StatusBarUnderlay.tsx
│ │ ├── TintColorExample.tsx
│ │ ├── images/
│ │ │ └── fields.ts
│ │ ├── index.tsx
│ │ └── useCacheBust.tsx
│ └── tsconfig.json
├── ReactNativeFastImageExampleServer/
│ ├── index.js
│ └── package.json
├── android/
│ ├── build.gradle
│ └── src/
│ └── main/
│ ├── AndroidManifest.xml
│ └── java/
│ └── com/
│ └── dylanvann/
│ └── fastimage/
│ ├── FastImageCacheControl.java
│ ├── FastImageGlideModule.java
│ ├── FastImageOkHttpProgressGlideModule.java
│ ├── FastImageProgressListener.java
│ ├── FastImageRequestListener.java
│ ├── FastImageSource.java
│ ├── FastImageViewConverter.java
│ ├── FastImageViewManager.java
│ ├── FastImageViewModule.java
│ ├── FastImageViewPackage.java
│ └── FastImageViewWithUrl.java
├── babel.config.js
├── docs/
│ ├── app-glide-module.md
│ ├── development.md
│ ├── how-is-caching-handled.md
│ ├── other-android-versions.md
│ ├── roadmap.md
│ └── troubleshooting.md
├── ios/
│ ├── FastImage/
│ │ ├── FFFastImageSource.h
│ │ ├── FFFastImageSource.m
│ │ ├── FFFastImageView.h
│ │ ├── FFFastImageView.m
│ │ ├── FFFastImageViewManager.h
│ │ ├── FFFastImageViewManager.m
│ │ ├── RCTConvert+FFFastImage.h
│ │ └── RCTConvert+FFFastImage.m
│ └── FastImage.xcodeproj/
│ ├── project.pbxproj
│ └── xcshareddata/
│ └── xcschemes/
│ └── FastImage-tvOS.xcscheme
├── package.json
├── src/
│ ├── __snapshots__/
│ │ └── index.test.tsx.snap
│ ├── index.js.flow
│ ├── index.test.tsx
│ └── index.tsx
└── tsconfig.json
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.md
================================================
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior if possible, or a link to a reproduction repo:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Dependency versions**
- React Native version:
- React version:
- React Native Fast Image version:
**Note:** if these are not the latest versions of each I recommend updating as extra effort will not be taken to be backwards compatible, and updating might resolving your issue.
================================================
FILE: .github/workflows/ci.yml
================================================
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn --frozen-lockfile
- run: yarn build
- run: yarn test --coverage
- if: github.event.repository.fork == false && github.event_name != 'pull_request'
run: yarn dv-scripts ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: codecov/codecov-action@v2
================================================
FILE: .gitignore
================================================
# OSX
#
.DS_Store
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
# CocoaPods
Podfile.lock
Pods
# Android/IJ
#
.idea
*.iml
.gradle
local.properties
# node.js
#
node_modules/
npm-debug.log
lib/android/src/main/gen
example/android/app/src/main/gen
# build
react-native-fast-image-*.tgz
dist/
# coverage reports
coverage
# TypeScript incremental compilation cache
*.tsbuildinfo
================================================
FILE: .node-version
================================================
v15.2.0
================================================
FILE: .prettierignore
================================================
/ReactNativeFastImageExample/
/ReactNativeFastImageExampleServer/
node_modules
coverage
================================================
FILE: .yarn/releases/yarn-1.22.10.js
================================================
#!/usr/bin/env node
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 549);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
module.exports = require("path");
/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (immutable) */ __webpack_exports__["a"] = __extends;
/* unused harmony export __assign */
/* unused harmony export __rest */
/* unused harmony export __decorate */
/* unused harmony export __param */
/* unused harmony export __metadata */
/* unused harmony export __awaiter */
/* unused harmony export __generator */
/* unused harmony export __exportStar */
/* unused harmony export __values */
/* unused harmony export __read */
/* unused harmony export __spread */
/* unused harmony export __await */
/* unused harmony export __asyncGenerator */
/* unused harmony export __asyncDelegator */
/* unused harmony export __asyncValues */
/* unused harmony export __makeTemplateObject */
/* unused harmony export __importStar */
/* unused harmony export __importDefault */
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
}
return __assign.apply(this, arguments);
}
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
}
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter(thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
function __exportStar(m, exports) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
function __values(o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}
function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}
function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}
function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result.default = mod;
return result;
}
function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _promise = __webpack_require__(227);
var _promise2 = _interopRequireDefault(_promise);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function (fn) {
return function () {
var gen = fn.apply(this, arguments);
return new _promise2.default(function (resolve, reject) {
function step(key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
return _promise2.default.resolve(value).then(function (value) {
step("next", value);
}, function (err) {
step("throw", err);
});
}
}
return step("next");
});
};
};
/***/ }),
/* 3 */
/***/ (function(module, exports) {
module.exports = require("util");
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getFirstSuitableFolder = exports.readFirstAvailableStream = exports.makeTempDir = exports.hardlinksWork = exports.writeFilePreservingEol = exports.getFileSizeOnDisk = exports.walk = exports.symlink = exports.find = exports.readJsonAndFile = exports.readJson = exports.readFileAny = exports.hardlinkBulk = exports.copyBulk = exports.unlink = exports.glob = exports.link = exports.chmod = exports.lstat = exports.exists = exports.mkdirp = exports.stat = exports.access = exports.rename = exports.readdir = exports.realpath = exports.readlink = exports.writeFile = exports.open = exports.readFileBuffer = exports.lockQueue = exports.constants = undefined;
var _asyncToGenerator2;
function _load_asyncToGenerator() {
return _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(2));
}
let buildActionsForCopy = (() => {
var _ref = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (queue, events, possibleExtraneous, reporter) {
//
let build = (() => {
var _ref5 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (data) {
const src = data.src,
dest = data.dest,
type = data.type;
const onFresh = data.onFresh || noop;
const onDone = data.onDone || noop;
// TODO https://github.com/yarnpkg/yarn/issues/3751
// related to bundled dependencies handling
if (files.has(dest.toLowerCase())) {
reporter.verbose(`The case-insensitive file ${dest} shouldn't be copied twice in one bulk copy`);
} else {
files.add(dest.toLowerCase());
}
if (type === 'symlink') {
yield mkdirp((_path || _load_path()).default.dirname(dest));
onFresh();
actions.symlink.push({
dest,
linkname: src
});
onDone();
return;
}
if (events.ignoreBasenames.indexOf((_path || _load_path()).default.basename(src)) >= 0) {
// ignored file
return;
}
const srcStat = yield lstat(src);
let srcFiles;
if (srcStat.isDirectory()) {
srcFiles = yield readdir(src);
}
let destStat;
try {
// try accessing the destination
destStat = yield lstat(dest);
} catch (e) {
// proceed if destination doesn't exist, otherwise error
if (e.code !== 'ENOENT') {
throw e;
}
}
// if destination exists
if (destStat) {
const bothSymlinks = srcStat.isSymbolicLink() && destStat.isSymbolicLink();
const bothFolders = srcStat.isDirectory() && destStat.isDirectory();
const bothFiles = srcStat.isFile() && destStat.isFile();
// EINVAL access errors sometimes happen which shouldn't because node shouldn't be giving
// us modes that aren't valid. investigate this, it's generally safe to proceed.
/* if (srcStat.mode !== destStat.mode) {
try {
await access(dest, srcStat.mode);
} catch (err) {}
} */
if (bothFiles && artifactFiles.has(dest)) {
// this file gets changed during build, likely by a custom install script. Don't bother checking it.
onDone();
reporter.verbose(reporter.lang('verboseFileSkipArtifact', src));
return;
}
if (bothFiles && srcStat.size === destStat.size && (0, (_fsNormalized || _load_fsNormalized()).fileDatesEqual)(srcStat.mtime, destStat.mtime)) {
// we can safely assume this is the same file
onDone();
reporter.verbose(reporter.lang('verboseFileSkip', src, dest, srcStat.size, +srcStat.mtime));
return;
}
if (bothSymlinks) {
const srcReallink = yield readlink(src);
if (srcReallink === (yield readlink(dest))) {
// if both symlinks are the same then we can continue on
onDone();
reporter.verbose(reporter.lang('verboseFileSkipSymlink', src, dest, srcReallink));
return;
}
}
if (bothFolders) {
// mark files that aren't in this folder as possibly extraneous
const destFiles = yield readdir(dest);
invariant(srcFiles, 'src files not initialised');
for (var _iterator4 = destFiles, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) {
var _ref6;
if (_isArray4) {
if (_i4 >= _iterator4.length) break;
_ref6 = _iterator4[_i4++];
} else {
_i4 = _iterator4.next();
if (_i4.done) break;
_ref6 = _i4.value;
}
const file = _ref6;
if (srcFiles.indexOf(file) < 0) {
const loc = (_path || _load_path()).default.join(dest, file);
possibleExtraneous.add(loc);
if ((yield lstat(loc)).isDirectory()) {
for (var _iterator5 = yield readdir(loc), _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) {
var _ref7;
if (_isArray5) {
if (_i5 >= _iterator5.length) break;
_ref7 = _iterator5[_i5++];
} else {
_i5 = _iterator5.next();
if (_i5.done) break;
_ref7 = _i5.value;
}
const file = _ref7;
possibleExtraneous.add((_path || _load_path()).default.join(loc, file));
}
}
}
}
}
}
if (destStat && destStat.isSymbolicLink()) {
yield (0, (_fsNormalized || _load_fsNormalized()).unlink)(dest);
destStat = null;
}
if (srcStat.isSymbolicLink()) {
onFresh();
const linkname = yield readlink(src);
actions.symlink.push({
dest,
linkname
});
onDone();
} else if (srcStat.isDirectory()) {
if (!destStat) {
reporter.verbose(reporter.lang('verboseFileFolder', dest));
yield mkdirp(dest);
}
const destParts = dest.split((_path || _load_path()).default.sep);
while (destParts.length) {
files.add(destParts.join((_path || _load_path()).default.sep).toLowerCase());
destParts.pop();
}
// push all files to queue
invariant(srcFiles, 'src files not initialised');
let remaining = srcFiles.length;
if (!remaining) {
onDone();
}
for (var _iterator6 = srcFiles, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) {
var _ref8;
if (_isArray6) {
if (_i6 >= _iterator6.length) break;
_ref8 = _iterator6[_i6++];
} else {
_i6 = _iterator6.next();
if (_i6.done) break;
_ref8 = _i6.value;
}
const file = _ref8;
queue.push({
dest: (_path || _load_path()).default.join(dest, file),
onFresh,
onDone: function (_onDone) {
function onDone() {
return _onDone.apply(this, arguments);
}
onDone.toString = function () {
return _onDone.toString();
};
return onDone;
}(function () {
if (--remaining === 0) {
onDone();
}
}),
src: (_path || _load_path()).default.join(src, file)
});
}
} else if (srcStat.isFile()) {
onFresh();
actions.file.push({
src,
dest,
atime: srcStat.atime,
mtime: srcStat.mtime,
mode: srcStat.mode
});
onDone();
} else {
throw new Error(`unsure how to copy this: ${src}`);
}
});
return function build(_x5) {
return _ref5.apply(this, arguments);
};
})();
const artifactFiles = new Set(events.artifactFiles || []);
const files = new Set();
// initialise events
for (var _iterator = queue, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
var _ref2;
if (_isArray) {
if (_i >= _iterator.length) break;
_ref2 = _iterator[_i++];
} else {
_i = _iterator.next();
if (_i.done) break;
_ref2 = _i.value;
}
const item = _ref2;
const onDone = item.onDone;
item.onDone = function () {
events.onProgress(item.dest);
if (onDone) {
onDone();
}
};
}
events.onStart(queue.length);
// start building actions
const actions = {
file: [],
symlink: [],
link: []
};
// custom concurrency logic as we're always executing stacks of CONCURRENT_QUEUE_ITEMS queue items
// at a time due to the requirement to push items onto the queue
while (queue.length) {
const items = queue.splice(0, CONCURRENT_QUEUE_ITEMS);
yield Promise.all(items.map(build));
}
// simulate the existence of some files to prevent considering them extraneous
for (var _iterator2 = artifactFiles, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
var _ref3;
if (_isArray2) {
if (_i2 >= _iterator2.length) break;
_ref3 = _iterator2[_i2++];
} else {
_i2 = _iterator2.next();
if (_i2.done) break;
_ref3 = _i2.value;
}
const file = _ref3;
if (possibleExtraneous.has(file)) {
reporter.verbose(reporter.lang('verboseFilePhantomExtraneous', file));
possibleExtraneous.delete(file);
}
}
for (var _iterator3 = possibleExtraneous, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
var _ref4;
if (_isArray3) {
if (_i3 >= _iterator3.length) break;
_ref4 = _iterator3[_i3++];
} else {
_i3 = _iterator3.next();
if (_i3.done) break;
_ref4 = _i3.value;
}
const loc = _ref4;
if (files.has(loc.toLowerCase())) {
possibleExtraneous.delete(loc);
}
}
return actions;
});
return function buildActionsForCopy(_x, _x2, _x3, _x4) {
return _ref.apply(this, arguments);
};
})();
let buildActionsForHardlink = (() => {
var _ref9 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (queue, events, possibleExtraneous, reporter) {
//
let build = (() => {
var _ref13 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (data) {
const src = data.src,
dest = data.dest;
const onFresh = data.onFresh || noop;
const onDone = data.onDone || noop;
if (files.has(dest.toLowerCase())) {
// Fixes issue https://github.com/yarnpkg/yarn/issues/2734
// When bulk hardlinking we have A -> B structure that we want to hardlink to A1 -> B1,
// package-linker passes that modules A1 and B1 need to be hardlinked,
// the recursive linking algorithm of A1 ends up scheduling files in B1 to be linked twice which will case
// an exception.
onDone();
return;
}
files.add(dest.toLowerCase());
if (events.ignoreBasenames.indexOf((_path || _load_path()).default.basename(src)) >= 0) {
// ignored file
return;
}
const srcStat = yield lstat(src);
let srcFiles;
if (srcStat.isDirectory()) {
srcFiles = yield readdir(src);
}
const destExists = yield exists(dest);
if (destExists) {
const destStat = yield lstat(dest);
const bothSymlinks = srcStat.isSymbolicLink() && destStat.isSymbolicLink();
const bothFolders = srcStat.isDirectory() && destStat.isDirectory();
const bothFiles = srcStat.isFile() && destStat.isFile();
if (srcStat.mode !== destStat.mode) {
try {
yield access(dest, srcStat.mode);
} catch (err) {
// EINVAL access errors sometimes happen which shouldn't because node shouldn't be giving
// us modes that aren't valid. investigate this, it's generally safe to proceed.
reporter.verbose(err);
}
}
if (bothFiles && artifactFiles.has(dest)) {
// this file gets changed during build, likely by a custom install script. Don't bother checking it.
onDone();
reporter.verbose(reporter.lang('verboseFileSkipArtifact', src));
return;
}
// correct hardlink
if (bothFiles && srcStat.ino !== null && srcStat.ino === destStat.ino) {
onDone();
reporter.verbose(reporter.lang('verboseFileSkip', src, dest, srcStat.ino));
return;
}
if (bothSymlinks) {
const srcReallink = yield readlink(src);
if (srcReallink === (yield readlink(dest))) {
// if both symlinks are the same then we can continue on
onDone();
reporter.verbose(reporter.lang('verboseFileSkipSymlink', src, dest, srcReallink));
return;
}
}
if (bothFolders) {
// mark files that aren't in this folder as possibly extraneous
const destFiles = yield readdir(dest);
invariant(srcFiles, 'src files not initialised');
for (var _iterator10 = destFiles, _isArray10 = Array.isArray(_iterator10), _i10 = 0, _iterator10 = _isArray10 ? _iterator10 : _iterator10[Symbol.iterator]();;) {
var _ref14;
if (_isArray10) {
if (_i10 >= _iterator10.length) break;
_ref14 = _iterator10[_i10++];
} else {
_i10 = _iterator10.next();
if (_i10.done) break;
_ref14 = _i10.value;
}
const file = _ref14;
if (srcFiles.indexOf(file) < 0) {
const loc = (_path || _load_path()).default.join(dest, file);
possibleExtraneous.add(loc);
if ((yield lstat(loc)).isDirectory()) {
for (var _iterator11 = yield readdir(loc), _isArray11 = Array.isArray(_iterator11), _i11 = 0, _iterator11 = _isArray11 ? _iterator11 : _iterator11[Symbol.iterator]();;) {
var _ref15;
if (_isArray11) {
if (_i11 >= _iterator11.length) break;
_ref15 = _iterator11[_i11++];
} else {
_i11 = _iterator11.next();
if (_i11.done) break;
_ref15 = _i11.value;
}
const file = _ref15;
possibleExtraneous.add((_path || _load_path()).default.join(loc, file));
}
}
}
}
}
}
if (srcStat.isSymbolicLink()) {
onFresh();
const linkname = yield readlink(src);
actions.symlink.push({
dest,
linkname
});
onDone();
} else if (srcStat.isDirectory()) {
reporter.verbose(reporter.lang('verboseFileFolder', dest));
yield mkdirp(dest);
const destParts = dest.split((_path || _load_path()).default.sep);
while (destParts.length) {
files.add(destParts.join((_path || _load_path()).default.sep).toLowerCase());
destParts.pop();
}
// push all files to queue
invariant(srcFiles, 'src files not initialised');
let remaining = srcFiles.length;
if (!remaining) {
onDone();
}
for (var _iterator12 = srcFiles, _isArray12 = Array.isArray(_iterator12), _i12 = 0, _iterator12 = _isArray12 ? _iterator12 : _iterator12[Symbol.iterator]();;) {
var _ref16;
if (_isArray12) {
if (_i12 >= _iterator12.length) break;
_ref16 = _iterator12[_i12++];
} else {
_i12 = _iterator12.next();
if (_i12.done) break;
_ref16 = _i12.value;
}
const file = _ref16;
queue.push({
onFresh,
src: (_path || _load_path()).default.join(src, file),
dest: (_path || _load_path()).default.join(dest, file),
onDone: function (_onDone2) {
function onDone() {
return _onDone2.apply(this, arguments);
}
onDone.toString = function () {
return _onDone2.toString();
};
return onDone;
}(function () {
if (--remaining === 0) {
onDone();
}
})
});
}
} else if (srcStat.isFile()) {
onFresh();
actions.link.push({
src,
dest,
removeDest: destExists
});
onDone();
} else {
throw new Error(`unsure how to copy this: ${src}`);
}
});
return function build(_x10) {
return _ref13.apply(this, arguments);
};
})();
const artifactFiles = new Set(events.artifactFiles || []);
const files = new Set();
// initialise events
for (var _iterator7 = queue, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) {
var _ref10;
if (_isArray7) {
if (_i7 >= _iterator7.length) break;
_ref10 = _iterator7[_i7++];
} else {
_i7 = _iterator7.next();
if (_i7.done) break;
_ref10 = _i7.value;
}
const item = _ref10;
const onDone = item.onDone || noop;
item.onDone = function () {
events.onProgress(item.dest);
onDone();
};
}
events.onStart(queue.length);
// start building actions
const actions = {
file: [],
symlink: [],
link: []
};
// custom concurrency logic as we're always executing stacks of CONCURRENT_QUEUE_ITEMS queue items
// at a time due to the requirement to push items onto the queue
while (queue.length) {
const items = queue.splice(0, CONCURRENT_QUEUE_ITEMS);
yield Promise.all(items.map(build));
}
// simulate the existence of some files to prevent considering them extraneous
for (var _iterator8 = artifactFiles, _isArray8 = Array.isArray(_iterator8), _i8 = 0, _iterator8 = _isArray8 ? _iterator8 : _iterator8[Symbol.iterator]();;) {
var _ref11;
if (_isArray8) {
if (_i8 >= _iterator8.length) break;
_ref11 = _iterator8[_i8++];
} else {
_i8 = _iterator8.next();
if (_i8.done) break;
_ref11 = _i8.value;
}
const file = _ref11;
if (possibleExtraneous.has(file)) {
reporter.verbose(reporter.lang('verboseFilePhantomExtraneous', file));
possibleExtraneous.delete(file);
}
}
for (var _iterator9 = possibleExtraneous, _isArray9 = Array.isArray(_iterator9), _i9 = 0, _iterator9 = _isArray9 ? _iterator9 : _iterator9[Symbol.iterator]();;) {
var _ref12;
if (_isArray9) {
if (_i9 >= _iterator9.length) break;
_ref12 = _iterator9[_i9++];
} else {
_i9 = _iterator9.next();
if (_i9.done) break;
_ref12 = _i9.value;
}
const loc = _ref12;
if (files.has(loc.toLowerCase())) {
possibleExtraneous.delete(loc);
}
}
return actions;
});
return function buildActionsForHardlink(_x6, _x7, _x8, _x9) {
return _ref9.apply(this, arguments);
};
})();
let copyBulk = exports.copyBulk = (() => {
var _ref17 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (queue, reporter, _events) {
const events = {
onStart: _events && _events.onStart || noop,
onProgress: _events && _events.onProgress || noop,
possibleExtraneous: _events ? _events.possibleExtraneous : new Set(),
ignoreBasenames: _events && _events.ignoreBasenames || [],
artifactFiles: _events && _events.artifactFiles || []
};
const actions = yield buildActionsForCopy(queue, events, events.possibleExtraneous, reporter);
events.onStart(actions.file.length + actions.symlink.length + actions.link.length);
const fileActions = actions.file;
const currentlyWriting = new Map();
yield (_promise || _load_promise()).queue(fileActions, (() => {
var _ref18 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (data) {
let writePromise;
while (writePromise = currentlyWriting.get(data.dest)) {
yield writePromise;
}
reporter.verbose(reporter.lang('verboseFileCopy', data.src, data.dest));
const copier = (0, (_fsNormalized || _load_fsNormalized()).copyFile)(data, function () {
return currentlyWriting.delete(data.dest);
});
currentlyWriting.set(data.dest, copier);
events.onProgress(data.dest);
return copier;
});
return function (_x14) {
return _ref18.apply(this, arguments);
};
})(), CONCURRENT_QUEUE_ITEMS);
// we need to copy symlinks last as they could reference files we were copying
const symlinkActions = actions.symlink;
yield (_promise || _load_promise()).queue(symlinkActions, function (data) {
const linkname = (_path || _load_path()).default.resolve((_path || _load_path()).default.dirname(data.dest), data.linkname);
reporter.verbose(reporter.lang('verboseFileSymlink', data.dest, linkname));
return symlink(linkname, data.dest);
});
});
return function copyBulk(_x11, _x12, _x13) {
return _ref17.apply(this, arguments);
};
})();
let hardlinkBulk = exports.hardlinkBulk = (() => {
var _ref19 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (queue, reporter, _events) {
const events = {
onStart: _events && _events.onStart || noop,
onProgress: _events && _events.onProgress || noop,
possibleExtraneous: _events ? _events.possibleExtraneous : new Set(),
artifactFiles: _events && _events.artifactFiles || [],
ignoreBasenames: []
};
const actions = yield buildActionsForHardlink(queue, events, events.possibleExtraneous, reporter);
events.onStart(actions.file.length + actions.symlink.length + actions.link.length);
const fileActions = actions.link;
yield (_promise || _load_promise()).queue(fileActions, (() => {
var _ref20 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (data) {
reporter.verbose(reporter.lang('verboseFileLink', data.src, data.dest));
if (data.removeDest) {
yield (0, (_fsNormalized || _load_fsNormalized()).unlink)(data.dest);
}
yield link(data.src, data.dest);
});
return function (_x18) {
return _ref20.apply(this, arguments);
};
})(), CONCURRENT_QUEUE_ITEMS);
// we need to copy symlinks last as they could reference files we were copying
const symlinkActions = actions.symlink;
yield (_promise || _load_promise()).queue(symlinkActions, function (data) {
const linkname = (_path || _load_path()).default.resolve((_path || _load_path()).default.dirname(data.dest), data.linkname);
reporter.verbose(reporter.lang('verboseFileSymlink', data.dest, linkname));
return symlink(linkname, data.dest);
});
});
return function hardlinkBulk(_x15, _x16, _x17) {
return _ref19.apply(this, arguments);
};
})();
let readFileAny = exports.readFileAny = (() => {
var _ref21 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (files) {
for (var _iterator13 = files, _isArray13 = Array.isArray(_iterator13), _i13 = 0, _iterator13 = _isArray13 ? _iterator13 : _iterator13[Symbol.iterator]();;) {
var _ref22;
if (_isArray13) {
if (_i13 >= _iterator13.length) break;
_ref22 = _iterator13[_i13++];
} else {
_i13 = _iterator13.next();
if (_i13.done) break;
_ref22 = _i13.value;
}
const file = _ref22;
if (yield exists(file)) {
return readFile(file);
}
}
return null;
});
return function readFileAny(_x19) {
return _ref21.apply(this, arguments);
};
})();
let readJson = exports.readJson = (() => {
var _ref23 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (loc) {
return (yield readJsonAndFile(loc)).object;
});
return function readJson(_x20) {
return _ref23.apply(this, arguments);
};
})();
let readJsonAndFile = exports.readJsonAndFile = (() => {
var _ref24 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (loc) {
const file = yield readFile(loc);
try {
return {
object: (0, (_map || _load_map()).default)(JSON.parse(stripBOM(file))),
content: file
};
} catch (err) {
err.message = `${loc}: ${err.message}`;
throw err;
}
});
return function readJsonAndFile(_x21) {
return _ref24.apply(this, arguments);
};
})();
let find = exports.find = (() => {
var _ref25 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (filename, dir) {
const parts = dir.split((_path || _load_path()).default.sep);
while (parts.length) {
const loc = parts.concat(filename).join((_path || _load_path()).default.sep);
if (yield exists(loc)) {
return loc;
} else {
parts.pop();
}
}
return false;
});
return function find(_x22, _x23) {
return _ref25.apply(this, arguments);
};
})();
let symlink = exports.symlink = (() => {
var _ref26 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (src, dest) {
if (process.platform !== 'win32') {
// use relative paths otherwise which will be retained if the directory is moved
src = (_path || _load_path()).default.relative((_path || _load_path()).default.dirname(dest), src);
// When path.relative returns an empty string for the current directory, we should instead use
// '.', which is a valid fs.symlink target.
src = src || '.';
}
try {
const stats = yield lstat(dest);
if (stats.isSymbolicLink()) {
const resolved = dest;
if (resolved === src) {
return;
}
}
} catch (err) {
if (err.code !== 'ENOENT') {
throw err;
}
}
// We use rimraf for unlink which never throws an ENOENT on missing target
yield (0, (_fsNormalized || _load_fsNormalized()).unlink)(dest);
if (process.platform === 'win32') {
// use directory junctions if possible on win32, this requires absolute paths
yield fsSymlink(src, dest, 'junction');
} else {
yield fsSymlink(src, dest);
}
});
return function symlink(_x24, _x25) {
return _ref26.apply(this, arguments);
};
})();
let walk = exports.walk = (() => {
var _ref27 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (dir, relativeDir, ignoreBasenames = new Set()) {
let files = [];
let filenames = yield readdir(dir);
if (ignoreBasenames.size) {
filenames = filenames.filter(function (name) {
return !ignoreBasenames.has(name);
});
}
for (var _iterator14 = filenames, _isArray14 = Array.isArray(_iterator14), _i14 = 0, _iterator14 = _isArray14 ? _iterator14 : _iterator14[Symbol.iterator]();;) {
var _ref28;
if (_isArray14) {
if (_i14 >= _iterator14.length) break;
_ref28 = _iterator14[_i14++];
} else {
_i14 = _iterator14.next();
if (_i14.done) break;
_ref28 = _i14.value;
}
const name = _ref28;
const relative = relativeDir ? (_path || _load_path()).default.join(relativeDir, name) : name;
const loc = (_path || _load_path()).default.join(dir, name);
const stat = yield lstat(loc);
files.push({
relative,
basename: name,
absolute: loc,
mtime: +stat.mtime
});
if (stat.isDirectory()) {
files = files.concat((yield walk(loc, relative, ignoreBasenames)));
}
}
return files;
});
return function walk(_x26, _x27) {
return _ref27.apply(this, arguments);
};
})();
let getFileSizeOnDisk = exports.getFileSizeOnDisk = (() => {
var _ref29 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (loc) {
const stat = yield lstat(loc);
const size = stat.size,
blockSize = stat.blksize;
return Math.ceil(size / blockSize) * blockSize;
});
return function getFileSizeOnDisk(_x28) {
return _ref29.apply(this, arguments);
};
})();
let getEolFromFile = (() => {
var _ref30 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (path) {
if (!(yield exists(path))) {
return undefined;
}
const buffer = yield readFileBuffer(path);
for (let i = 0; i < buffer.length; ++i) {
if (buffer[i] === cr) {
return '\r\n';
}
if (buffer[i] === lf) {
return '\n';
}
}
return undefined;
});
return function getEolFromFile(_x29) {
return _ref30.apply(this, arguments);
};
})();
let writeFilePreservingEol = exports.writeFilePreservingEol = (() => {
var _ref31 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (path, data) {
const eol = (yield getEolFromFile(path)) || (_os || _load_os()).default.EOL;
if (eol !== '\n') {
data = data.replace(/\n/g, eol);
}
yield writeFile(path, data);
});
return function writeFilePreservingEol(_x30, _x31) {
return _ref31.apply(this, arguments);
};
})();
let hardlinksWork = exports.hardlinksWork = (() => {
var _ref32 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (dir) {
const filename = 'test-file' + Math.random();
const file = (_path || _load_path()).default.join(dir, filename);
const fileLink = (_path || _load_path()).default.join(dir, filename + '-link');
try {
yield writeFile(file, 'test');
yield link(file, fileLink);
} catch (err) {
return false;
} finally {
yield (0, (_fsNormalized || _load_fsNormalized()).unlink)(file);
yield (0, (_fsNormalized || _load_fsNormalized()).unlink)(fileLink);
}
return true;
});
return function hardlinksWork(_x32) {
return _ref32.apply(this, arguments);
};
})();
// not a strict polyfill for Node's fs.mkdtemp
let makeTempDir = exports.makeTempDir = (() => {
var _ref33 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (prefix) {
const dir = (_path || _load_path()).default.join((_os || _load_os()).default.tmpdir(), `yarn-${prefix || ''}-${Date.now()}-${Math.random()}`);
yield (0, (_fsNormalized || _load_fsNormalized()).unlink)(dir);
yield mkdirp(dir);
return dir;
});
return function makeTempDir(_x33) {
return _ref33.apply(this, arguments);
};
})();
let readFirstAvailableStream = exports.readFirstAvailableStream = (() => {
var _ref34 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (paths) {
for (var _iterator15 = paths, _isArray15 = Array.isArray(_iterator15), _i15 = 0, _iterator15 = _isArray15 ? _iterator15 : _iterator15[Symbol.iterator]();;) {
var _ref35;
if (_isArray15) {
if (_i15 >= _iterator15.length) break;
_ref35 = _iterator15[_i15++];
} else {
_i15 = _iterator15.next();
if (_i15.done) break;
_ref35 = _i15.value;
}
const path = _ref35;
try {
const fd = yield open(path, 'r');
return (_fs || _load_fs()).default.createReadStream(path, { fd });
} catch (err) {
// Try the next one
}
}
return null;
});
return function readFirstAvailableStream(_x34) {
return _ref34.apply(this, arguments);
};
})();
let getFirstSuitableFolder = exports.getFirstSuitableFolder = (() => {
var _ref36 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (paths, mode = constants.W_OK | constants.X_OK) {
const result = {
skipped: [],
folder: null
};
for (var _iterator16 = paths, _isArray16 = Array.isArray(_iterator16), _i16 = 0, _iterator16 = _isArray16 ? _iterator16 : _iterator16[Symbol.iterator]();;) {
var _ref37;
if (_isArray16) {
if (_i16 >= _iterator16.length) break;
_ref37 = _iterator16[_i16++];
} else {
_i16 = _iterator16.next();
if (_i16.done) break;
_ref37 = _i16.value;
}
const folder = _ref37;
try {
yield mkdirp(folder);
yield access(folder, mode);
result.folder = folder;
return result;
} catch (error) {
result.skipped.push({
error,
folder
});
}
}
return result;
});
return function getFirstSuitableFolder(_x35) {
return _ref36.apply(this, arguments);
};
})();
exports.copy = copy;
exports.readFile = readFile;
exports.readFileRaw = readFileRaw;
exports.normalizeOS = normalizeOS;
var _fs;
function _load_fs() {
return _fs = _interopRequireDefault(__webpack_require__(5));
}
var _glob;
function _load_glob() {
return _glob = _interopRequireDefault(__webpack_require__(99));
}
var _os;
function _load_os() {
return _os = _interopRequireDefault(__webpack_require__(46));
}
var _path;
function _load_path() {
return _path = _interopRequireDefault(__webpack_require__(0));
}
var _blockingQueue;
function _load_blockingQueue() {
return _blockingQueue = _interopRequireDefault(__webpack_require__(110));
}
var _promise;
function _load_promise() {
return _promise = _interopRequireWildcard(__webpack_require__(50));
}
var _promise2;
function _load_promise2() {
return _promise2 = __webpack_require__(50);
}
var _map;
function _load_map() {
return _map = _interopRequireDefault(__webpack_require__(29));
}
var _fsNormalized;
function _load_fsNormalized() {
return _fsNormalized = __webpack_require__(218);
}
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const constants = exports.constants = typeof (_fs || _load_fs()).default.constants !== 'undefined' ? (_fs || _load_fs()).default.constants : {
R_OK: (_fs || _load_fs()).default.R_OK,
W_OK: (_fs || _load_fs()).default.W_OK,
X_OK: (_fs || _load_fs()).default.X_OK
};
const lockQueue = exports.lockQueue = new (_blockingQueue || _load_blockingQueue()).default('fs lock');
const readFileBuffer = exports.readFileBuffer = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.readFile);
const open = exports.open = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.open);
const writeFile = exports.writeFile = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.writeFile);
const readlink = exports.readlink = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.readlink);
const realpath = exports.realpath = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.realpath);
const readdir = exports.readdir = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.readdir);
const rename = exports.rename = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.rename);
const access = exports.access = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.access);
const stat = exports.stat = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.stat);
const mkdirp = exports.mkdirp = (0, (_promise2 || _load_promise2()).promisify)(__webpack_require__(145));
const exists = exports.exists = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.exists, true);
const lstat = exports.lstat = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.lstat);
const chmod = exports.chmod = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.chmod);
const link = exports.link = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.link);
const glob = exports.glob = (0, (_promise2 || _load_promise2()).promisify)((_glob || _load_glob()).default);
exports.unlink = (_fsNormalized || _load_fsNormalized()).unlink;
// fs.copyFile uses the native file copying instructions on the system, performing much better
// than any JS-based solution and consumes fewer resources. Repeated testing to fine tune the
// concurrency level revealed 128 as the sweet spot on a quad-core, 16 CPU Intel system with SSD.
const CONCURRENT_QUEUE_ITEMS = (_fs || _load_fs()).default.copyFile ? 128 : 4;
const fsSymlink = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.symlink);
const invariant = __webpack_require__(9);
const stripBOM = __webpack_require__(160);
const noop = () => {};
function copy(src, dest, reporter) {
return copyBulk([{ src, dest }], reporter);
}
function _readFile(loc, encoding) {
return new Promise((resolve, reject) => {
(_fs || _load_fs()).default.readFile(loc, encoding, function (err, content) {
if (err) {
reject(err);
} else {
resolve(content);
}
});
});
}
function readFile(loc) {
return _readFile(loc, 'utf8').then(normalizeOS);
}
function readFileRaw(loc) {
return _readFile(loc, 'binary');
}
function normalizeOS(body) {
return body.replace(/\r\n/g, '\n');
}
const cr = '\r'.charCodeAt(0);
const lf = '\n'.charCodeAt(0);
/***/ }),
/* 5 */
/***/ (function(module, exports) {
module.exports = require("fs");
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
class MessageError extends Error {
constructor(msg, code) {
super(msg);
this.code = code;
}
}
exports.MessageError = MessageError;
class ProcessSpawnError extends MessageError {
constructor(msg, code, process) {
super(msg, code);
this.process = process;
}
}
exports.ProcessSpawnError = ProcessSpawnError;
class SecurityError extends MessageError {}
exports.SecurityError = SecurityError;
class ProcessTermError extends MessageError {}
exports.ProcessTermError = ProcessTermError;
class ResponseError extends Error {
constructor(msg, responseCode) {
super(msg);
this.responseCode = responseCode;
}
}
exports.ResponseError = ResponseError;
class OneTimePasswordError extends Error {}
exports.OneTimePasswordError = OneTimePasswordError;
/***/ }),
/* 7 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subscriber; });
/* unused harmony export SafeSubscriber */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isFunction__ = __webpack_require__(154);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Observer__ = __webpack_require__(420);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscription__ = __webpack_require__(25);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__internal_symbol_rxSubscriber__ = __webpack_require__(321);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(185);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__util_hostReportError__ = __webpack_require__(323);
/** PURE_IMPORTS_START tslib,_util_isFunction,_Observer,_Subscription,_internal_symbol_rxSubscriber,_config,_util_hostReportError PURE_IMPORTS_END */
var Subscriber = /*@__PURE__*/ (function (_super) {
__WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](Subscriber, _super);
function Subscriber(destinationOrNext, error, complete) {
var _this = _super.call(this) || this;
_this.syncErrorValue = null;
_this.syncErrorThrown = false;
_this.syncErrorThrowable = false;
_this.isStopped = false;
_this._parentSubscription = null;
switch (arguments.length) {
case 0:
_this.destination = __WEBPACK_IMPORTED_MODULE_2__Observer__["a" /* empty */];
break;
case 1:
if (!destinationOrNext) {
_this.destination = __WEBPACK_IMPORTED_MODULE_2__Observer__["a" /* empty */];
break;
}
if (typeof destinationOrNext === 'object') {
if (destinationOrNext instanceof Subscriber) {
_this.syncErrorThrowable = destinationOrNext.syncErrorThrowable;
_this.destination = destinationOrNext;
destinationOrNext.add(_this);
}
else {
_this.syncErrorThrowable = true;
_this.destination = new SafeSubscriber(_this, destinationOrNext);
}
break;
}
default:
_this.syncErrorThrowable = true;
_this.destination = new SafeSubscriber(_this, destinationOrNext, error, complete);
break;
}
return _this;
}
Subscriber.prototype[__WEBPACK_IMPORTED_MODULE_4__internal_symbol_rxSubscriber__["a" /* rxSubscriber */]] = function () { return this; };
Subscriber.create = function (next, error, complete) {
var subscriber = new Subscriber(next, error, complete);
subscriber.syncErrorThrowable = false;
return subscriber;
};
Subscriber.prototype.next = function (value) {
if (!this.isStopped) {
this._next(value);
}
};
Subscriber.prototype.error = function (err) {
if (!this.isStopped) {
this.isStopped = true;
this._error(err);
}
};
Subscriber.prototype.complete = function () {
if (!this.isStopped) {
this.isStopped = true;
this._complete();
}
};
Subscriber.prototype.unsubscribe = function () {
if (this.closed) {
return;
}
this.isStopped = true;
_super.prototype.unsubscribe.call(this);
};
Subscriber.prototype._next = function (value) {
this.destination.next(value);
};
Subscriber.prototype._error = function (err) {
this.destination.error(err);
this.unsubscribe();
};
Subscriber.prototype._complete = function () {
this.destination.complete();
this.unsubscribe();
};
Subscriber.prototype._unsubscribeAndRecycle = function () {
var _a = this, _parent = _a._parent, _parents = _a._parents;
this._parent = null;
this._parents = null;
this.unsubscribe();
this.closed = false;
this.isStopped = false;
this._parent = _parent;
this._parents = _parents;
this._parentSubscription = null;
return this;
};
return Subscriber;
}(__WEBPACK_IMPORTED_MODULE_3__Subscription__["a" /* Subscription */]));
var SafeSubscriber = /*@__PURE__*/ (function (_super) {
__WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](SafeSubscriber, _super);
function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) {
var _this = _super.call(this) || this;
_this._parentSubscriber = _parentSubscriber;
var next;
var context = _this;
if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__util_isFunction__["a" /* isFunction */])(observerOrNext)) {
next = observerOrNext;
}
else if (observerOrNext) {
next = observerOrNext.next;
error = observerOrNext.error;
complete = observerOrNext.complete;
if (observerOrNext !== __WEBPACK_IMPORTED_MODULE_2__Observer__["a" /* empty */]) {
context = Object.create(observerOrNext);
if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__util_isFunction__["a" /* isFunction */])(context.unsubscribe)) {
_this.add(context.unsubscribe.bind(context));
}
context.unsubscribe = _this.unsubscribe.bind(_this);
}
}
_this._context = context;
_this._next = next;
_this._error = error;
_this._complete = complete;
return _this;
}
SafeSubscriber.prototype.next = function (value) {
if (!this.isStopped && this._next) {
var _parentSubscriber = this._parentSubscriber;
if (!__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(this._next, value);
}
else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {
this.unsubscribe();
}
}
};
SafeSubscriber.prototype.error = function (err) {
if (!this.isStopped) {
var _parentSubscriber = this._parentSubscriber;
var useDeprecatedSynchronousErrorHandling = __WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling;
if (this._error) {
if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(this._error, err);
this.unsubscribe();
}
else {
this.__tryOrSetError(_parentSubscriber, this._error, err);
this.unsubscribe();
}
}
else if (!_parentSubscriber.syncErrorThrowable) {
this.unsubscribe();
if (useDeprecatedSynchronousErrorHandling) {
throw err;
}
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err);
}
else {
if (useDeprecatedSynchronousErrorHandling) {
_parentSubscriber.syncErrorValue = err;
_parentSubscriber.syncErrorThrown = true;
}
else {
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err);
}
this.unsubscribe();
}
}
};
SafeSubscriber.prototype.complete = function () {
var _this = this;
if (!this.isStopped) {
var _parentSubscriber = this._parentSubscriber;
if (this._complete) {
var wrappedComplete = function () { return _this._complete.call(_this._context); };
if (!__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(wrappedComplete);
this.unsubscribe();
}
else {
this.__tryOrSetError(_parentSubscriber, wrappedComplete);
this.unsubscribe();
}
}
else {
this.unsubscribe();
}
}
};
SafeSubscriber.prototype.__tryOrUnsub = function (fn, value) {
try {
fn.call(this._context, value);
}
catch (err) {
this.unsubscribe();
if (__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) {
throw err;
}
else {
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err);
}
}
};
SafeSubscriber.prototype.__tryOrSetError = function (parent, fn, value) {
if (!__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) {
throw new Error('bad call');
}
try {
fn.call(this._context, value);
}
catch (err) {
if (__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) {
parent.syncErrorValue = err;
parent.syncErrorThrown = true;
return true;
}
else {
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err);
return true;
}
}
return false;
};
SafeSubscriber.prototype._unsubscribe = function () {
var _parentSubscriber = this._parentSubscriber;
this._context = null;
this._parentSubscriber = null;
_parentSubscriber.unsubscribe();
};
return SafeSubscriber;
}(Subscriber));
//# sourceMappingURL=Subscriber.js.map
/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getPathKey = getPathKey;
const os = __webpack_require__(46);
const path = __webpack_require__(0);
const userHome = __webpack_require__(67).default;
var _require = __webpack_require__(225);
const getCacheDir = _require.getCacheDir,
getConfigDir = _require.getConfigDir,
getDataDir = _require.getDataDir;
const isWebpackBundle = __webpack_require__(278);
const DEPENDENCY_TYPES = exports.DEPENDENCY_TYPES = ['devDependencies', 'dependencies', 'optionalDependencies', 'peerDependencies'];
const OWNED_DEPENDENCY_TYPES = exports.OWNED_DEPENDENCY_TYPES = ['devDependencies', 'dependencies', 'optionalDependencies'];
const RESOLUTIONS = exports.RESOLUTIONS = 'resolutions';
const MANIFEST_FIELDS = exports.MANIFEST_FIELDS = [RESOLUTIONS, ...DEPENDENCY_TYPES];
const SUPPORTED_NODE_VERSIONS = exports.SUPPORTED_NODE_VERSIONS = '^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0';
const YARN_REGISTRY = exports.YARN_REGISTRY = 'https://registry.yarnpkg.com';
const NPM_REGISTRY_RE = exports.NPM_REGISTRY_RE = /https?:\/\/registry\.npmjs\.org/g;
const YARN_DOCS = exports.YARN_DOCS = 'https://yarnpkg.com/en/docs/cli/';
const YARN_INSTALLER_SH = exports.YARN_INSTALLER_SH = 'https://yarnpkg.com/install.sh';
const YARN_INSTALLER_MSI = exports.YARN_INSTALLER_MSI = 'https://yarnpkg.com/latest.msi';
const SELF_UPDATE_VERSION_URL = exports.SELF_UPDATE_VERSION_URL = 'https://yarnpkg.com/latest-version';
// cache version, bump whenever we make backwards incompatible changes
const CACHE_VERSION = exports.CACHE_VERSION = 6;
// lockfile version, bump whenever we make backwards incompatible changes
const LOCKFILE_VERSION = exports.LOCKFILE_VERSION = 1;
// max amount of network requests to perform concurrently
const NETWORK_CONCURRENCY = exports.NETWORK_CONCURRENCY = 8;
// HTTP timeout used when downloading packages
const NETWORK_TIMEOUT = exports.NETWORK_TIMEOUT = 30 * 1000; // in milliseconds
// max amount of child processes to execute concurrently
const CHILD_CONCURRENCY = exports.CHILD_CONCURRENCY = 5;
const REQUIRED_PACKAGE_KEYS = exports.REQUIRED_PACKAGE_KEYS = ['name', 'version', '_uid'];
function getPreferredCacheDirectories() {
const preferredCacheDirectories = [getCacheDir()];
if (process.getuid) {
// $FlowFixMe: process.getuid exists, dammit
preferredCacheDirectories.push(path.join(os.tmpdir(), `.yarn-cache-${process.getuid()}`));
}
preferredCacheDirectories.push(path.join(os.tmpdir(), `.yarn-cache`));
return preferredCacheDirectories;
}
const PREFERRED_MODULE_CACHE_DIRECTORIES = exports.PREFERRED_MODULE_CACHE_DIRECTORIES = getPreferredCacheDirectories();
const CONFIG_DIRECTORY = exports.CONFIG_DIRECTORY = getConfigDir();
const DATA_DIRECTORY = exports.DATA_DIRECTORY = getDataDir();
const LINK_REGISTRY_DIRECTORY = exports.LINK_REGISTRY_DIRECTORY = path.join(DATA_DIRECTORY, 'link');
const GLOBAL_MODULE_DIRECTORY = exports.GLOBAL_MODULE_DIRECTORY = path.join(DATA_DIRECTORY, 'global');
const NODE_BIN_PATH = exports.NODE_BIN_PATH = process.execPath;
const YARN_BIN_PATH = exports.YARN_BIN_PATH = getYarnBinPath();
// Webpack needs to be configured with node.__dirname/__filename = false
function getYarnBinPath() {
if (isWebpackBundle) {
return __filename;
} else {
return path.join(__dirname, '..', 'bin', 'yarn.js');
}
}
const NODE_MODULES_FOLDER = exports.NODE_MODULES_FOLDER = 'node_modules';
const NODE_PACKAGE_JSON = exports.NODE_PACKAGE_JSON = 'package.json';
const PNP_FILENAME = exports.PNP_FILENAME = '.pnp.js';
const POSIX_GLOBAL_PREFIX = exports.POSIX_GLOBAL_PREFIX = `${process.env.DESTDIR || ''}/usr/local`;
const FALLBACK_GLOBAL_PREFIX = exports.FALLBACK_GLOBAL_PREFIX = path.join(userHome, '.yarn');
const META_FOLDER = exports.META_FOLDER = '.yarn-meta';
const INTEGRITY_FILENAME = exports.INTEGRITY_FILENAME = '.yarn-integrity';
const LOCKFILE_FILENAME = exports.LOCKFILE_FILENAME = 'yarn.lock';
const METADATA_FILENAME = exports.METADATA_FILENAME = '.yarn-metadata.json';
const TARBALL_FILENAME = exports.TARBALL_FILENAME = '.yarn-tarball.tgz';
const CLEAN_FILENAME = exports.CLEAN_FILENAME = '.yarnclean';
const NPM_LOCK_FILENAME = exports.NPM_LOCK_FILENAME = 'package-lock.json';
const NPM_SHRINKWRAP_FILENAME = exports.NPM_SHRINKWRAP_FILENAME = 'npm-shrinkwrap.json';
const DEFAULT_INDENT = exports.DEFAULT_INDENT = ' ';
const SINGLE_INSTANCE_PORT = exports.SINGLE_INSTANCE_PORT = 31997;
const SINGLE_INSTANCE_FILENAME = exports.SINGLE_INSTANCE_FILENAME = '.yarn-single-instance';
const ENV_PATH_KEY = exports.ENV_PATH_KEY = getPathKey(process.platform, process.env);
function getPathKey(platform, env) {
let pathKey = 'PATH';
// windows calls its path "Path" usually, but this is not guaranteed.
if (platform === 'win32') {
pathKey = 'Path';
for (const key in env) {
if (key.toLowerCase() === 'path') {
pathKey = key;
}
}
}
return pathKey;
}
const VERSION_COLOR_SCHEME = exports.VERSION_COLOR_SCHEME = {
major: 'red',
premajor: 'red',
minor: 'yellow',
preminor: 'yellow',
patch: 'green',
prepatch: 'green',
prerelease: 'red',
unchanged: 'white',
unknown: 'red'
};
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Use invariant() to assert state which your program assumes to be true.
*
* Provide sprintf-style format (only %s is supported) and arguments
* to provide information about what broke and what you were
* expecting.
*
* The invariant message will be stripped in production, but the invariant
* will remain to ensure logic does not differ in production.
*/
var NODE_ENV = process.env.NODE_ENV;
var invariant = function(condition, format, a, b, c, d, e, f) {
if (NODE_ENV !== 'production') {
if (format === undefined) {
throw new Error('invariant requires an error message argument');
}
}
if (!condition) {
var error;
if (format === undefined) {
error = new Error(
'Minified exception occurred; use the non-minified dev environment ' +
'for the full error message and additional helpful warnings.'
);
} else {
var args = [a, b, c, d, e, f];
var argIndex = 0;
error = new Error(
format.replace(/%s/g, function() { return args[argIndex++]; })
);
error.name = 'Invariant Violation';
}
error.framesToPop = 1; // we don't care about invariant's own frame
throw error;
}
};
module.exports = invariant;
/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var YAMLException = __webpack_require__(54);
var TYPE_CONSTRUCTOR_OPTIONS = [
'kind',
'resolve',
'construct',
'instanceOf',
'predicate',
'represent',
'defaultStyle',
'styleAliases'
];
var YAML_NODE_KINDS = [
'scalar',
'sequence',
'mapping'
];
function compileStyleAliases(map) {
var result = {};
if (map !== null) {
Object.keys(map).forEach(function (style) {
map[style].forEach(function (alias) {
result[String(alias)] = style;
});
});
}
return result;
}
function Type(tag, options) {
options = options || {};
Object.keys(options).forEach(function (name) {
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
}
});
// TODO: Add tag format check.
this.tag = tag;
this.kind = options['kind'] || null;
this.resolve = options['resolve'] || function () { return true; };
this.construct = options['construct'] || function (data) { return data; };
this.instanceOf = options['instanceOf'] || null;
this.predicate = options['predicate'] || null;
this.represent = options['represent'] || null;
this.defaultStyle = options['defaultStyle'] || null;
this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
}
}
module.exports = Type;
/***/ }),
/* 11 */
/***/ (function(module, exports) {
module.exports = require("crypto");
/***/ }),
/* 12 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Observable; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_canReportError__ = __webpack_require__(322);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_toSubscriber__ = __webpack_require__(932);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__internal_symbol_observable__ = __webpack_require__(117);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_pipe__ = __webpack_require__(324);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__config__ = __webpack_require__(185);
/** PURE_IMPORTS_START _util_canReportError,_util_toSubscriber,_internal_symbol_observable,_util_pipe,_config PURE_IMPORTS_END */
var Observable = /*@__PURE__*/ (function () {
function Observable(subscribe) {
this._isScalar = false;
if (subscribe) {
this._subscribe = subscribe;
}
}
Observable.prototype.lift = function (operator) {
var observable = new Observable();
observable.source = this;
observable.operator = operator;
return observable;
};
Observable.prototype.subscribe = function (observerOrNext, error, complete) {
var operator = this.operator;
var sink = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__util_toSubscriber__["a" /* toSubscriber */])(observerOrNext, error, complete);
if (operator) {
operator.call(sink, this.source);
}
else {
sink.add(this.source || (__WEBPACK_IMPORTED_MODULE_4__config__["a" /* config */].useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ?
this._subscribe(sink) :
this._trySubscribe(sink));
}
if (__WEBPACK_IMPORTED_MODULE_4__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) {
if (sink.syncErrorThrowable) {
sink.syncErrorThrowable = false;
if (sink.syncErrorThrown) {
throw sink.syncErrorValue;
}
}
}
return sink;
};
Observable.prototype._trySubscribe = function (sink) {
try {
return this._subscribe(sink);
}
catch (err) {
if (__WEBPACK_IMPORTED_MODULE_4__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) {
sink.syncErrorThrown = true;
sink.syncErrorValue = err;
}
if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__util_canReportError__["a" /* canReportError */])(sink)) {
sink.error(err);
}
else {
console.warn(err);
}
}
};
Observable.prototype.forEach = function (next, promiseCtor) {
var _this = this;
promiseCtor = getPromiseCtor(promiseCtor);
return new promiseCtor(function (resolve, reject) {
var subscription;
subscription = _this.subscribe(function (value) {
try {
next(value);
}
catch (err) {
reject(err);
if (subscription) {
subscription.unsubscribe();
}
}
}, reject, resolve);
});
};
Observable.prototype._subscribe = function (subscriber) {
var source = this.source;
return source && source.subscribe(subscriber);
};
Observable.prototype[__WEBPACK_IMPORTED_MODULE_2__internal_symbol_observable__["a" /* observable */]] = function () {
return this;
};
Observable.prototype.pipe = function () {
var operations = [];
for (var _i = 0; _i < arguments.length; _i++) {
operations[_i] = arguments[_i];
}
if (operations.length === 0) {
return this;
}
return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__util_pipe__["b" /* pipeFromArray */])(operations)(this);
};
Observable.prototype.toPromise = function (promiseCtor) {
var _this = this;
promiseCtor = getPromiseCtor(promiseCtor);
return new promiseCtor(function (resolve, reject) {
var value;
_this.subscribe(function (x) { return value = x; }, function (err) { return reject(err); }, function () { return resolve(value); });
});
};
Observable.create = function (subscribe) {
return new Observable(subscribe);
};
return Observable;
}());
function getPromiseCtor(promiseCtor) {
if (!promiseCtor) {
promiseCtor = __WEBPACK_IMPORTED_MODULE_4__config__["a" /* config */].Promise || Promise;
}
if (!promiseCtor) {
throw new Error('no Promise impl found');
}
return promiseCtor;
}
//# sourceMappingURL=Observable.js.map
/***/ }),
/* 13 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return OuterSubscriber; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(7);
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
var OuterSubscriber = /*@__PURE__*/ (function (_super) {
__WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](OuterSubscriber, _super);
function OuterSubscriber() {
return _super !== null && _super.apply(this, arguments) || this;
}
OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {
this.destination.next(innerValue);
};
OuterSubscriber.prototype.notifyError = function (error, innerSub) {
this.destination.error(error);
};
OuterSubscriber.prototype.notifyComplete = function (innerSub) {
this.destination.complete();
};
return OuterSubscriber;
}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */]));
//# sourceMappingURL=OuterSubscriber.js.map
/***/ }),
/* 14 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (immutable) */ __webpack_exports__["a"] = subscribeToResult;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InnerSubscriber__ = __webpack_require__(84);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__subscribeTo__ = __webpack_require__(446);
/** PURE_IMPORTS_START _InnerSubscriber,_subscribeTo PURE_IMPORTS_END */
function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, destination) {
if (destination === void 0) {
destination = new __WEBPACK_IMPORTED_MODULE_0__InnerSubscriber__["a" /* InnerSubscriber */](outerSubscriber, outerValue, outerIndex);
}
if (destination.closed) {
return;
}
return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__subscribeTo__["a" /* subscribeTo */])(result)(destination);
}
//# sourceMappingURL=subscribeToResult.js.map
/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* eslint-disable node/no-deprecated-api */
var buffer = __webpack_require__(64)
var Buffer = buffer.Buffer
var safer = {}
var key
for (key in buffer) {
if (!buffer.hasOwnProperty(key)) continue
if (key === 'SlowBuffer' || key === 'Buffer') continue
safer[key] = buffer[key]
}
var Safer = safer.Buffer = {}
for (key in Buffer) {
if (!Buffer.hasOwnProperty(key)) continue
if (key === 'allocUnsafe' || key === 'allocUnsafeSlow') continue
Safer[key] = Buffer[key]
}
safer.Buffer.prototype = Buffer.prototype
if (!Safer.from || Safer.from === Uint8Array.from) {
Safer.from = function (value, encodingOrOffset, length) {
if (typeof value === 'number') {
throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof value)
}
if (value && typeof value.length === 'undefined') {
throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + typeof value)
}
return Buffer(value, encodingOrOffset, length)
}
}
if (!Safer.alloc) {
Safer.alloc = function (size, fill, encoding) {
if (typeof size !== 'number') {
throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size)
}
if (size < 0 || size >= 2 * (1 << 30)) {
throw new RangeError('The value "' + size + '" is invalid for option "size"')
}
var buf = Buffer(size)
if (!fill || fill.length === 0) {
buf.fill(0)
} else if (typeof encoding === 'string') {
buf.fill(fill, encoding)
} else {
buf.fill(fill)
}
return buf
}
}
if (!safer.kStringMaxLength) {
try {
safer.kStringMaxLength = process.binding('buffer').kStringMaxLength
} catch (e) {
// we can't determine kStringMaxLength in environments where process.binding
// is unsupported, so let's not set it
}
}
if (!safer.constants) {
safer.constants = {
MAX_LENGTH: safer.kMaxLength
}
if (safer.kStringMaxLength) {
safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength
}
}
module.exports = safer
/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {
// Copyright (c) 2012, Mark Cavage. All rights reserved.
// Copyright 2015 Joyent, Inc.
var assert = __webpack_require__(28);
var Stream = __webpack_require__(23).Stream;
var util = __webpack_require__(3);
///--- Globals
/* JSSTYLED */
var UUID_REGEXP = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
///--- Internal
function _capitalize(str) {
return (str.charAt(0).toUpperCase() + str.slice(1));
}
function _toss(name, expected, oper, arg, actual) {
throw new assert.AssertionError({
message: util.format('%s (%s) is required', name, expected),
actual: (actual === undefined) ? typeof (arg) : actual(arg),
expected: expected,
operator: oper || '===',
stackStartFunction: _toss.caller
});
}
function _getClass(arg) {
return (Object.prototype.toString.call(arg).slice(8, -1));
}
function noop() {
// Why even bother with asserts?
}
///--- Exports
var types = {
bool: {
check: function (arg) { return typeof (arg) === 'boolean'; }
},
func: {
check: function (arg) { return typeof (arg) === 'function'; }
},
string: {
check: function (arg) { return typeof (arg) === 'string'; }
},
object: {
check: function (arg) {
return typeof (arg) === 'object' && arg !== null;
}
},
number: {
check: function (arg) {
return typeof (arg) === 'number' && !isNaN(arg);
}
},
finite: {
check: function (arg) {
return typeof (arg) === 'number' && !isNaN(arg) && isFinite(arg);
}
},
buffer: {
check: function (arg) { return Buffer.isBuffer(arg); },
operator: 'Buffer.isBuffer'
},
array: {
check: function (arg) { return Array.isArray(arg); },
operator: 'Array.isArray'
},
stream: {
check: function (arg) { return arg instanceof Stream; },
operator: 'instanceof',
actual: _getClass
},
date: {
check: function (arg) { return arg instanceof Date; },
operator: 'instanceof',
actual: _getClass
},
regexp: {
check: function (arg) { return arg instanceof RegExp; },
operator: 'instanceof',
actual: _getClass
},
uuid: {
check: function (arg) {
return typeof (arg) === 'string' && UUID_REGEXP.test(arg);
},
operator: 'isUUID'
}
};
function _setExports(ndebug) {
var keys = Object.keys(types);
var out;
/* re-export standard assert */
if (process.env.NODE_NDEBUG) {
out = noop;
} else {
out = function (arg, msg) {
if (!arg) {
_toss(msg, 'true', arg);
}
};
}
/* standard checks */
keys.forEach(function (k) {
if (ndebug) {
out[k] = noop;
return;
}
var type = types[k];
out[k] = function (arg, msg) {
if (!type.check(arg)) {
_toss(msg, k, type.operator, arg, type.actual);
}
};
});
/* optional checks */
keys.forEach(function (k) {
var name = 'optional' + _capitalize(k);
if (ndebug) {
out[name] = noop;
return;
}
var type = types[k];
out[name] = function (arg, msg) {
if (arg === undefined || arg === null) {
return;
}
if (!type.check(arg)) {
_toss(msg, k, type.operator, arg, type.actual);
}
};
});
/* arrayOf checks */
keys.forEach(function (k) {
var name = 'arrayOf' + _capitalize(k);
if (ndebug) {
out[name] = noop;
return;
}
var type = types[k];
var expected = '[' + k + ']';
out[name] = function (arg, msg) {
if (!Array.isArray(arg)) {
_toss(msg, expected, type.operator, arg, type.actual);
}
var i;
for (i = 0; i < arg.length; i++) {
if (!type.check(arg[i])) {
_toss(msg, expected, type.operator, arg, type.actual);
}
}
};
});
/* optionalArrayOf checks */
keys.forEach(function (k) {
var name = 'optionalArrayOf' + _capitalize(k);
if (ndebug) {
out[name] = noop;
return;
}
var type = types[k];
var expected = '[' + k + ']';
out[name] = function (arg, msg) {
if (arg === undefined || arg === null) {
return;
}
if (!Array.isArray(arg)) {
_toss(msg, expected, type.operator, arg, type.actual);
}
var i;
for (i = 0; i < arg.length; i++) {
if (!type.check(arg[i])) {
_toss(msg, expected, type.operator, arg, type.actual);
}
}
};
});
/* re-export built-in assertions */
Object.keys(assert).forEach(function (k) {
if (k === 'AssertionError') {
out[k] = assert[k];
return;
}
if (ndebug) {
out[k] = noop;
return;
}
out[k] = assert[k];
});
/* export ourselves (for unit tests _only_) */
out._setExports = _setExports;
return out;
}
module.exports = _setExports(process.env.NODE_NDEBUG);
/***/ }),
/* 17 */
/***/ (function(module, exports) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
? window : typeof self != 'undefined' && self.Math == Math ? self
// eslint-disable-next-line no-new-func
: Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.sortAlpha = sortAlpha;
exports.sortOptionsByFlags = sortOptionsByFlags;
exports.entries = entries;
exports.removePrefix = removePrefix;
exports.removeSuffix = removeSuffix;
exports.addSuffix = addSuffix;
exports.hyphenate = hyphenate;
exports.camelCase = camelCase;
exports.compareSortedArrays = compareSortedArrays;
exports.sleep = sleep;
const _camelCase = __webpack_require__(230);
function sortAlpha(a, b) {
// sort alphabetically in a deterministic way
const shortLen = Math.min(a.length, b.length);
for (let i = 0; i < shortLen; i++) {
const aChar = a.charCodeAt(i);
const bChar = b.charCodeAt(i);
if (aChar !== bChar) {
return aChar - bChar;
}
}
return a.length - b.length;
}
function sortOptionsByFlags(a, b) {
const aOpt = a.flags.replace(/-/g, '');
const bOpt = b.flags.replace(/-/g, '');
return sortAlpha(aOpt, bOpt);
}
function entries(obj) {
const entries = [];
if (obj) {
for (const key in obj) {
entries.push([key, obj[key]]);
}
}
return entries;
}
function removePrefix(pattern, prefix) {
if (pattern.startsWith(prefix)) {
pattern = pattern.slice(prefix.length);
}
return pattern;
}
function removeSuffix(pattern, suffix) {
if (pattern.endsWith(suffix)) {
return pattern.slice(0, -suffix.length);
}
return pattern;
}
function addSuffix(pattern, suffix) {
if (!pattern.endsWith(suffix)) {
return pattern + suffix;
}
return pattern;
}
function hyphenate(str) {
return str.replace(/[A-Z]/g, match => {
return '-' + match.charAt(0).toLowerCase();
});
}
function camelCase(str) {
if (/[A-Z]/.test(str)) {
return null;
} else {
return _camelCase(str);
}
}
function compareSortedArrays(array1, array2) {
if (array1.length !== array2.length) {
return false;
}
for (let i = 0, len = array1.length; i < len; i++) {
if (array1[i] !== array2[i]) {
return false;
}
}
return true;
}
function sleep(ms) {
return new Promise(resolve => {
setTimeout(resolve, ms);
});
}
/***/ }),
/* 19 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.stringify = exports.parse = undefined;
var _asyncToGenerator2;
function _load_asyncToGenerator() {
return _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(2));
}
var _parse;
function _load_parse() {
return _parse = __webpack_require__(105);
}
Object.defineProperty(exports, 'parse', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_parse || _load_parse()).default;
}
});
var _stringify;
function _load_stringify() {
return _stringify = __webpack_require__(199);
}
Object.defineProperty(exports, 'stringify', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_stringify || _load_stringify()).default;
}
});
exports.implodeEntry = implodeEntry;
exports.explodeEntry = explodeEntry;
var _misc;
function _load_misc() {
return _misc = __webpack_require__(18);
}
var _normalizePattern;
function _load_normalizePattern() {
return _normalizePattern = __webpack_require__(37);
}
var _parse2;
function _load_parse2() {
return _parse2 = _interopRequireDefault(__webpack_require__(105));
}
var _constants;
function _load_constants() {
return _constants = __webpack_require__(8);
}
var _fs;
function _load_fs() {
return _fs = _interopRequireWildcard(__webpack_require__(4));
}
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const invariant = __webpack_require__(9);
const path = __webpack_require__(0);
const ssri = __webpack_require__(65);
function getName(pattern) {
return (0, (_normalizePattern || _load_normalizePattern()).normalizePattern)(pattern).name;
}
function blankObjectUndefined(obj) {
return obj && Object.keys(obj).length ? obj : undefined;
}
function keyForRemote(remote) {
return remote.resolved || (remote.reference && remote.hash ? `${remote.reference}#${remote.hash}` : null);
}
function serializeIntegrity(integrity) {
// We need this because `Integrity.toString()` does not use sorting to ensure a stable string output
// See https://git.io/vx2Hy
return integrity.toString().split(' ').sort().join(' ');
}
function implodeEntry(pattern, obj) {
const inferredName = getName(pattern);
const integrity = obj.integrity ? serializeIntegrity(obj.integrity) : '';
const imploded = {
name: inferredName === obj.name ? undefined : obj.name,
version: obj.version,
uid: obj.uid === obj.version ? undefined : obj.uid,
resolved: obj.resolved,
registry: obj.registry === 'npm' ? undefined : obj.registry,
dependencies: blankObjectUndefined(obj.dependencies),
optionalDependencies: blankObjectUndefined(obj.optionalDependencies),
permissions: blankObjectUndefined(obj.permissions),
prebuiltVariants: blankObjectUndefined(obj.prebuiltVariants)
};
if (integrity) {
imploded.integrity = integrity;
}
return imploded;
}
function explodeEntry(pattern, obj) {
obj.optionalDependencies = obj.optionalDependencies || {};
obj.dependencies = obj.dependencies || {};
obj.uid = obj.uid || obj.version;
obj.permissions = obj.permissions || {};
obj.registry = obj.registry || 'npm';
obj.name = obj.name || getName(pattern);
const integrity = obj.integrity;
if (integrity && integrity.isIntegrity) {
obj.integrity = ssri.parse(integrity);
}
return obj;
}
class Lockfile {
constructor({ cache, source, parseResultType } = {}) {
this.source = source || '';
this.cache = cache;
this.parseResultType = parseResultType;
}
// source string if the `cache` was parsed
// if true, we're parsing an old yarn file and need to update integrity fields
hasEntriesExistWithoutIntegrity() {
if (!this.cache) {
return false;
}
for (const key in this.cache) {
// $FlowFixMe - `this.cache` is clearly defined at this point
if (!/^.*@(file:|http)/.test(key) && this.cache[key] && !this.cache[key].integrity) {
return true;
}
}
return false;
}
static fromDirectory(dir, reporter) {
return (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* () {
// read the manifest in this directory
const lockfileLoc = path.join(dir, (_constants || _load_constants()).LOCKFILE_FILENAME);
let lockfile;
let rawLockfile = '';
let parseResult;
if (yield (_fs || _load_fs()).exists(lockfileLoc)) {
rawLockfile = yield (_fs || _load_fs()).readFile(lockfileLoc);
parseResult = (0, (_parse2 || _load_parse2()).default)(rawLockfile, lockfileLoc);
if (reporter) {
if (parseResult.type === 'merge') {
reporter.info(reporter.lang('lockfileMerged'));
} else if (parseResult.type === 'conflict') {
reporter.warn(reporter.lang('lockfileConflict'));
}
}
lockfile = parseResult.object;
} else if (reporter) {
reporter.info(reporter.lang('noLockfileFound'));
}
if (lockfile && lockfile.__metadata) {
const lockfilev2 = lockfile;
lockfile = {};
}
return new Lockfile({ cache: lockfile, source: rawLockfile, parseResultType: parseResult && parseResult.type });
})();
}
getLocked(pattern) {
const cache = this.cache;
if (!cache) {
return undefined;
}
const shrunk = pattern in cache && cache[pattern];
if (typeof shrunk === 'string') {
return this.getLocked(shrunk);
} else if (shrunk) {
explodeEntry(pattern, shrunk);
return shrunk;
}
return undefined;
}
removePattern(pattern) {
const cache = this.cache;
if (!cache) {
return;
}
delete cache[pattern];
}
getLockfile(patterns) {
const lockfile = {};
const seen = new Map();
// order by name so that lockfile manifest is assigned to the first dependency with this manifest
// the others that have the same remoteKey will just refer to the first
// ordering allows for consistency in lockfile when it is serialized
const sortedPatternsKeys = Object.keys(patterns).sort((_misc || _load_misc()).sortAlpha);
for (var _iterator = sortedPatternsKeys, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
var _ref;
if (_isArray) {
if (_i >= _iterator.length) break;
_ref = _iterator[_i++];
} else {
_i = _iterator.next();
if (_i.done) break;
_ref = _i.value;
}
const pattern = _ref;
const pkg = patterns[pattern];
const remote = pkg._remote,
ref = pkg._reference;
invariant(ref, 'Package is missing a reference');
invariant(remote, 'Package is missing a remote');
const remoteKey = keyForRemote(remote);
const seenPattern = remoteKey && seen.get(remoteKey);
if (seenPattern) {
// no point in duplicating it
lockfile[pattern] = seenPattern;
// if we're relying on our name being inferred and two of the patterns have
// different inferred names then we need to set it
if (!seenPattern.name && getName(pattern) !== pkg.name) {
seenPattern.name = pkg.name;
}
continue;
}
const obj = implodeEntry(pattern, {
name: pkg.name,
version: pkg.version,
uid: pkg._uid,
resolved: remote.resolved,
integrity: remote.integrity,
registry: remote.registry,
dependencies: pkg.dependencies,
peerDependencies: pkg.peerDependencies,
optionalDependencies: pkg.optionalDependencies,
permissions: ref.permissions,
prebuiltVariants: pkg.prebuiltVariants
});
lockfile[pattern] = obj;
if (remoteKey) {
seen.set(remoteKey, obj);
}
}
return lockfile;
}
}
exports.default = Lockfile;
/***/ }),
/* 20 */
/***/ (function(module, exports, __webpack_require__) {
var store = __webpack_require__(133)('wks');
var uid = __webpack_require__(137);
var Symbol = __webpack_require__(17).Symbol;
var USE_SYMBOL = typeof Symbol == 'function';
var $exports = module.exports = function (name) {
return store[name] || (store[name] =
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};
$exports.store = store;
/***/ }),
/* 21 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _assign = __webpack_require__(591);
var _assign2 = _interopRequireDefault(_assign);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _assign2.default || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
/***/ }),
/* 22 */
/***/ (function(module, exports) {
exports = module.exports = SemVer;
// The debug function is excluded entirely from the minified version.
/* nomin */ var debug;
/* nomin */ if (typeof process === 'object' &&
/* nomin */ process.env &&
/* nomin */ process.env.NODE_DEBUG &&
/* nomin */ /\bsemver\b/i.test(process.env.NODE_DEBUG))
/* nomin */ debug = function() {
/* nomin */ var args = Array.prototype.slice.call(arguments, 0);
/* nomin */ args.unshift('SEMVER');
/* nomin */ console.log.apply(console, args);
/* nomin */ };
/* nomin */ else
/* nomin */ debug = function() {};
// Note: this is the semver.org version of the spec that it implements
// Not necessarily the package version of this code.
exports.SEMVER_SPEC_VERSION = '2.0.0';
var MAX_LENGTH = 256;
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
// Max safe segment length for coercion.
var MAX_SAFE_COMPONENT_LENGTH = 16;
// The actual regexps go on exports.re
var re = exports.re = [];
var src = exports.src = [];
var R = 0;
// The following Regular Expressions can be used for tokenizing,
// validating, and parsing SemVer version strings.
// ## Numeric Identifier
// A single `0`, or a non-zero digit followed by zero or more digits.
var NUMERICIDENTIFIER = R++;
src[NUMERICIDENTIFIER] = '0|[1-9]\\d*';
var NUMERICIDENTIFIERLOOSE = R++;
src[NUMERICIDENTIFIERLOOSE] = '[0-9]+';
// ## Non-numeric Identifier
// Zero or more digits, followed by a letter or hyphen, and then zero or
// more letters, digits, or hyphens.
var NONNUMERICIDENTIFIER = R++;
src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*';
// ## Main Version
// Three dot-separated numeric identifiers.
var MAINVERSION = R++;
src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
'(' + src[NUMERICIDENTIFIER] + ')\\.' +
'(' + src[NUMERICIDENTIFIER] + ')';
var MAINVERSIONLOOSE = R++;
src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
'(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
'(' + src[NUMERICIDENTIFIERLOOSE] + ')';
// ## Pre-release Version Identifier
// A numeric identifier, or a non-numeric identifier.
var PRERELEASEIDENTIFIER = R++;
src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
'|' + src[NONNUMERICIDENTIFIER] + ')';
var PRERELEASEIDENTIFIERLOOSE = R++;
src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
'|' + src[NONNUMERICIDENTIFIER] + ')';
// ## Pre-release Version
// Hyphen, followed by one or more dot-separated pre-release version
// identifiers.
var PRERELEASE = R++;
src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
'(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))';
var PRERELEASELOOSE = R++;
src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
'(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))';
// ## Build Metadata Identifier
// Any combination of digits, letters, or hyphens.
var BUILDIDENTIFIER = R++;
src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+';
// ## Build Metadata
// Plus sign, followed by one or more period-separated build metadata
// identifiers.
var BUILD = R++;
src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
'(?:\\.' + src[BUILDIDENTIFIER] + ')*))';
// ## Full Version String
// A main version, followed optionally by a pre-release version and
// build metadata.
// Note that the only major, minor, patch, and pre-release sections of
// the version string are capturing groups. The build metadata is not a
// capturing group, because it should not ever be used in version
// comparison.
var FULL = R++;
var FULLPLAIN = 'v?' + src[MAINVERSION] +
src[PRERELEASE] + '?' +
src[BUILD] + '?';
src[FULL] = '^' + FULLPLAIN + '$';
// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
// common in the npm registry.
var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
src[PRERELEASELOOSE] + '?' +
src[BUILD] + '?';
var LOOSE = R++;
src[LOOSE] = '^' + LOOSEPLAIN + '$';
var GTLT = R++;
src[GTLT] = '((?:<|>)?=?)';
// Something like "2.*" or "1.2.x".
// Note that "x.x" is a valid xRange identifer, meaning "any version"
// Only the first item is strictly required.
var XRANGEIDENTIFIERLOOSE = R++;
src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*';
var XRANGEIDENTIFIER = R++;
src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*';
var XRANGEPLAIN = R++;
src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
'(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
'(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
'(?:' + src[PRERELEASE] + ')?' +
src[BUILD] + '?' +
')?)?';
var XRANGEPLAINLOOSE = R++;
src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
'(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
'(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
'(?:' + src[PRERELEASELOOSE] + ')?' +
src[BUILD] + '?' +
')?)?';
var XRANGE = R++;
src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$';
var XRANGELOOSE = R++;
src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$';
// Coercion.
// Extract anything that could conceivably be a part of a valid semver
var COERCE = R++;
src[COERCE] = '(?:^|[^\\d])' +
'(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
'(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
'(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
'(?:$|[^\\d])';
// Tilde ranges.
// Meaning is "reasonably at or greater than"
var LONETILDE = R++;
src[LONETILDE] = '(?:~>?)';
var TILDETRIM = R++;
src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+';
re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g');
var tildeTrimReplace = '$1~';
var TILDE = R++;
src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$';
var TILDELOOSE = R++;
src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$';
// Caret ranges.
// Meaning is "at least and backwards compatible with"
var LONECARET = R++;
src[LONECARET] = '(?:\\^)';
var CARETTRIM = R++;
src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+';
re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g');
var caretTrimReplace = '$1^';
var CARET = R++;
src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$';
var CARETLOOSE = R++;
src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$';
// A simple gt/lt/eq thing, or just "" to indicate "any version"
var COMPARATORLOOSE = R++;
src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$';
var COMPARATOR = R++;
src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$';
// An expression to strip any whitespace between the gtlt and the thing
// it modifies, so that `> 1.2.3` ==> `>1.2.3`
var COMPARATORTRIM = R++;
src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
'\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')';
// this one has to use the /g flag
re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g');
var comparatorTrimReplace = '$1$2$3';
// Something like `1.2.3 - 1.2.4`
// Note that these all use the loose form, because they'll be
// checked against either the strict or loose comparator form
// later.
var HYPHENRANGE = R++;
src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
'\\s+-\\s+' +
'(' + src[XRANGEPLAIN] + ')' +
'\\s*$';
var HYPHENRANGELOOSE = R++;
src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
'\\s+-\\s+' +
'(' + src[XRANGEPLAINLOOSE] + ')' +
'\\s*$';
// Star ranges basically just allow anything at all.
var STAR = R++;
src[STAR] = '(<|>)?=?\\s*\\*';
// Compile to actual regexp objects.
// All are flag-free, unless they were created above with a flag.
for (var i = 0; i < R; i++) {
debug(i, src[i]);
if (!re[i])
re[i] = new RegExp(src[i]);
}
exports.parse = parse;
function parse(version, loose) {
if (version instanceof SemVer)
return version;
if (typeof version !== 'string')
return null;
if (version.length > MAX_LENGTH)
return null;
var r = loose ? re[LOOSE] : re[FULL];
if (!r.test(version))
return null;
try {
return new SemVer(version, loose);
} catch (er) {
return null;
}
}
exports.valid = valid;
function valid(version, loose) {
var v = parse(version, loose);
return v ? v.version : null;
}
exports.clean = clean;
function clean(version, loose) {
var s = parse(version.trim().replace(/^[=v]+/, ''), loose);
return s ? s.version : null;
}
exports.SemVer = SemVer;
function SemVer(version, loose) {
if (version instanceof SemVer) {
if (version.loose === loose)
return version;
else
version = version.version;
} else if (typeof version !== 'string') {
throw new TypeError('Invalid Version: ' + version);
}
if (version.length > MAX_LENGTH)
throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
if (!(this instanceof SemVer))
return new SemVer(version, loose);
debug('SemVer', version, loose);
this.loose = loose;
var m = version.trim().match(loose ? re[LOOSE] : re[FULL]);
if (!m)
throw new TypeError('Invalid Version: ' + version);
this.raw = version;
// these are actually numbers
this.major = +m[1];
this.minor = +m[2];
this.patch = +m[3];
if (this.major > MAX_SAFE_INTEGER || this.major < 0)
throw new TypeError('Invalid major version')
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
throw new TypeError('Invalid minor version')
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
throw new TypeError('Invalid patch version')
// numberify any prerelease numeric ids
if (!m[4])
this.prerelease = [];
else
this.prerelease = m[4].split('.').map(function(id) {
if (/^[0-9]+$/.test(id)) {
var num = +id;
if (num >= 0 && num < MAX_SAFE_INTEGER)
return num;
}
return id;
});
this.build = m[5] ? m[5].split('.') : [];
this.format();
}
SemVer.prototype.format = function() {
this.version = this.major + '.' + this.minor + '.' + this.patch;
if (this.prerelease.length)
this.version += '-' + this.prerelease.join('.');
return this.version;
};
SemVer.prototype.toString = function() {
return this.version;
};
SemVer.prototype.compare = function(other) {
debug('SemVer.compare', this.version, this.loose, other);
if (!(other instanceof SemVer))
other = new SemVer(other, this.loose);
return this.compareMain(other) || this.comparePre(other);
};
SemVer.prototype.compareMain = function(other) {
if (!(other instanceof SemVer))
other = new SemVer(other, this.loose);
return compareIdentifiers(this.major, other.major) ||
compareIdentifiers(this.minor, other.minor) ||
compareIdentifiers(this.patch, other.patch);
};
SemVer.prototype.comparePre = function(other) {
if (!(other instanceof SemVer))
other = new SemVer(other, this.loose);
// NOT having a prerelease is > having one
if (this.prerelease.length && !other.prerelease.length)
return -1;
else if (!this.prerelease.length && other.prerelease.length)
return 1;
else if (!this.prerelease.length && !other.prerelease.length)
return 0;
var i = 0;
do {
var a = this.prerelease[i];
var b = other.prerelease[i];
debug('prerelease compare', i, a, b);
if (a === undefined && b === undefined)
return 0;
else if (b === undefined)
return 1;
else if (a === undefined)
return -1;
else if (a === b)
continue;
else
return compareIdentifiers(a, b);
} while (++i);
};
// preminor will bump the version up to the next minor release, and immediately
// down to pre-release. premajor and prepatch work the same way.
SemVer.prototype.inc = function(release, identifier) {
switch (release) {
case 'premajor':
this.prerelease.length = 0;
this.patch = 0;
this.minor = 0;
this.major++;
this.inc('pre', identifier);
break;
case 'preminor':
this.prerelease.length = 0;
this.patch = 0;
this.minor++;
this.inc('pre', identifier);
break;
case 'prepatch':
// If this is already a prerelease, it will bump to the next version
// drop any prereleases that might already exist, since they are not
// relevant at this point.
this.prerelease.length = 0;
this.inc('patch', identifier);
this.inc('pre', identifier);
break;
// If the input is a non-prerelease version, this acts the same as
// prepatch.
case 'prerelease':
if (this.prerelease.length === 0)
this.inc('patch', identifier);
this.inc('pre', identifier);
break;
case 'major':
// If this is a pre-major version, bump up to the same major version.
// Otherwise increment major.
// 1.0.0-5 bumps to 1.0.0
// 1.1.0 bumps to 2.0.0
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0)
this.major++;
this.minor = 0;
this.patch = 0;
this.prerelease = [];
break;
case 'minor':
// If this is a pre-minor version, bump up to the same minor version.
// Otherwise increment minor.
// 1.2.0-5 bumps to 1.2.0
// 1.2.1 bumps to 1.3.0
if (this.patch !== 0 || this.prerelease.length === 0)
this.minor++;
this.patch = 0;
this.prerelease = [];
break;
case 'patch':
// If this is not a pre-release version, it will increment the patch.
// If it is a pre-release it will bump up to the same patch version.
// 1.2.0-5 patches to 1.2.0
// 1.2.0 patches to 1.2.1
if (this.prerelease.length === 0)
this.patch++;
this.prerelease = [];
break;
// This probably shouldn't be used publicly.
// 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
case 'pre':
if (this.prerelease.length === 0)
this.prerelease = [0];
else {
var i = this.prerelease.length;
while (--i >= 0) {
if (typeof this.prerelease[i] === 'number') {
this.prerelease[i]++;
i = -2;
}
}
if (i === -1) // didn't increment anything
this.prerelease.push(0);
}
if (identifier) {
// 1.2.0-beta.1 bumps to 1.2.0-beta.2,
// 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
if (this.prerelease[0] === identifier) {
if (isNaN(this.prerelease[1]))
this.prerelease = [identifier, 0];
} else
this.prerelease = [identifier, 0];
}
break;
default:
throw new Error('invalid increment argument: ' + release);
}
this.format();
this.raw = this.version;
return this;
};
exports.inc = inc;
function inc(version, release, loose, identifier) {
if (typeof(loose) === 'string') {
identifier = loose;
loose = undefined;
}
try {
return new SemVer(version, loose).inc(release, identifier).version;
} catch (er) {
return null;
}
}
exports.diff = diff;
function diff(version1, version2) {
if (eq(version1, version2)) {
return null;
} else {
var v1 = parse(version1);
var v2 = parse(version2);
if (v1.prerelease.length || v2.prerelease.length) {
for (var key in v1) {
if (key === 'major' || key === 'minor' || key === 'patch') {
if (v1[key] !== v2[key]) {
return 'pre'+key;
}
}
}
return 'prerelease';
}
for (var key in v1) {
if (key === 'major' || key === 'minor' || key === 'patch') {
if (v1[key] !== v2[key]) {
return key;
}
}
}
}
}
exports.compareIdentifiers = compareIdentifiers;
var numeric = /^[0-9]+$/;
function compareIdentifiers(a, b) {
var anum = numeric.test(a);
var bnum = numeric.test(b);
if (anum && bnum) {
a = +a;
b = +b;
}
return (anum && !bnum) ? -1 :
(bnum && !anum) ? 1 :
a < b ? -1 :
a > b ? 1 :
0;
}
exports.rcompareIdentifiers = rcompareIdentifiers;
function rcompareIdentifiers(a, b) {
return compareIdentifiers(b, a);
}
exports.major = major;
function major(a, loose) {
return new SemVer(a, loose).major;
}
exports.minor = minor;
function minor(a, loose) {
return new SemVer(a, loose).minor;
}
exports.patch = patch;
function patch(a, loose) {
return new SemVer(a, loose).patch;
}
exports.compare = compare;
function compare(a, b, loose) {
return new SemVer(a, loose).compare(new SemVer(b, loose));
}
exports.compareLoose = compareLoose;
function compareLoose(a, b) {
return compare(a, b, true);
}
exports.rcompare = rcompare;
function rcompare(a, b, loose) {
return compare(b, a, loose);
}
exports.sort = sort;
function sort(list, loose) {
return list.sort(function(a, b) {
return exports.compare(a, b, loose);
});
}
exports.rsort = rsort;
function rsort(list, loose) {
return list.sort(function(a, b) {
return exports.rcompare(a, b, loose);
});
}
exports.gt = gt;
function gt(a, b, loose) {
return compare(a, b, loose) > 0;
}
exports.lt = lt;
function lt(a, b, loose) {
return compare(a, b, loose) < 0;
}
exports.eq = eq;
function eq(a, b, loose) {
return compare(a, b, loose) === 0;
}
exports.neq = neq;
function neq(a, b, loose) {
return compare(a, b, loose) !== 0;
}
exports.gte = gte;
function gte(a, b, loose) {
return compare(a, b, loose) >= 0;
}
exports.lte = lte;
function lte(a, b, loose) {
return compare(a, b, loose) <= 0;
}
exports.cmp = cmp;
function cmp(a, op, b, loose) {
var ret;
switch (op) {
case '===':
if (typeof a === 'object') a = a.version;
if (typeof b === 'object') b = b.version;
ret = a === b;
break;
case '!==':
if (typeof a === 'object') a = a.version;
if (typeof b === 'object') b = b.version;
ret = a !== b;
break;
case '': case '=': case '==': ret = eq(a, b, loose); break;
case '!=': ret = neq(a, b, loose); break;
case '>': ret = gt(a, b, loose); break;
case '>=': ret = gte(a, b, loose); break;
case '<': ret = lt(a, b, loose); break;
case '<=': ret = lte(a, b, loose); break;
default: throw new TypeError('Invalid operator: ' + op);
}
return ret;
}
exports.Comparator = Comparator;
function Comparator(comp, loose) {
if (comp instanceof Comparator) {
if (comp.loose === loose)
return comp;
else
comp = comp.value;
}
if (!(this instanceof Comparator))
return new Comparator(comp, loose);
debug('comparator', comp, loose);
this.loose = loose;
this.parse(comp);
if (this.semver === ANY)
this.value = '';
else
this.value = this.operator + this.semver.version;
debug('comp', this);
}
var ANY = {};
Comparator.prototype.parse = function(comp) {
var r = this.loose ? re[COMPARATORLOOSE] : re[COMPARATOR];
var m = comp.match(r);
if (!m)
throw new TypeError('Invalid comparator: ' + comp);
this.operator = m[1];
if (this.operator === '=')
this.operator = '';
// if it literally is just '>' or '' then allow anything.
if (!m[2])
this.semver = ANY;
else
this.semver = new SemVer(m[2], this.loose);
};
Comparator.prototype.toString = function() {
return this.value;
};
Comparator.prototype.test = function(version) {
debug('Comparator.test', version, this.loose);
if (this.semver === ANY)
return true;
if (typeof version === 'string')
version = new SemVer(version, this.loose);
return cmp(version, this.operator, this.semver, this.loose);
};
Comparator.prototype.intersects = function(comp, loose) {
if (!(comp instanceof Comparator)) {
throw new TypeError('a Comparator is required');
}
var rangeTmp;
if (this.operator === '') {
rangeTmp = new Range(comp.value, loose);
return satisfies(this.value, rangeTmp, loose);
} else if (comp.operator === '') {
rangeTmp = new Range(this.value, loose);
return satisfies(comp.semver, rangeTmp, loose);
}
var sameDirectionIncreasing =
(this.operator === '>=' || this.operator === '>') &&
(comp.operator === '>=' || comp.operator === '>');
var sameDirectionDecreasing =
(this.operator === '<=' || this.operator === '<') &&
(comp.operator === '<=' || comp.operator === '<');
var sameSemVer = this.semver.version === comp.semver.version;
var differentDirectionsInclusive =
(this.operator === '>=' || this.operator === '<=') &&
(comp.operator === '>=' || comp.operator === '<=');
var oppositeDirectionsLessThan =
cmp(this.semver, '<', comp.semver, loose) &&
((this.operator === '>=' || this.operator === '>') &&
(comp.operator === '<=' || comp.operator === '<'));
var oppositeDirectionsGreaterThan =
cmp(this.semver, '>', comp.semver, loose) &&
((this.operator === '<=' || this.operator === '<') &&
(comp.operator === '>=' || comp.operator === '>'));
return sameDirectionIncreasing || sameDirectionDecreasing ||
(sameSemVer && differentDirectionsInclusive) ||
oppositeDirectionsLessThan || oppositeDirectionsGreaterThan;
};
exports.Range = Range;
function Range(range, loose) {
if (range instanceof Range) {
if (range.loose === loose) {
return range;
} else {
return new Range(range.raw, loose);
}
}
if (range instanceof Comparator) {
return new Range(range.value, loose);
}
if (!(this instanceof Range))
return new Range(range, loose);
this.loose = loose;
// First, split based on boolean or ||
this.raw = range;
this.set = range.split(/\s*\|\|\s*/).map(function(range) {
return this.parseRange(range.trim());
}, this).filter(function(c) {
// throw out any that are not relevant for whatever reason
return c.length;
});
if (!this.set.length) {
throw new TypeError('Invalid SemVer Range: ' + range);
}
this.format();
}
Range.prototype.format = function() {
this.range = this.set.map(function(comps) {
return comps.join(' ').trim();
}).join('||').trim();
return this.range;
};
Range.prototype.toString = function() {
return this.range;
};
Range.prototype.parseRange = function(range) {
var loose = this.loose;
range = range.trim();
debug('range', range, loose);
// `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE];
range = range.replace(hr, hyphenReplace);
debug('hyphen replace', range);
// `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace);
debug('comparator trim', range, re[COMPARATORTRIM]);
// `~ 1.2.3` => `~1.2.3`
range = range.replace(re[TILDETRIM], tildeTrimReplace);
// `^ 1.2.3` => `^1.2.3`
range = range.replace(re[CARETTRIM], caretTrimReplace);
// normalize spaces
range = range.split(/\s+/).join(' ');
// At this point, the range is completely trimmed and
// ready to be split into comparators.
var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR];
var set = range.split(' ').map(function(comp) {
return parseComparator(comp, loose);
}).join(' ').split(/\s+/);
if (this.loose) {
// in loose mode, throw out any that are not valid comparators
set = set.filter(function(comp) {
return !!comp.match(compRe);
});
}
set = set.map(function(comp) {
return new Comparator(comp, loose);
});
return set;
};
Range.prototype.intersects = function(range, loose) {
if (!(range instanceof Range)) {
throw new TypeError('a Range is required');
}
return this.set.some(function(thisComparators) {
return thisComparators.every(function(thisComparator) {
return range.set.some(function(rangeComparators) {
return rangeComparators.every(function(rangeComparator) {
return thisComparator.intersects(rangeComparator, loose);
});
});
});
});
};
// Mostly just for testing and legacy API reasons
exports.toComparators = toComparators;
function toComparators(range, loose) {
return new Range(range, loose).set.map(function(comp) {
return comp.map(function(c) {
return c.value;
}).join(' ').trim().split(' ');
});
}
// comprised of xranges, tildes, stars, and gtlt's at this point.
// already replaced the hyphen ranges
// turn into a set of JUST comparators.
function parseComparator(comp, loose) {
debug('comp', comp);
comp = replaceCarets(comp, loose);
debug('caret', comp);
comp = replaceTildes(comp, loose);
debug('tildes', comp);
comp = replaceXRanges(comp, loose);
debug('xrange', comp);
comp = replaceStars(comp, loose);
debug('stars', comp);
return comp;
}
function isX(id) {
return !id || id.toLowerCase() === 'x' || id === '*';
}
// ~, ~> --> * (any, kinda silly)
// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
function replaceTildes(comp, loose) {
return comp.trim().split(/\s+/).map(function(comp) {
return replaceTilde(comp, loose);
}).join(' ');
}
function replaceTilde(comp, loose) {
var r = loose ? re[TILDELOOSE] : re[TILDE];
return comp.replace(r, function(_, M, m, p, pr) {
debug('tilde', comp, _, M, m, p, pr);
var ret;
if (isX(M))
ret = '';
else if (isX(m))
ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
else if (isX(p))
// ~1.2 == >=1.2.0 <1.3.0
ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
else if (pr) {
debug('replaceTilde pr', pr);
if (pr.charAt(0) !== '-')
pr = '-' + pr;
ret = '>=' + M + '.' + m + '.' + p + pr +
' <' + M + '.' + (+m + 1) + '.0';
} else
// ~1.2.3 == >=1.2.3 <1.3.0
ret = '>=' + M + '.' + m + '.' + p +
' <' + M + '.' + (+m + 1) + '.0';
debug('tilde return', ret);
return ret;
});
}
// ^ --> * (any, kinda silly)
// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
// ^1.2.3 --> >=1.2.3 <2.0.0
// ^1.2.0 --> >=1.2.0 <2.0.0
function replaceCarets(comp, loose) {
return comp.trim().split(/\s+/).map(function(comp) {
return replaceCaret(comp, loose);
}).join(' ');
}
function replaceCaret(comp, loose) {
debug('caret', comp, loose);
var r = loose ? re[CARETLOOSE] : re[CARET];
return comp.replace(r, function(_, M, m, p, pr) {
debug('caret', comp, _, M, m, p, pr);
var ret;
if (isX(M))
ret = '';
else if (isX(m))
ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
else if (isX(p)) {
if (M === '0')
ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
else
ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0';
} else if (pr) {
debug('replaceCaret pr', pr);
if (pr.charAt(0) !== '-')
pr = '-' + pr;
if (M === '0') {
if (m === '0')
ret = '>=' + M + '.' + m + '.' + p + pr +
' <' + M + '.' + m + '.' + (+p + 1);
else
ret = '>=' + M + '.' + m + '.' + p + pr +
' <' + M + '.' + (+m + 1) + '.0';
} else
ret = '>=' + M + '.' + m + '.' + p + pr +
' <' + (+M + 1) + '.0.0';
} else {
debug('no pr');
if (M === '0') {
if (m === '0')
ret = '>=' + M + '.' + m + '.' + p +
' <' + M + '.' + m + '.' + (+p + 1);
else
ret = '>=' + M + '.' + m + '.' + p +
' <' + M + '.' + (+m + 1) + '.0';
} else
ret = '>=' + M + '.' + m + '.' + p +
' <' + (+M + 1) + '.0.0';
}
debug('caret return', ret);
return ret;
});
}
function replaceXRanges(comp, loose) {
debug('replaceXRanges', comp, loose);
return comp.split(/\s+/).map(function(comp) {
return replaceXRange(comp, loose);
}).join(' ');
}
function replaceXRange(comp, loose) {
comp = comp.trim();
var r = loose ? re[XRANGELOOSE] : re[XRANGE];
return comp.replace(r, function(ret, gtlt, M, m, p, pr) {
debug('xRange', comp, ret, gtlt, M, m, p, pr);
var xM = isX(M);
var xm = xM || isX(m);
var xp = xm || isX(p);
var anyX = xp;
if (gtlt === '=' && anyX)
gtlt = '';
if (xM) {
if (gtlt === '>' || gtlt === '<') {
// nothing is allowed
ret = '<0.0.0';
} else {
// nothing is forbidden
ret = '*';
}
} else if (gtlt && anyX) {
// replace X with 0
if (xm)
m = 0;
if (xp)
p = 0;
if (gtlt === '>') {
// >1 => >=2.0.0
// >1.2 => >=1.3.0
// >1.2.3 => >= 1.2.4
gtlt = '>=';
if (xm) {
M = +M + 1;
m = 0;
p = 0;
} else if (xp) {
m = +m + 1;
p = 0;
}
} else if (gtlt === '<=') {
// <=0.7.x is actually <0.8.0, since any 0.7.x should
// pass. Similarly, <=7.x is actually <8.0.0, etc.
gtlt = '<';
if (xm)
M = +M + 1;
else
m = +m + 1;
}
ret = gtlt + M + '.' + m + '.' + p;
} else if (xm) {
ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
} else if (xp) {
ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
}
debug('xRange return', ret);
return ret;
});
}
// Because * is AND-ed with everything else in the comparator,
// and '' means "any version", just remove the *s entirely.
function replaceStars(comp, loose) {
debug('replaceStars', comp, loose);
// Looseness is ignored here. star is always as loose as it gets!
return comp.trim().replace(re[STAR], '');
}
// This function is passed to string.replace(re[HYPHENRANGE])
// M, m, patch, prerelease, build
// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
// 1.2 - 3.4 => >=1.2.0 <3.5.0
function hyphenReplace($0,
from, fM, fm, fp, fpr, fb,
to, tM, tm, tp, tpr, tb) {
if (isX(fM))
from = '';
else if (isX(fm))
from = '>=' + fM + '.0.0';
else if (isX(fp))
from = '>=' + fM + '.' + fm + '.0';
else
from = '>=' + from;
if (isX(tM))
to = '';
else if (isX(tm))
to = '<' + (+tM + 1) + '.0.0';
else if (isX(tp))
to = '<' + tM + '.' + (+tm + 1) + '.0';
else if (tpr)
to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr;
else
to = '<=' + to;
return (from + ' ' + to).trim();
}
// if ANY of the sets match ALL of its comparators, then pass
Range.prototype.test = function(version) {
if (!version)
return false;
if (typeof version === 'string')
version = new SemVer(version, this.loose);
for (var i = 0; i < this.set.length; i++) {
if (testSet(this.set[i], version))
return true;
}
return false;
};
function testSet(set, version) {
for (var i = 0; i < set.length; i++) {
if (!set[i].test(version))
return false;
}
if (version.prerelease.length) {
// Find the set of versions that are allowed to have prereleases
// For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
// That should allow `1.2.3-pr.2` to pass.
// However, `1.2.4-alpha.notready` should NOT be allowed,
// even though it's within the range set by the comparators.
for (var i = 0; i < set.length; i++) {
debug(set[i].semver);
if (set[i].semver === ANY)
continue;
if (set[i].semver.prerelease.length > 0) {
var allowed = set[i].semver;
if (allowed.major === version.major &&
allowed.minor === version.minor &&
allowed.patch === version.patch)
return true;
}
}
// Version has a -pre, but it's not one of the ones we like.
return false;
}
return true;
}
exports.satisfies = satisfies;
function satisfies(version, range, loose) {
try {
range = new Range(range, loose);
} catch (er) {
return false;
}
return range.test(version);
}
exports.maxSatisfying = maxSatisfying;
function maxSatisfying(versions, range, loose) {
var max = null;
var maxSV = null;
try {
var rangeObj = new Range(range, loose);
} catch (er) {
return null;
}
versions.forEach(function (v) {
if (rangeObj.test(v)) { // satisfies(v, range, loose)
if (!max || maxSV.compare(v) === -1) { // compare(max, v, true)
max = v;
maxSV = new SemVer(max, loose);
}
}
})
return max;
}
exports.minSatisfying = minSatisfying;
function minSatisfying(versions, range, loose) {
var min = null;
var minSV = null;
try {
var rangeObj = new Range(range, loose);
} catch (er) {
return null;
}
versions.forEach(function (v) {
if (rangeObj.test(v)) { // satisfies(v, range, loose)
if (!min || minSV.compare(v) === 1) { // compare(min, v, true)
min = v;
minSV = new SemVer(min, loose);
}
}
})
return min;
}
exports.validRange = validRange;
function validRange(range, loose) {
try {
// Return '*' instead of '' so that truthiness works.
// This will throw if it's invalid anyway
return new Range(range, loose).range || '*';
} catch (er) {
return null;
}
}
// Determine if version is less than all the versions possible in the range
exports.ltr = ltr;
function ltr(version, range, loose) {
return outside(version, range, '<', loose);
}
// Determine if version is greater than all the versions possible in the range.
exports.gtr = gtr;
function gtr(version, range, loose) {
return outside(version, range, '>', loose);
}
exports.outside = outside;
function outside(version, range, hilo, loose) {
version = new SemVer(version, loose);
range = new Range(range, loose);
var gtfn, ltefn, ltfn, comp, ecomp;
switch (hilo) {
case '>':
gtfn = gt;
ltefn = lte;
ltfn = lt;
comp = '>';
ecomp = '>=';
break;
case '<':
gtfn = lt;
ltefn = gte;
ltfn = gt;
comp = '<';
ecomp = '<=';
break;
default:
throw new TypeError('Must provide a hilo val of "<" or ">"');
}
// If it satisifes the range it is not outside
if (satisfies(version, range, loose)) {
return false;
}
// From now on, variable terms are as if we're in "gtr" mode.
// but note that everything is flipped for the "ltr" function.
for (var i = 0; i < range.set.length; ++i) {
var comparators = range.set[i];
var high = null;
var low = null;
comparators.forEach(function(comparator) {
if (comparator.semver === ANY) {
comparator = new Comparator('>=0.0.0')
}
high = high || comparator;
low = low || comparator;
if (gtfn(comparator.semver, high.semver, loose)) {
high = comparator;
} else if (ltfn(comparator.semver, low.semver, loose)) {
low = comparator;
}
});
// If the edge version comparator has a operator then our version
// isn't outside it
if (high.operator === comp || high.operator === ecomp) {
return false;
}
// If the lowest version comparator has an operator and our version
// is less than it then it isn't higher than the range
if ((!low.operator || low.operator === comp) &&
ltefn(version, low.semver)) {
return false;
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
return false;
}
}
return true;
}
exports.prerelease = prerelease;
function prerelease(version, loose) {
var parsed = parse(version, loose);
return (parsed && parsed.prerelease.length) ? parsed.prerelease : null;
}
exports.intersects = intersects;
function intersects(r1, r2, loose) {
r1 = new Range(r1, loose)
r2 = new Range(r2, loose)
return r1.intersects(r2)
}
exports.coerce = coerce;
function coerce(version) {
if (version instanceof SemVer)
return version;
if (typeof version !== 'string')
return null;
var match = version.match(re[COERCE]);
if (match == null)
return null;
return parse((match[1] || '0') + '.' + (match[2] || '0') + '.' + (match[3] || '0'));
}
/***/ }),
/* 23 */
/***/ (function(module, exports) {
module.exports = require("stream");
/***/ }),
/* 24 */
/***/ (function(module, exports) {
module.exports = require("url");
/***/ }),
/* 25 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subscription; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_isArray__ = __webpack_require__(41);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isObject__ = __webpack_require__(444);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isFunction__ = __webpack_require__(154);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_tryCatch__ = __webpack_require__(56);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_errorObject__ = __webpack_require__(48);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__ = __webpack_require__(441);
/** PURE_IMPORTS_START _util_isArray,_util_isObject,_util_isFunction,_util_tryCatch,_util_errorObject,_util_UnsubscriptionError PURE_IMPORTS_END */
var Subscription = /*@__PURE__*/ (function () {
function Subscription(unsubscribe) {
this.closed = false;
this._parent = null;
this._parents = null;
this._subscriptions = null;
if (unsubscribe) {
this._unsubscribe = unsubscribe;
}
}
Subscription.prototype.unsubscribe = function () {
var hasErrors = false;
var errors;
if (this.closed) {
return;
}
var _a = this, _parent = _a._parent, _parents = _a._parents, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions;
this.closed = true;
this._parent = null;
this._parents = null;
this._subscriptions = null;
var index = -1;
var len = _parents ? _parents.length : 0;
while (_parent) {
_parent.remove(this);
_parent = ++index < len && _parents[index] || null;
}
if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__util_isFunction__["a" /* isFunction */])(_unsubscribe)) {
var trial = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__util_tryCatch__["a" /* tryCatch */])(_unsubscribe).call(this);
if (trial === __WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */]) {
hasErrors = true;
errors = errors || (__WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e instanceof __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */] ?
flattenUnsubscriptionErrors(__WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e.errors) : [__WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e]);
}
}
if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__util_isArray__["a" /* isArray */])(_subscriptions)) {
index = -1;
len = _subscriptions.length;
while (++index < len) {
var sub = _subscriptions[index];
if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__util_isObject__["a" /* isObject */])(sub)) {
var trial = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__util_tryCatch__["a" /* tryCatch */])(sub.unsubscribe).call(sub);
if (trial === __WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */]) {
hasErrors = true;
errors = errors || [];
var err = __WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e;
if (err instanceof __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */]) {
errors = errors.concat(flattenUnsubscriptionErrors(err.errors));
}
else {
errors.push(err);
}
}
}
}
}
if (hasErrors) {
throw new __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */](errors);
}
};
Subscription.prototype.add = function (teardown) {
if (!teardown || (teardown === Subscription.EMPTY)) {
return Subscription.EMPTY;
}
if (teardown === this) {
return this;
}
var subscription = teardown;
switch (typeof teardown) {
case 'function':
subscription = new Subscription(teardown);
case 'object':
if (subscription.closed || typeof subscription.unsubscribe !== 'function') {
return subscription;
}
else if (this.closed) {
subscription.unsubscribe();
return subscription;
}
else if (typeof subscription._addParent !== 'function') {
var tmp = subscription;
subscription = new Subscription();
subscription._subscriptions = [tmp];
}
break;
default:
throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');
}
var subscriptions = this._subscriptions || (this._subscriptions = []);
subscriptions.push(subscription);
subscription._addParent(this);
return subscription;
};
Subscription.prototype.remove = function (subscription) {
var subscriptions = this._subscriptions;
if (subscriptions) {
var subscriptionIndex = subscriptions.indexOf(subscription);
if (subscriptionIndex !== -1) {
subscriptions.splice(subscriptionIndex, 1);
}
}
};
Subscription.prototype._addParent = function (parent) {
var _a = this, _parent = _a._parent, _parents = _a._parents;
if (!_parent || _parent === parent) {
this._parent = parent;
}
else if (!_parents) {
this._parents = [parent];
}
else if (_parents.indexOf(parent) === -1) {
_parents.push(parent);
}
};
Subscription.EMPTY = (function (empty) {
empty.closed = true;
return empty;
}(new Subscription()));
return Subscription;
}());
function flattenUnsubscriptionErrors(errors) {
return errors.reduce(function (errs, err) { return errs.concat((err instanceof __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */]) ? err.errors : err); }, []);
}
//# sourceMappingURL=Subscription.js.map
/***/ }),
/* 26 */
/***/ (function(module, exports, __webpack_require__) {
// Copyright 2015 Joyent, Inc.
module.exports = {
bufferSplit: bufferSplit,
addRSAMissing: addRSAMissing,
calculateDSAPublic: calculateDSAPublic,
calculateED25519Public: calculateED25519Public,
calculateX25519Public: calculateX25519Public,
mpNormalize: mpNormalize,
mpDenormalize: mpDenormalize,
ecNormalize: ecNormalize,
countZeros: countZeros,
assertCompatible: assertCompatible,
isCompatible: isCompatible,
opensslKeyDeriv: opensslKeyDeriv,
opensshCipherInfo: opensshCipherInfo,
publicFromPrivateECDSA: publicFromPrivateECDSA,
zeroPadToLength: zeroPadToLength,
writeBitString: writeBitString,
readBitString: readBitString
};
var assert = __webpack_require__(16);
var Buffer = __webpack_require__(15).Buffer;
var PrivateKey = __webpack_require__(33);
var Key = __webpack_require__(27);
var crypto = __webpack_require__(11);
var algs = __webpack_require__(32);
var asn1 = __webpack_require__(66);
var ec, jsbn;
var nacl;
var MAX_CLASS_DEPTH = 3;
function isCompatible(obj, klass, needVer) {
if (obj === null || typeof (obj) !== 'object')
return (false);
if (needVer === undefined)
needVer = klass.prototype._sshpkApiVersion;
if (obj instanceof klass &&
klass.prototype._sshpkApiVersion[0] == needVer[0])
return (true);
var proto = Object.getPrototypeOf(obj);
var depth = 0;
while (proto.constructor.name !== klass.name) {
proto = Object.getPrototypeOf(proto);
if (!proto || ++depth > MAX_CLASS_DEPTH)
return (false);
}
if (proto.constructor.name !== klass.name)
return (false);
var ver = proto._sshpkApiVersion;
if (ver === undefined)
ver = klass._oldVersionDetect(obj);
if (ver[0] != needVer[0] || ver[1] < needVer[1])
return (false);
return (true);
}
function assertCompatible(obj, klass, needVer, name) {
if (name === undefined)
name = 'object';
assert.ok(obj, name + ' must not be null');
assert.object(obj, name + ' must be an object');
if (needVer === undefined)
needVer = klass.prototype._sshpkApiVersion;
if (obj instanceof klass &&
klass.prototype._sshpkApiVersion[0] == needVer[0])
return;
var proto = Object.getPrototypeOf(obj);
var depth = 0;
while (proto.constructor.name !== klass.name) {
proto = Object.getPrototypeOf(proto);
assert.ok(proto && ++depth <= MAX_CLASS_DEPTH,
name + ' must be a ' + klass.name + ' instance');
}
assert.strictEqual(proto.constructor.name, klass.name,
name + ' must be a ' + klass.name + ' instance');
var ver = proto._sshpkApiVersion;
if (ver === undefined)
ver = klass._oldVersionDetect(obj);
assert.ok(ver[0] == needVer[0] && ver[1] >= needVer[1],
name + ' must be compatible with ' + klass.name + ' klass ' +
'version ' + needVer[0] + '.' + needVer[1]);
}
var CIPHER_LEN = {
'des-ede3-cbc': { key: 7, iv: 8 },
'aes-128-cbc': { key: 16, iv: 16 }
};
var PKCS5_SALT_LEN = 8;
function opensslKeyDeriv(cipher, salt, passphrase, count) {
assert.buffer(salt, 'salt');
assert.buffer(passphrase, 'passphrase');
assert.number(count, 'iteration count');
var clen = CIPHER_LEN[cipher];
assert.object(clen, 'supported cipher');
salt = salt.slice(0, PKCS5_SALT_LEN);
var D, D_prev, bufs;
var material = Buffer.alloc(0);
while (material.length < clen.key + clen.iv) {
bufs = [];
if (D_prev)
bufs.push(D_prev);
bufs.push(passphrase);
bufs.push(salt);
D = Buffer.concat(bufs);
for (var j = 0; j < count; ++j)
D = crypto.createHash('md5').update(D).digest();
material = Buffer.concat([material, D]);
D_prev = D;
}
return ({
key: material.slice(0, clen.key),
iv: material.slice(clen.key, clen.key + clen.iv)
});
}
/* Count leading zero bits on a buffer */
function countZeros(buf) {
var o = 0, obit = 8;
while (o < buf.length) {
var mask = (1 << obit);
if ((buf[o] & mask) === mask)
break;
obit--;
if (obit < 0) {
o++;
obit = 8;
}
}
return (o*8 + (8 - obit) - 1);
}
function bufferSplit(buf, chr) {
assert.buffer(buf);
assert.string(chr);
var parts = [];
var lastPart = 0;
var matches = 0;
for (var i = 0; i < buf.length; ++i) {
if (buf[i] === chr.charCodeAt(matches))
++matches;
else if (buf[i] === chr.charCodeAt(0))
matches = 1;
else
matches = 0;
if (matches >= chr.length) {
var newPart = i + 1;
parts.push(buf.slice(lastPart, newPart - matches));
lastPart = newPart;
matches = 0;
}
}
if (lastPart <= buf.length)
parts.push(buf.slice(lastPart, buf.length));
return (parts);
}
function ecNormalize(buf, addZero) {
assert.buffer(buf);
if (buf[0] === 0x00 && buf[1] === 0x04) {
if (addZero)
return (buf);
return (buf.slice(1));
} else if (buf[0] === 0x04) {
if (!addZero)
return (buf);
} else {
while (buf[0] === 0x00)
buf = buf.slice(1);
if (buf[0] === 0x02 || buf[0] === 0x03)
throw (new Error('Compressed elliptic curve points ' +
'are not supported'));
if (buf[0] !== 0x04)
throw (new Error('Not a valid elliptic curve point'));
if (!addZero)
return (buf);
}
var b = Buffer.alloc(buf.length + 1);
b[0] = 0x0;
buf.copy(b, 1);
return (b);
}
function readBitString(der, tag) {
if (tag === undefined)
tag = asn1.Ber.BitString;
var buf = der.readString(tag, true);
assert.strictEqual(buf[0], 0x00, 'bit strings with unused bits are ' +
'not supported (0x' + buf[0].toString(16) + ')');
return (buf.slice(1));
}
function writeBitString(der, buf, tag) {
if (tag === undefined)
tag = asn1.Ber.BitString;
var b = Buffer.alloc(buf.length + 1);
b[0] = 0x00;
buf.copy(b, 1);
der.writeBuffer(b, tag);
}
function mpNormalize(buf) {
assert.buffer(buf);
while (buf.length > 1 && buf[0] === 0x00 && (buf[1] & 0x80) === 0x00)
buf = buf.slice(1);
if ((buf[0] & 0x80) === 0x80) {
var b = Buffer.alloc(buf.length + 1);
b[0] = 0x00;
buf.copy(b, 1);
buf = b;
}
return (buf);
}
function mpDenormalize(buf) {
assert.buffer(buf);
while (buf.length > 1 && buf[0] === 0x00)
buf = buf.slice(1);
return (buf);
}
function zeroPadToLength(buf, len) {
assert.buffer(buf);
assert.number(len);
while (buf.length > len) {
assert.equal(buf[0], 0x00);
buf = buf.slice(1);
}
while (buf.length < len) {
var b = Buffer.alloc(buf.length + 1);
b[0] = 0x00;
buf.copy(b, 1);
buf = b;
}
return (buf);
}
function bigintToMpBuf(bigint) {
var buf = Buffer.from(bigint.toByteArray());
buf = mpNormalize(buf);
return (buf);
}
function calculateDSAPublic(g, p, x) {
assert.buffer(g);
assert.buffer(p);
assert.buffer(x);
try {
var bigInt = __webpack_require__(81).BigInteger;
} catch (e) {
throw (new Error('To load a PKCS#8 format DSA private key, ' +
'the node jsbn library is required.'));
}
g = new bigInt(g);
p = new bigInt(p);
x = new bigInt(x);
var y = g.modPow(x, p);
var ybuf = bigintToMpBuf(y);
return (ybuf);
}
function calculateED25519Public(k) {
assert.buffer(k);
if (nacl === undefined)
nacl = __webpack_require__(76);
var kp = nacl.sign.keyPair.fromSeed(new Uint8Array(k));
return (Buffer.from(kp.publicKey));
}
function calculateX25519Public(k) {
assert.buffer(k);
if (nacl === undefined)
nacl = __webpack_require__(76);
var kp = nacl.box.keyPair.fromSeed(new Uint8Array(k));
return (Buffer.from(kp.publicKey));
}
function addRSAMissing(key) {
assert.object(key);
assertCompatible(key, PrivateKey, [1, 1]);
try {
var bigInt = __webpack_require__(81).BigInteger;
} catch (e) {
throw (new Error('To write a PEM private key from ' +
'this source, the node jsbn lib is required.'));
}
var d = new bigInt(key.part.d.data);
var buf;
if (!key.part.dmodp) {
var p = new bigInt(key.part.p.data);
var dmodp = d.mod(p.subtract(1));
buf = bigintToMpBuf(dmodp);
key.part.dmodp = {name: 'dmodp', data: buf};
key.parts.push(key.part.dmodp);
}
if (!key.part.dmodq) {
var q = new bigInt(key.part.q.data);
var dmodq = d.mod(q.subtract(1));
buf = bigintToMpBuf(dmodq);
key.part.dmodq = {name: 'dmodq', data: buf};
key.parts.push(key.part.dmodq);
}
}
function publicFromPrivateECDSA(curveName, priv) {
assert.string(curveName, 'curveName');
assert.buffer(priv);
if (ec === undefined)
ec = __webpack_require__(139);
if (jsbn === undefined)
jsbn = __webpack_require__(81).BigInteger;
var params = algs.curves[curveName];
var p = new jsbn(params.p);
var a = new jsbn(params.a);
var b = new jsbn(params.b);
var curve = new ec.ECCurveFp(p, a, b);
var G = curve.decodePointHex(params.G.toString('hex'));
var d = new jsbn(mpNormalize(priv));
var pub = G.multiply(d);
pub = Buffer.from(curve.encodePointHex(pub), 'hex');
var parts = [];
parts.push({name: 'curve', data: Buffer.from(curveName)});
parts.push({name: 'Q', data: pub});
var key = new Key({type: 'ecdsa', curve: curve, parts: parts});
return (key);
}
function opensshCipherInfo(cipher) {
var inf = {};
switch (cipher) {
case '3des-cbc':
inf.keySize = 24;
inf.blockSize = 8;
inf.opensslName = 'des-ede3-cbc';
break;
case 'blowfish-cbc':
inf.keySize = 16;
inf.blockSize = 8;
inf.opensslName = 'bf-cbc';
break;
case 'aes128-cbc':
case 'aes128-ctr':
case 'aes128-gcm@openssh.com':
inf.keySize = 16;
inf.blockSize = 16;
inf.opensslName = 'aes-128-' + cipher.slice(7, 10);
break;
case 'aes192-cbc':
case 'aes192-ctr':
case 'aes192-gcm@openssh.com':
inf.keySize = 24;
inf.blockSize = 16;
inf.opensslName = 'aes-192-' + cipher.slice(7, 10);
break;
case 'aes256-cbc':
case 'aes256-ctr':
case 'aes256-gcm@openssh.com':
inf.keySize = 32;
inf.blockSize = 16;
inf.opensslName = 'aes-256-' + cipher.slice(7, 10);
break;
default:
throw (new Error(
'Unsupported openssl cipher "' + cipher + '"'));
}
return (inf);
}
/***/ }),
/* 27 */
/***/ (function(module, exports, __webpack_require__) {
// Copyright 2017 Joyent, Inc.
module.exports = Key;
var assert = __webpack_require__(16);
var algs = __webpack_require__(32);
var crypto = __webpack_require__(11);
var Fingerprint = __webpack_require__(156);
var Signature = __webpack_require__(75);
var DiffieHellman = __webpack_require__(325).DiffieHellman;
var errs = __webpack_require__(74);
var utils = __webpack_require__(26);
var PrivateKey = __webpack_require__(33);
var edCompat;
try {
edCompat = __webpack_require__(454);
} catch (e) {
/* Just continue through, and bail out if we try to use it. */
}
var InvalidAlgorithmError = errs.InvalidAlgorithmError;
var KeyParseError = errs.KeyParseError;
var formats = {};
formats['auto'] = __webpack_require__(455);
formats['pem'] = __webpack_require__(86);
formats['pkcs1'] = __webpack_require__(327);
formats['pkcs8'] = __webpack_require__(157);
formats['rfc4253'] = __webpack_require__(103);
formats['ssh'] = __webpack_require__(456);
formats['ssh-private'] = __webpack_require__(192);
formats['openssh'] = formats['ssh-private'];
formats['dnssec'] = __webpack_require__(326);
function Key(opts) {
assert.object(opts, 'options');
assert.arrayOfObject(opts.parts, 'options.parts');
assert.string(opts.type, 'options.type');
assert.optionalString(opts.comment, 'options.comment');
var algInfo = algs.info[opts.type];
if (typeof (algInfo) !== 'object')
throw (new InvalidAlgorithmError(opts.type));
var partLookup = {};
for (var i = 0; i < opts.parts.length; ++i) {
var part = opts.parts[i];
partLookup[part.name] = part;
}
this.type = opts.type;
this.parts = opts.parts;
this.part = partLookup;
this.comment = undefined;
this.source = opts.source;
/* for speeding up hashing/fingerprint operations */
this._rfc4253Cache = opts._rfc4253Cache;
this._hashCache = {};
var sz;
this.curve = undefined;
if (this.type === 'ecdsa') {
var curve = this.part.curve.data.toString();
this.curve = curve;
sz = algs.curves[curve].size;
} else if (this.type === 'ed25519' || this.type === 'curve25519') {
sz = 256;
this.curve = 'curve25519';
} else {
var szPart = this.part[algInfo.sizePart];
sz = szPart.data.length;
sz = sz * 8 - utils.countZeros(szPart.data);
}
this.size = sz;
}
Key.formats = formats;
Key.prototype.toBuffer = function (format, options) {
if (format === undefined)
format = 'ssh';
assert.string(format, 'format');
assert.object(formats[format], 'formats[format]');
assert.optionalObject(options, 'options');
if (format === 'rfc4253') {
if (this._rfc4253Cache === undefined)
this._rfc4253Cache = formats['rfc4253'].write(this);
return (this._rfc4253Cache);
}
return (formats[format].write(this, options));
};
Key.prototype.toString = function (format, options) {
return (this.toBuffer(format, options).toString());
};
Key.prototype.hash = function (algo) {
assert.string(algo, 'algorithm');
algo = algo.toLowerCase();
if (algs.hashAlgs[algo] === undefined)
throw (new InvalidAlgorithmError(algo));
if (this._hashCache[algo])
return (this._hashCache[algo]);
var hash = crypto.createHash(algo).
update(this.toBuffer('rfc4253')).digest();
this._hashCache[algo] = hash;
return (hash);
};
Key.prototype.fingerprint = function (algo) {
if (algo === undefined)
algo = 'sha256';
assert.string(algo, 'algorithm');
var opts = {
type: 'key',
hash: this.hash(algo),
algorithm: algo
};
return (new Fingerprint(opts));
};
Key.prototype.defaultHashAlgorithm = function () {
var hashAlgo = 'sha1';
if (this.type === 'rsa')
hashAlgo = 'sha256';
if (this.type === 'dsa' && this.size > 1024)
hashAlgo = 'sha256';
if (this.type === 'ed25519')
hashAlgo = 'sha512';
if (this.type === 'ecdsa') {
if (this.size <= 256)
hashAlgo = 'sha256';
else if (this.size <= 384)
hashAlgo = 'sha384';
else
hashAlgo = 'sha512';
}
return (hashAlgo);
};
Key.prototype.createVerify = function (hashAlgo) {
if (hashAlgo === undefined)
hashAlgo = this.defaultHashAlgorithm();
assert.string(hashAlgo, 'hash algorithm');
/* ED25519 is not supported by OpenSSL, use a javascript impl. */
if (this.type === 'ed25519' && edCompat !== undefined)
return (new edCompat.Verifier(this, hashAlgo));
if (this.type === 'curve25519')
throw (new Error('Curve25519 keys are not suitable for ' +
'signing or verification'));
var v, nm, err;
try {
nm = hashAlgo.toUpperCase();
v = crypto.createVerify(nm);
} catch (e) {
err = e;
}
if (v === undefined || (err instanceof Error &&
err.message.match(/Unknown message digest/))) {
nm = 'RSA-';
nm += hashAlgo.toUpperCase();
v = crypto.createVerify(nm);
}
assert.ok(v, 'failed to create verifier');
var oldVerify = v.verify.bind(v);
var key = this.toBuffer('pkcs8');
var curve = this.curve;
var self = this;
v.verify = function (signature, fmt) {
if (Signature.isSignature(signature, [2, 0])) {
if (signature.type !== self.type)
return (false);
if (signature.hashAlgorithm &&
signature.hashAlgorithm !== hashAlgo)
return (false);
if (signature.curve && self.type === 'ecdsa' &&
signature.curve !== curve)
return (false);
return (oldVerify(key, signature.toBuffer('asn1')));
} else if (typeof (signature) === 'string' ||
Buffer.isBuffer(signature)) {
return (oldVerify(key, signature, fmt));
/*
* Avoid doing this on valid arguments, walking the prototype
* chain can be quite slow.
*/
} else if (Signature.isSignature(signature, [1, 0])) {
throw (new Error('signature was created by too old ' +
'a version of sshpk and cannot be verified'));
} else {
throw (new TypeError('signature must be a string, ' +
'Buffer, or Signature object'));
}
};
return (v);
};
Key.prototype.createDiffieHellman = function () {
if (this.type === 'rsa')
throw (new Error('RSA keys do not support Diffie-Hellman'));
return (new DiffieHellman(this));
};
Key.prototype.createDH = Key.prototype.createDiffieHellman;
Key.parse = function (data, format, options) {
if (typeof (data) !== 'string')
assert.buffer(data, 'data');
if (format === undefined)
format = 'auto';
assert.string(format, 'format');
if (typeof (options) === 'string')
options = { filename: options };
assert.optionalObject(options, 'options');
if (options === undefined)
options = {};
assert.optionalString(options.filename, 'options.filename');
if (options.filename === undefined)
options.filename = '(unnamed)';
assert.object(formats[format], 'formats[format]');
try {
var k = formats[format].read(data, options);
if (k instanceof PrivateKey)
k = k.toPublic();
if (!k.comment)
k.comment = options.filename;
return (k);
} catch (e) {
if (e.name === 'KeyEncryptedError')
throw (e);
throw (new KeyParseError(options.filename, format, e));
}
};
Key.isKey = function (obj, ver) {
return (utils.isCompatible(obj, Key, ver));
};
/*
* API versions for Key:
* [1,0] -- initial ver, may take Signature for createVerify or may not
* [1,1] -- added pkcs1, pkcs8 formats
* [1,2] -- added auto, ssh-private, openssh formats
* [1,3] -- added defaultHashAlgorithm
* [1,4] -- added ed support, createDH
* [1,5] -- first explicitly tagged version
* [1,6] -- changed ed25519 part names
*/
Key.prototype._sshpkApiVersion = [1, 6];
Key._oldVersionDetect = function (obj) {
assert.func(obj.toBuffer);
assert.func(obj.fingerprint);
if (obj.createDH)
return ([1, 4]);
if (obj.defaultHashAlgorithm)
return ([1, 3]);
if (obj.formats['auto'])
return ([1, 2]);
if (obj.formats['pkcs1'])
return ([1, 1]);
return ([1, 0]);
};
/***/ }),
/* 28 */
/***/ (function(module, exports) {
module.exports = require("assert");
/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = nullify;
function nullify(obj = {}) {
if (Array.isArray(obj)) {
for (var _iterator = obj, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
var _ref;
if (_isArray) {
if (_i >= _iterator.length) break;
_ref = _iterator[_i++];
} else {
_i = _iterator.next();
if (_i.done) break;
_ref = _i.value;
}
const item = _ref;
nullify(item);
}
} else if (obj !== null && typeof obj === 'object' || typeof obj === 'function') {
Object.setPrototypeOf(obj, null);
// for..in can only be applied to 'object', not 'function'
if (typeof obj === 'object') {
for (const key in obj) {
nullify(obj[key]);
}
}
}
return obj;
}
/***/ }),
/* 30 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
const escapeStringRegexp = __webpack_require__(388);
const ansiStyles = __webpack_require__(506);
const stdoutColor = __webpack_require__(598).stdout;
const template = __webpack_require__(599);
const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm');
// `supportsColor.level` → `ansiStyles.color[name]` mapping
const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m'];
// `color-convert` models to exclude from the Chalk API due to conflicts and such
const skipModels = new Set(['gray']);
const styles = Object.create(null);
function applyOptions(obj, options) {
options = options || {};
// Detect level if not set manually
const scLevel = stdoutColor ? stdoutColor.level : 0;
obj.level = options.level === undefined ? scLevel : options.level;
obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0;
}
function Chalk(options) {
// We check for this.template here since calling `chalk.constructor()`
// by itself will have a `this` of a previously constructed chalk object
if (!this || !(this instanceof Chalk) || this.template) {
const chalk = {};
applyOptions(chalk, options);
chalk.template = function () {
const args = [].slice.call(arguments);
return chalkTag.apply(null, [chalk.template].concat(args));
};
Object.setPrototypeOf(chalk, Chalk.prototype);
Object.setPrototypeOf(chalk.template, chalk);
chalk.template.constructor = Chalk;
return chalk.template;
}
applyOptions(this, options);
}
// Use bright blue on Windows as the normal blue color is illegible
if (isSimpleWindowsTerm) {
ansiStyles.blue.open = '\u001B[94m';
}
for (const key of Object.keys(ansiStyles)) {
ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
styles[key] = {
get() {
const codes = ansiStyles[key];
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);
}
};
}
styles.visible = {
get() {
return build.call(this, this._styles || [], true, 'visible');
}
};
ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g');
for (const model of Object.keys(ansiStyles.color.ansi)) {
if (skipModels.has(model)) {
continue;
}
styles[model] = {
get() {
const level = this.level;
return function () {
const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments);
const codes = {
open,
close: ansiStyles.color.close,
closeRe: ansiStyles.color.closeRe
};
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
};
}
};
}
ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), 'g');
for (const model of Object.keys(ansiStyles.bgColor.ansi)) {
if (skipModels.has(model)) {
continue;
}
const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
styles[bgModel] = {
get() {
const level = this.level;
return function () {
const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments);
const codes = {
open,
close: ansiStyles.bgColor.close,
closeRe: ansiStyles.bgColor.closeRe
};
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
};
}
};
}
const proto = Object.defineProperties(() => {}, styles);
function build(_styles, _empty, key) {
const builder = function () {
return applyStyle.apply(builder, arguments);
};
builder._styles = _styles;
builder._empty = _empty;
const self = this;
Object.defineProperty(builder, 'level', {
enumerable: true,
get() {
return self.level;
},
set(level) {
self.level = level;
}
});
Object.defineProperty(builder, 'enabled', {
enumerable: true,
get() {
return self.enabled;
},
set(enabled) {
self.enabled = enabled;
}
});
// See below for fix regarding invisible grey/dim combination on Windows
builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey';
// `__proto__` is used because we must return a function, but there is
// no way to create a function with a different prototype
builder.__proto__ = proto; // eslint-disable-line no-proto
return builder;
}
function applyStyle() {
// Support varags, but simply cast to string in case there's only one arg
const args = arguments;
const argsLen = args.length;
let str = String(arguments[0]);
if (argsLen === 0) {
return '';
}
if (argsLen > 1) {
// Don't slice `arguments`, it prevents V8 optimizations
for (let a = 1; a < argsLen; a++) {
str += ' ' + args[a];
}
}
if (!this.enabled || this.level <= 0 || !str) {
return this._empty ? '' : str;
}
// Turns out that on Windows dimmed gray text becomes invisible in cmd.exe,
// see https://github.com/chalk/chalk/issues/58
// If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop.
const originalDim = ansiStyles.dim.open;
if (isSimpleWindowsTerm && this.hasGrey) {
ansiStyles.dim.open = '';
}
for (const code of this._styles.slice().reverse()) {
// Replace any instances already present with a re-opening code
// otherwise only the part of the string until said closing code
// will be colored, and the rest will simply be 'plain'.
str = code.open + str.replace(code.closeRe, code.open) + code.close;
// Close the styling before a linebreak and reopen
// after next line to fix a bleed issue on macOS
// https://github.com/chalk/chalk/pull/92
str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`);
}
// Reset the original `dim` if we changed it to work around the Windows dimmed gray issue
ansiStyles.dim.open = originalDim;
return str;
}
function chalkTag(chalk, strings) {
if (!Array.isArray(strings)) {
// If chalk() was called by itself or with a string,
// return the string itself as a string.
return [].slice.call(arguments, 1).join(' ');
}
const args = [].slice.call(arguments, 2);
const parts = [strings.raw[0]];
for (let i = 1; i < strings.length; i++) {
parts.push(String(args[i - 1]).replace(/[{}\\]/g, '\\$&'));
parts.push(String(strings.raw[i]));
}
return template(chalk, parts.join(''));
}
Object.defineProperties(Chalk.prototype, styles);
module.exports = Chalk(); // eslint-disable-line new-cap
module.exports.supportsColor = stdoutColor;
module.exports.default = module.exports; // For TypeScript
/***/ }),
/* 31 */
/***/ (function(module, exports) {
var core = module.exports = { version: '2.5.7' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
/***/ }),
/* 32 */
/***/ (function(module, exports, __webpack_require__) {
// Copyright 2015 Joyent, Inc.
var Buffer = __webpack_require__(15).Buffer;
var algInfo = {
'dsa': {
parts: ['p', 'q', 'g', 'y'],
sizePart: 'p'
},
'rsa': {
parts: ['e', 'n'],
sizePart: 'n'
},
'ecdsa': {
parts: ['curve', 'Q'],
sizePart: 'Q'
},
'ed25519': {
parts: ['A'],
sizePart: 'A'
}
};
algInfo['curve25519'] = algInfo['ed25519'];
var algPrivInfo = {
'dsa': {
parts: ['p', 'q', 'g', 'y', 'x']
},
'rsa': {
parts: ['n', 'e', 'd', 'iqmp', 'p', 'q']
},
'ecdsa': {
parts: ['curve', 'Q', 'd']
},
'ed25519': {
parts: ['A', 'k']
}
};
algPrivInfo['curve25519'] = algPrivInfo['ed25519'];
var hashAlgs = {
'md5': true,
'sha1': true,
'sha256': true,
'sha384': true,
'sha512': true
};
/*
* Taken from
* http://csrc.nist.gov/groups/ST/toolkit/documents/dss/NISTReCur.pdf
*/
var curves = {
'nistp256': {
size: 256,
pkcs8oid: '1.2.840.10045.3.1.7',
p: Buffer.from(('00' +
'ffffffff 00000001 00000000 00000000' +
'00000000 ffffffff ffffffff ffffffff').
replace(/ /g, ''), 'hex'),
a: Buffer.from(('00' +
'FFFFFFFF 00000001 00000000 00000000' +
'00000000 FFFFFFFF FFFFFFFF FFFFFFFC').
replace(/ /g, ''), 'hex'),
b: Buffer.from((
'5ac635d8 aa3a93e7 b3ebbd55 769886bc' +
'651d06b0 cc53b0f6 3bce3c3e 27d2604b').
replace(/ /g, ''), 'hex'),
s: Buffer.from(('00' +
'c49d3608 86e70493 6a6678e1 139d26b7' +
'819f7e90').
replace(/ /g, ''), 'hex'),
n: Buffer.from(('00' +
'ffffffff 00000000 ffffffff ffffffff' +
'bce6faad a7179e84 f3b9cac2 fc632551').
replace(/ /g, ''), 'hex'),
G: Buffer.from(('04' +
'6b17d1f2 e12c4247 f8bce6e5 63a440f2' +
'77037d81 2deb33a0 f4a13945 d898c296' +
'4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16' +
'2bce3357 6b315ece cbb64068 37bf51f5').
replace(/ /g, ''), 'hex')
},
'nistp384': {
size: 384,
pkcs8oid: '1.3.132.0.34',
p: Buffer.from(('00' +
'ffffffff ffffffff ffffffff ffffffff' +
'ffffffff ffffffff ffffffff fffffffe' +
'ffffffff 00000000 00000000 ffffffff').
replace(/ /g, ''), 'hex'),
a: Buffer.from(('00' +
'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF' +
'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE' +
'FFFFFFFF 00000000 00000000 FFFFFFFC').
replace(/ /g, ''), 'hex'),
b: Buffer.from((
'b3312fa7 e23ee7e4 988e056b e3f82d19' +
'181d9c6e fe814112 0314088f 5013875a' +
'c656398d 8a2ed19d 2a85c8ed d3ec2aef').
replace(/ /g, ''), 'hex'),
s: Buffer.from(('00' +
'a335926a a319a27a 1d00896a 6773a482' +
'7acdac73').
replace(/ /g, ''), 'hex'),
n: Buffer.from(('00' +
'ffffffff ffffffff ffffffff ffffffff' +
'ffffffff ffffffff c7634d81 f4372ddf' +
'581a0db2 48b0a77a ecec196a ccc52973').
replace(/ /g, ''), 'hex'),
G: Buffer.from(('04' +
'aa87ca22 be8b0537 8eb1c71e f320ad74' +
'6e1d3b62 8ba79b98 59f741e0 82542a38' +
'5502f25d bf55296c 3a545e38 72760ab7' +
'3617de4a 96262c6f 5d9e98bf 9292dc29' +
'f8f41dbd 289a147c e9da3113 b5f0b8c0' +
'0a60b1ce 1d7e819d 7a431d7c 90ea0e5f').
replace(/ /g, ''), 'hex')
},
'nistp521': {
size: 521,
pkcs8oid: '1.3.132.0.35',
p: Buffer.from((
'01ffffff ffffffff ffffffff ffffffff' +
'ffffffff ffffffff ffffffff ffffffff' +
'ffffffff ffffffff ffffffff ffffffff' +
'ffffffff ffffffff ffffffff ffffffff' +
'ffff').replace(/ /g, ''), 'hex'),
a: Buffer.from(('01FF' +
'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF' +
'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF' +
'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF' +
'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC').
replace(/ /g, ''), 'hex'),
b: Buffer.from(('51' +
'953eb961 8e1c9a1f 929a21a0 b68540ee' +
'a2da725b 99b315f3 b8b48991 8ef109e1' +
'56193951 ec7e937b 1652c0bd 3bb1bf07' +
'3573df88 3d2c34f1 ef451fd4 6b503f00').
replace(/ /g, ''), 'hex'),
s: Buffer.from(('00' +
'd09e8800 291cb853 96cc6717 393284aa' +
'a0da64ba').replace(/ /g, ''), 'hex'),
n: Buffer.from(('01ff' +
'ffffffff ffffffff ffffffff ffffffff' +
'ffffffff ffffffff ffffffff fffffffa' +
'51868783 bf2f966b 7fcc0148 f709a5d0' +
'3bb5c9b8 899c47ae bb6fb71e 91386409').
replace(/ /g, ''), 'hex'),
G: Buffer.from(('04' +
'00c6 858e06b7 0404e9cd 9e3ecb66 2395b442' +
'9c648139 053fb521 f828af60 6b4d3dba' +
'a14b5e77 efe75928 fe1dc127 a2ffa8de' +
'3348b3c1 856a429b f97e7e31 c2e5bd66' +
'0118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9' +
'98f54449 579b4468 17afbd17 273e662c' +
'97ee7299 5ef42640 c550b901 3fad0761' +
'353c7086 a272c240 88be9476 9fd16650').
replace(/ /g, ''), 'hex')
}
};
module.exports = {
info: algInfo,
privInfo: algPrivInfo,
hashAlgs: hashAlgs,
curves: curves
};
/***/ }),
/* 33 */
/***/ (function(module, exports, __webpack_require__) {
// Copyright 2017 Joyent, Inc.
module.exports = PrivateKey;
var assert = __webpack_require__(16);
var Buffer = __webpack_require__(15).Buffer;
var algs = __webpack_require__(32);
var crypto = __webpack_require__(11);
var Fingerprint = __webpack_require__(156);
var Signature = __webpack_require__(75);
var errs = __webpack_require__(74);
var util = __webpack_require__(3);
var utils = __webpack_require__(26);
var dhe = __webpack_require__(325);
var generateECDSA = dhe.generateECDSA;
var generateED25519 = dhe.generateED25519;
var edCompat;
var nacl;
try {
edCompat = __webpack_require__(454);
} catch (e) {
/* Just continue through, and bail out if we try to use it. */
}
var Key = __webpack_require__(27);
var InvalidAlgorithmError = errs.InvalidAlgorithmError;
var KeyParseError = errs.KeyParseError;
var KeyEncryptedError = errs.KeyEncryptedError;
var formats = {};
formats['auto'] = __webpack_require__(455);
formats['pem'] = __webpack_require__(86);
formats['pkcs1'] = __webpack_require__(327);
formats['pkcs8'] = __webpack_require__(157);
formats['rfc4253'] = __webpack_require__(103);
formats['ssh-private'] = __webpack_require__(192);
formats['openssh'] = formats['ssh-private'];
formats['ssh'] = formats['ssh-private'];
formats['dnssec'] = __webpack_require__(326);
function PrivateKey(opts) {
assert.object(opts, 'options');
Key.call(this, opts);
this._pubCache = undefined;
}
util.inherits(PrivateKey, Key);
PrivateKey.formats = formats;
PrivateKey.prototype.toBuffer = function (format, options) {
if (format === undefined)
format = 'pkcs1';
assert.string(format, 'format');
assert.object(formats[format], 'formats[format]');
assert.optionalObject(options, 'options');
return (formats[format].write(this, options));
};
PrivateKey.prototype.hash = function (algo) {
return (this.toPublic().hash(algo));
};
PrivateKey.prototype.toPublic = function () {
if (this._pubCache)
return (this._pubCache);
var algInfo = algs.info[this.type];
var pubParts = [];
for (var i = 0; i < algInfo.parts.length; ++i) {
var p = algInfo.parts[i];
pubParts.push(this.part[p]);
}
this._pubCache = new Key({
type: this.type,
source: this,
parts: pubParts
});
if (this.comment)
this._pubCache.comment = this.comment;
return (this._pubCache);
};
PrivateKey.prototype.derive = function (newType) {
assert.string(newType, 'type');
var priv, pub, pair;
if (this.type === 'ed25519' && newType === 'curve25519') {
if (nacl === undefined)
nacl = __webpack_require__(76);
priv = this.part.k.data;
if (priv[0] === 0x00)
priv = priv.slice(1);
pair = nacl.box.keyPair.fromSecretKey(new Uint8Array(priv));
pub = Buffer.from(pair.publicKey);
return (new PrivateKey({
type: 'curve25519',
parts: [
{ name: 'A', data: utils.mpNormalize(pub) },
{ name: 'k', data: utils.mpNormalize(priv) }
]
}));
} else if (this.type === 'curve25519' && newType === 'ed25519') {
if (nacl === undefined)
nacl = __webpack_require__(76);
priv = this.part.k.data;
if (priv[0] === 0x00)
priv = priv.slice(1);
pair = nacl.sign.keyPair.fromSeed(new Uint8Array(priv));
pub = Buffer.from(pair.publicKey);
return (new PrivateKey({
type: 'ed25519',
parts: [
{ name: 'A', data: utils.mpNormalize(pub) },
{ name: 'k', data: utils.mpNormalize(priv) }
]
}));
}
throw (new Error('Key derivation not supported from ' + this.type +
' to ' + newType));
};
PrivateKey.prototype.createVerify = function (hashAlgo) {
return (this.toPublic().createVerify(hashAlgo));
};
PrivateKey.prototype.createSign = function (hashAlgo) {
if (hashAlgo === undefined)
hashAlgo = this.defaultHashAlgorithm();
assert.string(hashAlgo, 'hash algorithm');
/* ED25519 is not supported by OpenSSL, use a javascript impl. */
if (this.type === 'ed25519' && edCompat !== undefined)
return (new edCompat.Signer(this, hashAlgo));
if (this.type === 'curve25519')
throw (new Error('Curve25519 keys are not suitable for ' +
'signing or verification'));
var v, nm, err;
try {
nm = hashAlgo.toUpperCase();
v = crypto.createSign(nm);
} catch (e) {
err = e;
}
if (v === undefined || (err instanceof Error &&
err.message.match(/Unknown message digest/))) {
nm = 'RSA-';
nm += hashAlgo.toUpperCase();
v = crypto.createSign(nm);
}
assert.ok(v, 'failed to create verifier');
var oldSign = v.sign.bind(v);
var key = this.toBuffer('pkcs1');
var type = this.type;
var curve = this.curve;
v.sign = function () {
var sig = oldSign(key);
if (typeof (sig) === 'string')
sig = Buffer.from(sig, 'binary');
sig = Signature.parse(sig, type, 'asn1');
sig.hashAlgorithm = hashAlgo;
sig.curve = curve;
return (sig);
};
return (v);
};
PrivateKey.parse = function (data, format, options) {
if (typeof (data) !== 'string')
assert.buffer(data, 'data');
if (format === undefined)
format = 'auto';
assert.string(format, 'format');
if (typeof (options) === 'string')
options = { filename: options };
assert.optionalObject(options, 'options');
if (options === undefined)
options = {};
assert.optionalString(options.filename, 'options.filename');
if (options.filename === undefined)
options.filename = '(unnamed)';
assert.object(formats[format], 'formats[format]');
try {
var k = formats[format].read(data, options);
assert.ok(k instanceof PrivateKey, 'key is not a private key');
if (!k.comment)
k.comment = options.filename;
return (k);
} catch (e) {
if (e.name === 'KeyEncryptedError')
throw (e);
throw (new KeyParseError(options.filename, format, e));
}
};
PrivateKey.isPrivateKey = function (obj, ver) {
return (utils.isCompatible(obj, PrivateKey, ver));
};
PrivateKey.generate = function (type, options) {
if (options === undefined)
options = {};
assert.object(options, 'options');
switch (type) {
case 'ecdsa':
if (options.curve === undefined)
options.curve = 'nistp256';
assert.string(options.curve, 'options.curve');
return (generateECDSA(options.curve));
case 'ed25519':
return (generateED25519());
default:
throw (new Error('Key generation not supported with key ' +
'type "' + type + '"'));
}
};
/*
* API versions for PrivateKey:
* [1,0] -- initial ver
* [1,1] -- added auto, pkcs[18], openssh/ssh-private formats
* [1,2] -- added defaultHashAlgorithm
* [1,3] -- added derive, ed, createDH
* [1,4] -- first tagged version
* [1,5] -- changed ed25519 part names and format
*/
PrivateKey.prototype._sshpkApiVersion = [1, 5];
PrivateKey._oldVersionDetect = function (obj) {
assert.func(obj.toPublic);
assert.func(obj.createSign);
if (obj.derive)
return ([1, 3]);
if (obj.defaultHashAlgorithm)
return ([1, 2]);
if (obj.formats['auto'])
return ([1, 1]);
return ([1, 0]);
};
/***/ }),
/* 34 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.wrapLifecycle = exports.run = exports.install = exports.Install = undefined;
var _extends2;
function _load_extends() {
return _extends2 = _interopRequireDefault(__webpack_require__(21));
}
var _asyncToGenerator2;
function _load_asyncToGenerator() {
return _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(2));
}
let install = exports.install = (() => {
var _ref29 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (config, reporter, flags, lockfile) {
yield wrapLifecycle(config, flags, (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* () {
const install = new Install(flags, config, reporter, lockfile);
yield install.init();
}));
});
return function install(_x7, _x8, _x9, _x10) {
return _ref29.apply(this, arguments);
};
})();
let run = exports.run = (() => {
var _ref31 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (config, reporter, flags, args) {
let lockfile;
let error = 'installCommandRenamed';
if (flags.lockfile === false) {
lockfile = new (_lockfile || _load_lockfile()).default();
} else {
lockfile = yield (_lockfile || _load_lockfile()).default.fromDirectory(config.lockfileFolder, reporter);
}
if (args.length) {
const exampleArgs = args.slice();
if (flags.saveDev) {
exampleArgs.push('--dev');
}
if (flags.savePeer) {
exampleArgs.push('--peer');
}
if (flags.saveOptional) {
exampleArgs.push('--optional');
}
if (flags.saveExact) {
exampleArgs.push('--exact');
}
if (flags.saveTilde) {
exampleArgs.push('--tilde');
}
let command = 'add';
if (flags.global) {
error = 'globalFlagRemoved';
command = 'global add';
}
throw new (_errors || _load_errors()).MessageError(reporter.lang(error, `yarn ${command} ${exampleArgs.join(' ')}`));
}
yield install(config, reporter, flags, lockfile);
});
return function run(_x11, _x12, _x13, _x14) {
return _ref31.apply(this, arguments);
};
})();
let wrapLifecycle = exports.wrapLifecycle = (() => {
var _ref32 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (config, flags, factory) {
yield config.executeLifecycleScript('preinstall');
yield factory();
// npm behaviour, seems kinda funky but yay compatibility
yield config.executeLifecycleScript('install');
yield config.executeLifecycleScript('postinstall');
if (!config.production) {
if (!config.disablePrepublish) {
yield config.executeLifecycleScript('prepublish');
}
yield config.executeLifecycleScript('prepare');
}
});
return function wrapLifecycle(_x15, _x16, _x17) {
return _ref32.apply(this, arguments);
};
})();
exports.hasWrapper = hasWrapper;
exports.setFlags = setFlags;
var _objectPath;
function _load_objectPath() {
return _objectPath = _interopRequireDefault(__webpack_require__(304));
}
var _hooks;
function _load_hooks() {
return _hooks = __webpack_require__(374);
}
var _index;
function _load_index() {
return _index = _interopRequireDefault(__webpack_require__(220));
}
var _errors;
function _load_errors() {
return _errors = __webpack_require__(6);
}
var _integrityChecker;
function _load_integrityChecker() {
return _integrityChecker = _interopRequireDefault(__webpack_require__(208));
}
var _lockfile;
function _load_lockfile() {
return _lockfile = _interopRequireDefault(__webpack_require__(19));
}
var _lockfile2;
function _load_lockfile2() {
return _lockfile2 = __webpack_require__(19);
}
var _packageFetcher;
function _load_packageFetcher() {
return _packageFetcher = _interopRequireWildcard(__webpack_require__(210));
}
var _packageInstallScripts;
function _load_packageInstallScripts() {
return _packageInstallScripts = _interopRequireDefault(__webpack_require__(557));
}
var _packageCompatibility;
function _load_packageCompatibility() {
return _packageCompatibility = _interopRequireWildcard(__webpack_require__(209));
}
var _packageResolver;
function _load_packageResolver() {
return _packageResolver = _interopRequireDefault(__webpack_require__(366));
}
var _packageLinker;
function _load_packageLinker() {
return _packageLinker = _interopRequireDefault(__webpack_require__(211));
}
var _index2;
function _load_index2() {
return _index2 = __webpack_require__(57);
}
var _index3;
function _load_index3() {
return _index3 = __webpack_require__(78);
}
var _autoclean;
function _load_autoclean() {
return _autoclean = __webpack_require__(354);
}
var _constants;
function _load_constants() {
return _constants = _interopRequireWildcard(__webpack_require__(8));
}
var _normalizePattern;
function _load_normalizePattern() {
return _normalizePattern = __webpack_require__(37);
}
var _fs;
function _load_fs() {
return _fs = _interopRequireWildcard(__webpack_require__(4));
}
var _map;
function _load_map() {
return _map = _interopRequireDefault(__webpack_require__(29));
}
var _yarnVersion;
function _load_yarnVersion() {
return _yarnVersion = __webpack_require__(120);
}
var _generatePnpMap;
function _load_generatePnpMap() {
return _generatePnpMap = __webpack_require__(579);
}
var _workspaceLayout;
function _load_workspaceLayout() {
return _workspaceLayout = _interopRequireDefault(__webpack_require__(90));
}
var _resolutionMap;
function _load_resolutionMap() {
return _resolutionMap = _interopRequireDefault(__webpack_require__(214));
}
var _guessName;
function _load_guessName() {
return _guessName = _interopRequireDefault(__webpack_require__(169));
}
var _audit;
function _load_audit() {
return _audit = _interopRequireDefault(__webpack_require__(353));
}
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const deepEqual = __webpack_require__(631);
const emoji = __webpack_require__(302);
const invariant = __webpack_require__(9);
const path = __webpack_require__(0);
const semver = __webpack_require__(22);
const uuid = __webpack_require__(119);
const ssri = __webpack_require__(65);
const ONE_DAY = 1000 * 60 * 60 * 24;
/**
* Try and detect the installation method for Yarn and provide a command to update it with.
*/
function getUpdateCommand(installationMethod) {
if (installationMethod === 'tar') {
return `curl --compressed -o- -L ${(_constants || _load_constants()).YARN_INSTALLER_SH} | bash`;
}
if (installationMethod === 'homebrew') {
return 'brew upgrade yarn';
}
if (installationMethod === 'deb') {
return 'sudo apt-get update && sudo apt-get install yarn';
}
if (installationMethod === 'rpm') {
return 'sudo yum install yarn';
}
if (installationMethod === 'npm') {
return 'npm install --global yarn';
}
if (installationMethod === 'chocolatey') {
return 'choco upgrade yarn';
}
if (installationMethod === 'apk') {
return 'apk update && apk add -u yarn';
}
if (installationMethod === 'portage') {
return 'sudo emerge --sync && sudo emerge -au sys-apps/yarn';
}
return null;
}
function getUpdateInstaller(installationMethod) {
// Windows
if (installationMethod === 'msi') {
return (_constants || _load_constants()).YARN_INSTALLER_MSI;
}
return null;
}
function normalizeFlags(config, rawFlags) {
const flags = {
// install
har: !!rawFlags.har,
ignorePlatform: !!rawFlags.ignorePlatform,
ignoreEngines: !!rawFlags.ignoreEngines,
ignoreScripts: !!rawFlags.ignoreScripts,
ignoreOptional: !!rawFlags.ignoreOptional,
force: !!rawFlags.force,
flat: !!rawFlags.flat,
lockfile: rawFlags.lockfile !== false,
pureLockfile: !!rawFlags.pureLockfile,
updateChecksums: !!rawFlags.updateChecksums,
skipIntegrityCheck: !!rawFlags.skipIntegrityCheck,
frozenLockfile: !!rawFlags.frozenLockfile,
linkDuplicates: !!rawFlags.linkDuplicates,
checkFiles: !!rawFlags.checkFiles,
audit: !!rawFlags.audit,
// add
peer: !!rawFlags.peer,
dev: !!rawFlags.dev,
optional: !!rawFlags.optional,
exact: !!rawFlags.exact,
tilde: !!rawFlags.tilde,
ignoreWorkspaceRootCheck: !!rawFlags.ignoreWorkspaceRootCheck,
// outdated, update-interactive
includeWorkspaceDeps: !!rawFlags.includeWorkspaceDeps,
// add, remove, update
workspaceRootIsCwd: rawFlags.workspaceRootIsCwd !== false
};
if (config.getOption('ignore-scripts')) {
flags.ignoreScripts = true;
}
if (config.getOption('ignore-platform')) {
flags.ignorePlatform = true;
}
if (config.getOption('ignore-engines')) {
flags.ignoreEngines = true;
}
if (config.getOption('ignore-optional')) {
flags.ignoreOptional = true;
}
if (config.getOption('force')) {
flags.force = true;
}
return flags;
}
class Install {
constructor(flags, config, reporter, lockfile) {
this.rootManifestRegistries = [];
this.rootPatternsToOrigin = (0, (_map || _load_map()).default)();
this.lockfile = lockfile;
this.reporter = reporter;
this.config = config;
this.flags = normalizeFlags(config, flags);
this.resolutions = (0, (_map || _load_map()).default)(); // Legacy resolutions field used for flat install mode
this.resolutionMap = new (_resolutionMap || _load_resolutionMap()).default(config); // Selective resolutions for nested dependencies
this.resolver = new (_packageResolver || _load_packageResolver()).default(config, lockfile, this.resolutionMap);
this.integrityChecker = new (_integrityChecker || _load_integrityChecker()).default(config);
this.linker = new (_packageLinker || _load_packageLinker()).default(config, this.resolver);
this.scripts = new (_packageInstallScripts || _load_packageInstallScripts()).default(config, this.resolver, this.flags.force);
}
/**
* Create a list of dependency requests from the current directories manifests.
*/
fetchRequestFromCwd(excludePatterns = [], ignoreUnusedPatterns = false) {
var _this = this;
return (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* () {
const patterns = [];
const deps = [];
let resolutionDeps = [];
const manifest = {};
const ignorePatterns = [];
const usedPatterns = [];
let workspaceLayout;
// some commands should always run in the context of the entire workspace
const cwd = _this.flags.includeWorkspaceDeps || _this.flags.workspaceRootIsCwd ? _this.config.lockfileFolder : _this.config.cwd;
// non-workspaces are always root, otherwise check for workspace root
const cwdIsRoot = !_this.config.workspaceRootFolder || _this.config.lockfileFolder === cwd;
// exclude package names that are in install args
const excludeNames = [];
for (var _iterator = excludePatterns, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
var _ref;
if (_isArray) {
if (_i >= _iterator.length) break;
_ref = _iterator[_i++];
} else {
_i = _iterator.next();
if (_i.done) break;
_ref = _i.value;
}
const pattern = _ref;
if ((0, (_index3 || _load_index3()).getExoticResolver)(pattern)) {
excludeNames.push((0, (_guessName || _load_guessName()).default)(pattern));
} else {
// extract the name
const parts = (0, (_normalizePattern || _load_normalizePattern()).normalizePattern)(pattern);
excludeNames.push(parts.name);
}
}
const stripExcluded = function stripExcluded(manifest) {
for (var _iterator2 = excludeNames, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
var _ref2;
if (_isArray2) {
if (_i2 >= _iterator2.length) break;
_ref2 = _iterator2[_i2++];
} else {
_i2 = _iterator2.next();
if (_i2.done) break;
_ref2 = _i2.value;
}
const exclude = _ref2;
if (manifest.dependencies && manifest.dependencies[exclude]) {
delete manifest.dependencies[exclude];
}
if (manifest.devDependencies && manifest.devDependencies[exclude]) {
delete manifest.devDependencies[exclude];
}
if (manifest.optionalDependencies && manifest.optionalDependencies[exclude]) {
delete manifest.optionalDependencies[exclude];
}
}
};
for (var _iterator3 = Object.keys((_index2 || _load_index2()).registries), _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
var _ref3;
if (_isArray3) {
if (_i3 >= _iterator3.length) break;
_ref3 = _iterator3[_i3++];
} else {
_i3 = _iterator3.next();
if (_i3.done) break;
_ref3 = _i3.value;
}
const registry = _ref3;
const filename = (_index2 || _load_index2()).registries[registry].filename;
const loc = path.join(cwd, filename);
if (!(yield (_fs || _load_fs()).exists(loc))) {
continue;
}
_this.rootManifestRegistries.push(registry);
const projectManifestJson = yield _this.config.readJson(loc);
yield (0, (_index || _load_index()).default)(projectManifestJson, cwd, _this.config, cwdIsRoot);
Object.assign(_this.resolutions, projectManifestJson.resolutions);
Object.assign(manifest, projectManifestJson);
_this.resolutionMap.init(_this.resolutions);
for (var _iterator4 = Object.keys(_this.resolutionMap.resolutionsByPackage), _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) {
var _ref4;
if (_isArray4) {
if (_i4 >= _iterator4.length) break;
_ref4 = _iterator4[_i4++];
} else {
_i4 = _iterator4.next();
if (_i4.done) break;
_ref4 = _i4.value;
}
const packageName = _ref4;
const optional = (_objectPath || _load_objectPath()).default.has(manifest.optionalDependencies, packageName) && _this.flags.ignoreOptional;
for (var _iterator8 = _this.resolutionMap.resolutionsByPackage[packageName], _isArray8 = Array.isArray(_iterator8), _i8 = 0, _iterator8 = _isArray8 ? _iterator8 : _iterator8[Symbol.iterator]();;) {
var _ref9;
if (_isArray8) {
if (_i8 >= _iterator8.length) break;
_ref9 = _iterator8[_i8++];
} else {
_i8 = _iterator8.next();
if (_i8.done) break;
_ref9 = _i8.value;
}
const _ref8 = _ref9;
const pattern = _ref8.pattern;
resolutionDeps = [...resolutionDeps, { registry, pattern, optional, hint: 'resolution' }];
}
}
const pushDeps = function pushDeps(depType, manifest, { hint, optional }, isUsed) {
if (ignoreUnusedPatterns && !isUsed) {
return;
}
// We only take unused dependencies into consideration to get deterministic hoisting.
// Since flat mode doesn't care about hoisting and everything is top level and specified then we can safely
// leave these out.
if (_this.flags.flat && !isUsed) {
return;
}
const depMap = manifest[depType];
for (const name in depMap) {
if (excludeNames.indexOf(name) >= 0) {
continue;
}
let pattern = name;
if (!_this.lockfile.getLocked(pattern)) {
// when we use --save we save the dependency to the lockfile with just the name rather than the
// version combo
pattern += '@' + depMap[name];
}
// normalization made sure packages are mentioned only once
if (isUsed) {
usedPatterns.push(pattern);
} else {
ignorePatterns.push(pattern);
}
_this.rootPatternsToOrigin[pattern] = depType;
patterns.push(pattern);
deps.push({ pattern, registry, hint, optional, workspaceName: manifest.name, workspaceLoc: manifest._loc });
}
};
if (cwdIsRoot) {
pushDeps('dependencies', projectManifestJson, { hint: null, optional: false }, true);
pushDeps('devDependencies', projectManifestJson, { hint: 'dev', optional: false }, !_this.config.production);
pushDeps('optionalDependencies', projectManifestJson, { hint: 'optiona
gitextract_8r78_ugc/ ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ └── bug_report.md │ └── workflows/ │ └── ci.yml ├── .gitignore ├── .node-version ├── .prettierignore ├── .yarn/ │ └── releases/ │ └── yarn-1.22.10.js ├── .yarnrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── RNFastImage.podspec ├── ReactNativeFastImageExample/ │ ├── .buckconfig │ ├── .editorconfig │ ├── .eslintrc.js │ ├── .gitattributes │ ├── .gitignore │ ├── .prettierrc.js │ ├── .watchmanconfig │ ├── __tests__/ │ │ └── App-test.tsx │ ├── android/ │ │ ├── app/ │ │ │ ├── _BUCK │ │ │ ├── build.gradle │ │ │ ├── build_defs.bzl │ │ │ ├── debug.keystore │ │ │ ├── proguard-rules.pro │ │ │ └── src/ │ │ │ ├── debug/ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── java/ │ │ │ │ └── com/ │ │ │ │ └── reactnativefastimageexample/ │ │ │ │ └── ReactNativeFlipper.java │ │ │ └── main/ │ │ │ ├── AndroidManifest.xml │ │ │ ├── java/ │ │ │ │ └── com/ │ │ │ │ └── reactnativefastimageexample/ │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res/ │ │ │ └── values/ │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle/ │ │ │ └── wrapper/ │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ │ ├── gradle.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ └── settings.gradle │ ├── app.json │ ├── babel.config.js │ ├── index.js │ ├── ios/ │ │ ├── Podfile │ │ ├── ReactNativeFastImageExample/ │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Images.xcassets/ │ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ └── main.m │ │ ├── ReactNativeFastImageExample.xcodeproj/ │ │ │ ├── project.pbxproj │ │ │ └── xcshareddata/ │ │ │ └── xcschemes/ │ │ │ └── ReactNativeFastImageExample.xcscheme │ │ ├── ReactNativeFastImageExample.xcworkspace/ │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata/ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── ReactNativeFastImageExampleTests/ │ │ ├── Info.plist │ │ └── ReactNativeFastImageExampleTests.m │ ├── metro.config.js │ ├── package.json │ ├── src/ │ │ ├── AutoSizeExample.tsx │ │ ├── BorderRadiusExample.tsx │ │ ├── BulletText.tsx │ │ ├── Button.tsx │ │ ├── DefaultImageGrid.tsx │ │ ├── FastImageExamples.tsx │ │ ├── FastImageGrid.tsx │ │ ├── FeatureText.tsx │ │ ├── GifExample.tsx │ │ ├── Icon.tsx │ │ ├── ImageGrid.tsx │ │ ├── LocalImagesExample.tsx │ │ ├── PreloadExample.tsx │ │ ├── PriorityExample.tsx │ │ ├── ProgressExample.tsx │ │ ├── ResizeModeExample.tsx │ │ ├── Section.tsx │ │ ├── SectionFlex.tsx │ │ ├── StatusBarUnderlay.tsx │ │ ├── TintColorExample.tsx │ │ ├── images/ │ │ │ └── fields.ts │ │ ├── index.tsx │ │ └── useCacheBust.tsx │ └── tsconfig.json ├── ReactNativeFastImageExampleServer/ │ ├── index.js │ └── package.json ├── android/ │ ├── build.gradle │ └── src/ │ └── main/ │ ├── AndroidManifest.xml │ └── java/ │ └── com/ │ └── dylanvann/ │ └── fastimage/ │ ├── FastImageCacheControl.java │ ├── FastImageGlideModule.java │ ├── FastImageOkHttpProgressGlideModule.java │ ├── FastImageProgressListener.java │ ├── FastImageRequestListener.java │ ├── FastImageSource.java │ ├── FastImageViewConverter.java │ ├── FastImageViewManager.java │ ├── FastImageViewModule.java │ ├── FastImageViewPackage.java │ └── FastImageViewWithUrl.java ├── babel.config.js ├── docs/ │ ├── app-glide-module.md │ ├── development.md │ ├── how-is-caching-handled.md │ ├── other-android-versions.md │ ├── roadmap.md │ └── troubleshooting.md ├── ios/ │ ├── FastImage/ │ │ ├── FFFastImageSource.h │ │ ├── FFFastImageSource.m │ │ ├── FFFastImageView.h │ │ ├── FFFastImageView.m │ │ ├── FFFastImageViewManager.h │ │ ├── FFFastImageViewManager.m │ │ ├── RCTConvert+FFFastImage.h │ │ └── RCTConvert+FFFastImage.m │ └── FastImage.xcodeproj/ │ ├── project.pbxproj │ └── xcshareddata/ │ └── xcschemes/ │ └── FastImage-tvOS.xcscheme ├── package.json ├── src/ │ ├── __snapshots__/ │ │ └── index.test.tsx.snap │ ├── index.js.flow │ ├── index.test.tsx │ └── index.tsx └── tsconfig.json
Showing preview only (360K chars total). Download the full file or copy to clipboard to get everything.
SYMBOL INDEX (4742 symbols across 34 files)
FILE: .yarn/releases/yarn-1.22.10.js
function __webpack_require__ (line 8) | function __webpack_require__(moduleId) {
function __extends (line 124) | function __extends(d, b) {
function __rest (line 141) | function __rest(s, e) {
function __decorate (line 151) | function __decorate(decorators, target, key, desc) {
function __param (line 158) | function __param(paramIndex, decorator) {
function __metadata (line 162) | function __metadata(metadataKey, metadataValue) {
function __awaiter (line 166) | function __awaiter(thisArg, _arguments, P, generator) {
function __generator (line 175) | function __generator(thisArg, body) {
function __exportStar (line 203) | function __exportStar(m, exports) {
function __values (line 207) | function __values(o) {
function __read (line 218) | function __read(o, n) {
function __spread (line 235) | function __spread() {
function __await (line 241) | function __await(v) {
function __asyncGenerator (line 245) | function __asyncGenerator(thisArg, _arguments, generator) {
function __asyncDelegator (line 257) | function __asyncDelegator(o) {
function __asyncValues (line 263) | function __asyncValues(o) {
function __makeTemplateObject (line 271) | function __makeTemplateObject(cooked, raw) {
function __importStar (line 276) | function __importStar(mod) {
function __importDefault (line 284) | function __importDefault(mod) {
function _interopRequireDefault (line 302) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function step (line 308) | function step(key, arg) {
function _load_asyncToGenerator (line 353) | function _load_asyncToGenerator() {
function onDone (line 546) | function onDone() {
function onDone (line 838) | function onDone() {
function _load_fs (line 1395) | function _load_fs() {
function _load_glob (line 1401) | function _load_glob() {
function _load_os (line 1407) | function _load_os() {
function _load_path (line 1413) | function _load_path() {
function _load_blockingQueue (line 1419) | function _load_blockingQueue() {
function _load_promise (line 1425) | function _load_promise() {
function _load_promise2 (line 1431) | function _load_promise2() {
function _load_map (line 1437) | function _load_map() {
function _load_fsNormalized (line 1443) | function _load_fsNormalized() {
function _interopRequireWildcard (line 1447) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 1449) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function copy (line 1488) | function copy(src, dest, reporter) {
function _readFile (line 1492) | function _readFile(loc, encoding) {
function readFile (line 1504) | function readFile(loc) {
function readFileRaw (line 1508) | function readFileRaw(loc) {
function normalizeOS (line 1512) | function normalizeOS(body) {
class MessageError (line 1535) | class MessageError extends Error {
method constructor (line 1536) | constructor(msg, code) {
class ProcessSpawnError (line 1544) | class ProcessSpawnError extends MessageError {
method constructor (line 1545) | constructor(msg, code, process) {
class SecurityError (line 1553) | class SecurityError extends MessageError {}
class ProcessTermError (line 1556) | class ProcessTermError extends MessageError {}
class ResponseError (line 1559) | class ResponseError extends Error {
method constructor (line 1560) | constructor(msg, responseCode) {
class OneTimePasswordError (line 1568) | class OneTimePasswordError extends Error {}
function Subscriber (line 1595) | function Subscriber(destinationOrNext, error, complete) {
function SafeSubscriber (line 1688) | function SafeSubscriber(_parentSubscriber, observerOrNext, error, comple...
function getPreferredCacheDirectories (line 1881) | function getPreferredCacheDirectories() {
function getYarnBinPath (line 1904) | function getYarnBinPath() {
function getPathKey (line 1936) | function getPathKey(platform, env) {
function compileStyleAliases (line 2049) | function compileStyleAliases(map) {
function Type (line 2063) | function Type(tag, options) {
function Observable (line 2115) | function Observable(subscribe) {
function getPromiseCtor (line 2214) | function getPromiseCtor(promiseCtor) {
function OuterSubscriber (line 2239) | function OuterSubscriber() {
function subscribeToResult (line 2268) | function subscribeToResult(outerSubscriber, result, outerValue, outerInd...
function _capitalize (line 2384) | function _capitalize(str) {
function _toss (line 2388) | function _toss(name, expected, oper, arg, actual) {
function _getClass (line 2398) | function _getClass(arg) {
function noop (line 2402) | function noop() {
function _setExports (line 2465) | function _setExports(ndebug) {
function sortAlpha (line 2615) | function sortAlpha(a, b) {
function sortOptionsByFlags (line 2628) | function sortOptionsByFlags(a, b) {
function entries (line 2634) | function entries(obj) {
function removePrefix (line 2644) | function removePrefix(pattern, prefix) {
function removeSuffix (line 2652) | function removeSuffix(pattern, suffix) {
function addSuffix (line 2660) | function addSuffix(pattern, suffix) {
function hyphenate (line 2668) | function hyphenate(str) {
function camelCase (line 2674) | function camelCase(str) {
function compareSortedArrays (line 2682) | function compareSortedArrays(array1, array2) {
function sleep (line 2694) | function sleep(ms) {
function _load_asyncToGenerator (line 2714) | function _load_asyncToGenerator() {
function _load_parse (line 2720) | function _load_parse() {
function _load_stringify (line 2733) | function _load_stringify() {
function _load_misc (line 2748) | function _load_misc() {
function _load_normalizePattern (line 2754) | function _load_normalizePattern() {
function _load_parse2 (line 2760) | function _load_parse2() {
function _load_constants (line 2766) | function _load_constants() {
function _load_fs (line 2772) | function _load_fs() {
function _interopRequireWildcard (line 2776) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 2778) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function getName (line 2785) | function getName(pattern) {
function blankObjectUndefined (line 2789) | function blankObjectUndefined(obj) {
function keyForRemote (line 2793) | function keyForRemote(remote) {
function serializeIntegrity (line 2797) | function serializeIntegrity(integrity) {
function implodeEntry (line 2803) | function implodeEntry(pattern, obj) {
function explodeEntry (line 2823) | function explodeEntry(pattern, obj) {
class Lockfile (line 2837) | class Lockfile {
method constructor (line 2838) | constructor({ cache, source, parseResultType } = {}) {
method hasEntriesExistWithoutIntegrity (line 2848) | hasEntriesExistWithoutIntegrity() {
method fromDirectory (line 2863) | static fromDirectory(dir, reporter) {
method getLocked (line 2898) | getLocked(pattern) {
method removePattern (line 2916) | removePattern(pattern) {
method getLockfile (line 2924) | getLockfile(patterns) {
function _interopRequireDefault (line 3023) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function parse (line 3290) | function parse(version, loose) {
function valid (line 3312) | function valid(version, loose) {
function clean (line 3319) | function clean(version, loose) {
function SemVer (line 3326) | function SemVer(version, loose) {
function inc (line 3539) | function inc(version, release, loose, identifier) {
function diff (line 3553) | function diff(version1, version2) {
function compareIdentifiers (line 3582) | function compareIdentifiers(a, b) {
function rcompareIdentifiers (line 3599) | function rcompareIdentifiers(a, b) {
function major (line 3604) | function major(a, loose) {
function minor (line 3609) | function minor(a, loose) {
function patch (line 3614) | function patch(a, loose) {
function compare (line 3619) | function compare(a, b, loose) {
function compareLoose (line 3624) | function compareLoose(a, b) {
function rcompare (line 3629) | function rcompare(a, b, loose) {
function sort (line 3634) | function sort(list, loose) {
function rsort (line 3641) | function rsort(list, loose) {
function gt (line 3648) | function gt(a, b, loose) {
function lt (line 3653) | function lt(a, b, loose) {
function eq (line 3658) | function eq(a, b, loose) {
function neq (line 3663) | function neq(a, b, loose) {
function gte (line 3668) | function gte(a, b, loose) {
function lte (line 3673) | function lte(a, b, loose) {
function cmp (line 3678) | function cmp(a, op, b, loose) {
function Comparator (line 3703) | function Comparator(comp, loose) {
function Range (line 3802) | function Range(range, loose) {
function toComparators (line 3906) | function toComparators(range, loose) {
function parseComparator (line 3917) | function parseComparator(comp, loose) {
function isX (line 3930) | function isX(id) {
function replaceTildes (line 3940) | function replaceTildes(comp, loose) {
function replaceTilde (line 3946) | function replaceTilde(comp, loose) {
function replaceCarets (line 3981) | function replaceCarets(comp, loose) {
function replaceCaret (line 3987) | function replaceCaret(comp, loose) {
function replaceXRanges (line 4036) | function replaceXRanges(comp, loose) {
function replaceXRange (line 4043) | function replaceXRange(comp, loose) {
function replaceStars (line 4109) | function replaceStars(comp, loose) {
function hyphenReplace (line 4120) | function hyphenReplace($0,
function testSet (line 4163) | function testSet(set, version) {
function satisfies (line 4197) | function satisfies(version, range, loose) {
function maxSatisfying (line 4207) | function maxSatisfying(versions, range, loose) {
function minSatisfying (line 4227) | function minSatisfying(versions, range, loose) {
function validRange (line 4247) | function validRange(range, loose) {
function ltr (line 4259) | function ltr(version, range, loose) {
function gtr (line 4265) | function gtr(version, range, loose) {
function outside (line 4270) | function outside(version, range, hilo, loose) {
function prerelease (line 4340) | function prerelease(version, loose) {
function intersects (line 4346) | function intersects(r1, r2, loose) {
function coerce (line 4353) | function coerce(version) {
function Subscription (line 4401) | function Subscription(unsubscribe) {
function flattenUnsubscriptionErrors (line 4521) | function flattenUnsubscriptionErrors(errors) {
function isCompatible (line 4566) | function isCompatible(obj, klass, needVer) {
function assertCompatible (line 4591) | function assertCompatible(obj, klass, needVer, name) {
function opensslKeyDeriv (line 4624) | function opensslKeyDeriv(cipher, salt, passphrase, count) {
function countZeros (line 4656) | function countZeros(buf) {
function bufferSplit (line 4671) | function bufferSplit(buf, chr) {
function ecNormalize (line 4699) | function ecNormalize(buf, addZero) {
function readBitString (line 4725) | function readBitString(der, tag) {
function writeBitString (line 4734) | function writeBitString(der, buf, tag) {
function mpNormalize (line 4743) | function mpNormalize(buf) {
function mpDenormalize (line 4756) | function mpDenormalize(buf) {
function zeroPadToLength (line 4763) | function zeroPadToLength(buf, len) {
function bigintToMpBuf (line 4779) | function bigintToMpBuf(bigint) {
function calculateDSAPublic (line 4785) | function calculateDSAPublic(g, p, x) {
function calculateED25519Public (line 4803) | function calculateED25519Public(k) {
function calculateX25519Public (line 4813) | function calculateX25519Public(k) {
function addRSAMissing (line 4823) | function addRSAMissing(key) {
function publicFromPrivateECDSA (line 4854) | function publicFromPrivateECDSA(curveName, priv) {
function opensshCipherInfo (line 4880) | function opensshCipherInfo(cipher) {
function Key (line 4961) | function Key(opts) {
function nullify (line 5220) | function nullify(obj = {}) {
function applyOptions (line 5274) | function applyOptions(obj, options) {
function Chalk (line 5283) | function Chalk(options) {
method get (line 5315) | get() {
method get (line 5323) | get() {
method get (line 5335) | get() {
method get (line 5358) | get() {
function build (line 5375) | function build(_styles, _empty, key) {
function applyStyle (line 5415) | function applyStyle() {
function chalkTag (line 5462) | function chalkTag(chalk, strings) {
function PrivateKey (line 5715) | function PrivateKey(opts) {
function _load_extends (line 5942) | function _load_extends() {
function _load_asyncToGenerator (line 5948) | function _load_asyncToGenerator() {
function _load_objectPath (line 6037) | function _load_objectPath() {
function _load_hooks (line 6043) | function _load_hooks() {
function _load_index (line 6049) | function _load_index() {
function _load_errors (line 6055) | function _load_errors() {
function _load_integrityChecker (line 6061) | function _load_integrityChecker() {
function _load_lockfile (line 6067) | function _load_lockfile() {
function _load_lockfile2 (line 6073) | function _load_lockfile2() {
function _load_packageFetcher (line 6079) | function _load_packageFetcher() {
function _load_packageInstallScripts (line 6085) | function _load_packageInstallScripts() {
function _load_packageCompatibility (line 6091) | function _load_packageCompatibility() {
function _load_packageResolver (line 6097) | function _load_packageResolver() {
function _load_packageLinker (line 6103) | function _load_packageLinker() {
function _load_index2 (line 6109) | function _load_index2() {
function _load_index3 (line 6115) | function _load_index3() {
function _load_autoclean (line 6121) | function _load_autoclean() {
function _load_constants (line 6127) | function _load_constants() {
function _load_normalizePattern (line 6133) | function _load_normalizePattern() {
function _load_fs (line 6139) | function _load_fs() {
function _load_map (line 6145) | function _load_map() {
function _load_yarnVersion (line 6151) | function _load_yarnVersion() {
function _load_generatePnpMap (line 6157) | function _load_generatePnpMap() {
function _load_workspaceLayout (line 6163) | function _load_workspaceLayout() {
function _load_resolutionMap (line 6169) | function _load_resolutionMap() {
function _load_guessName (line 6175) | function _load_guessName() {
function _load_audit (line 6181) | function _load_audit() {
function _interopRequireWildcard (line 6185) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 6187) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function getUpdateCommand (line 6204) | function getUpdateCommand(installationMethod) {
function getUpdateInstaller (line 6240) | function getUpdateInstaller(installationMethod) {
function normalizeFlags (line 6249) | function normalizeFlags(config, rawFlags) {
class Install (line 6306) | class Install {
method constructor (line 6307) | constructor(flags, config, reporter, lockfile) {
method fetchRequestFromCwd (line 6326) | fetchRequestFromCwd(excludePatterns = [], ignoreUnusedPatterns = false) {
method prepareRequests (line 6625) | prepareRequests(requests) {
method preparePatterns (line 6629) | preparePatterns(patterns) {
method preparePatternsForLinking (line 6632) | preparePatternsForLinking(patterns, cwdManifest, cwdIsRoot) {
method prepareManifests (line 6636) | prepareManifests() {
method bailout (line 6645) | bailout(patterns, workspaceLayout) {
method createEmptyManifestFolders (line 6707) | createEmptyManifestFolders() {
method markIgnored (line 6740) | markIgnored(patterns) {
method getFlattenedDeps (line 6769) | getFlattenedDeps() {
method init (line 6792) | init() {
method checkCompatibility (line 7013) | checkCompatibility() {
method persistChanges (line 7025) | persistChanges() {
method applyChanges (line 7038) | applyChanges(manifests) {
method shouldClean (line 7069) | shouldClean() {
method flatten (line 7077) | flatten(patterns) {
method pruneOfflineMirror (line 7198) | pruneOfflineMirror(lockfile) {
method saveLockfileAndIntegrity (line 7248) | saveLockfileAndIntegrity(patterns, workspaceLayout) {
method _logSuccessSaveLockfile (line 7320) | _logSuccessSaveLockfile() {
method hydrate (line 7327) | hydrate(ignoreUnusedPatterns) {
method checkUpdate (line 7394) | checkUpdate() {
method _checkUpdate (line 7421) | _checkUpdate() {
method maybeOutputUpdate (line 7463) | maybeOutputUpdate() {}
function hasWrapper (line 7467) | function hasWrapper(commander, args) {
function setFlags (line 7471) | function setFlags(commander) {
function SubjectSubscriber (line 7520) | function SubjectSubscriber(destination) {
function Subject (line 7530) | function Subject() {
function AnonymousSubject (line 7631) | function AnonymousSubject(destination, source) {
function normalizePattern (line 7686) | function normalizePattern(pattern) {
function apply (line 8193) | function apply(func, thisArg, args) {
function arrayAggregator (line 8213) | function arrayAggregator(array, setter, iteratee, accumulator) {
function arrayEach (line 8233) | function arrayEach(array, iteratee) {
function arrayEachRight (line 8254) | function arrayEachRight(array, iteratee) {
function arrayEvery (line 8275) | function arrayEvery(array, predicate) {
function arrayFilter (line 8296) | function arrayFilter(array, predicate) {
function arrayIncludes (line 8320) | function arrayIncludes(array, value) {
function arrayIncludesWith (line 8334) | function arrayIncludesWith(array, value, comparator) {
function arrayMap (line 8355) | function arrayMap(array, iteratee) {
function arrayPush (line 8374) | function arrayPush(array, values) {
function arrayReduce (line 8397) | function arrayReduce(array, iteratee, accumulator, initAccum) {
function arrayReduceRight (line 8422) | function arrayReduceRight(array, iteratee, accumulator, initAccum) {
function arraySome (line 8443) | function arraySome(array, predicate) {
function asciiToArray (line 8471) | function asciiToArray(string) {
function asciiWords (line 8482) | function asciiWords(string) {
function baseFindKey (line 8497) | function baseFindKey(collection, predicate, eachFunc) {
function baseFindIndex (line 8519) | function baseFindIndex(array, predicate, fromIndex, fromRight) {
function baseIndexOf (line 8540) | function baseIndexOf(array, value, fromIndex) {
function baseIndexOfWith (line 8556) | function baseIndexOfWith(array, value, fromIndex, comparator) {
function baseIsNaN (line 8575) | function baseIsNaN(value) {
function baseMean (line 8588) | function baseMean(array, iteratee) {
function baseProperty (line 8600) | function baseProperty(key) {
function basePropertyOf (line 8613) | function basePropertyOf(object) {
function baseReduce (line 8632) | function baseReduce(collection, iteratee, accumulator, initAccum, eachFu...
function baseSortBy (line 8651) | function baseSortBy(array, comparer) {
function baseSum (line 8670) | function baseSum(array, iteratee) {
function baseTimes (line 8693) | function baseTimes(n, iteratee) {
function baseToPairs (line 8712) | function baseToPairs(object, props) {
function baseUnary (line 8725) | function baseUnary(func) {
function baseValues (line 8741) | function baseValues(object, props) {
function cacheHas (line 8755) | function cacheHas(cache, key) {
function charsStartIndex (line 8768) | function charsStartIndex(strSymbols, chrSymbols) {
function charsEndIndex (line 8785) | function charsEndIndex(strSymbols, chrSymbols) {
function countHolders (line 8800) | function countHolders(array, placeholder) {
function escapeStringChar (line 8838) | function escapeStringChar(chr) {
function getValue (line 8850) | function getValue(object, key) {
function hasUnicode (line 8861) | function hasUnicode(string) {
function hasUnicodeWord (line 8872) | function hasUnicodeWord(string) {
function iteratorToArray (line 8883) | function iteratorToArray(iterator) {
function mapToArray (line 8900) | function mapToArray(map) {
function overArg (line 8918) | function overArg(func, transform) {
function replaceHolders (line 8933) | function replaceHolders(array, placeholder) {
function safeGet (line 8957) | function safeGet(object, key) {
function setToArray (line 8970) | function setToArray(set) {
function setToPairs (line 8987) | function setToPairs(set) {
function strictIndexOf (line 9007) | function strictIndexOf(array, value, fromIndex) {
function strictLastIndexOf (line 9029) | function strictLastIndexOf(array, value, fromIndex) {
function stringSize (line 9046) | function stringSize(string) {
function stringToArray (line 9059) | function stringToArray(string) {
function unicodeSize (line 9081) | function unicodeSize(string) {
function unicodeToArray (line 9096) | function unicodeToArray(string) {
function unicodeWords (line 9107) | function unicodeWords(string) {
function lodash (line 9384) | function lodash(value) {
function object (line 9405) | function object() {}
function baseLodash (line 9425) | function baseLodash() {
function LodashWrapper (line 9436) | function LodashWrapper(value, chainAll) {
function LazyWrapper (line 9521) | function LazyWrapper(value) {
function lazyClone (line 9539) | function lazyClone() {
function lazyReverse (line 9558) | function lazyReverse() {
function lazyValue (line 9578) | function lazyValue() {
function Hash (line 9640) | function Hash(entries) {
method isHash (line 26225) | get isHash () { return true }
method constructor (line 26226) | constructor (hash, opts) {
method hexDigest (line 26244) | hexDigest () {
method toJSON (line 26247) | toJSON () {
method toString (line 26250) | toString (opts) {
function hashClear (line 9658) | function hashClear() {
function hashDelete (line 9673) | function hashDelete(key) {
function hashGet (line 9688) | function hashGet(key) {
function hashHas (line 9706) | function hashHas(key) {
function hashSet (line 9721) | function hashSet(key, value) {
function ListCache (line 9744) | function ListCache(entries) {
function listCacheClear (line 9762) | function listCacheClear() {
function listCacheDelete (line 9776) | function listCacheDelete(key) {
function listCacheGet (line 9802) | function listCacheGet(key) {
function listCacheHas (line 9818) | function listCacheHas(key) {
function listCacheSet (line 9832) | function listCacheSet(key, value) {
function MapCache (line 9861) | function MapCache(entries) {
function mapCacheClear (line 9879) | function mapCacheClear() {
function mapCacheDelete (line 9897) | function mapCacheDelete(key) {
function mapCacheGet (line 9912) | function mapCacheGet(key) {
function mapCacheHas (line 9925) | function mapCacheHas(key) {
function mapCacheSet (line 9939) | function mapCacheSet(key, value) {
function SetCache (line 9965) | function SetCache(values) {
function setCacheAdd (line 9985) | function setCacheAdd(value) {
function setCacheHas (line 9999) | function setCacheHas(value) {
function Stack (line 10016) | function Stack(entries) {
function stackClear (line 10028) | function stackClear() {
function stackDelete (line 10042) | function stackDelete(key) {
function stackGet (line 10059) | function stackGet(key) {
function stackHas (line 10072) | function stackHas(key) {
function stackSet (line 10086) | function stackSet(key, value) {
function arrayLikeKeys (line 10119) | function arrayLikeKeys(value, inherited) {
function arraySample (line 10153) | function arraySample(array) {
function arraySampleSize (line 10166) | function arraySampleSize(array, n) {
function arrayShuffle (line 10177) | function arrayShuffle(array) {
function assignMergeValue (line 10190) | function assignMergeValue(object, key, value) {
function assignValue (line 10207) | function assignValue(object, key, value) {
function assocIndexOf (line 10223) | function assocIndexOf(array, key) {
function baseAggregator (line 10244) | function baseAggregator(collection, setter, iteratee, accumulator) {
function baseAssign (line 10260) | function baseAssign(object, source) {
function baseAssignIn (line 10273) | function baseAssignIn(object, source) {
function baseAssignValue (line 10286) | function baseAssignValue(object, key, value) {
function baseAt (line 10307) | function baseAt(object, paths) {
function baseClamp (line 10328) | function baseClamp(number, lower, upper) {
function baseClone (line 10356) | function baseClone(value, bitmask, customizer, key, object, stack) {
function baseConforms (line 10445) | function baseConforms(source) {
function baseConformsTo (line 10460) | function baseConformsTo(object, source, props) {
function baseDelay (line 10488) | function baseDelay(func, wait, args) {
function baseDifference (line 10506) | function baseDifference(array, values, iteratee, comparator) {
function baseEvery (line 10580) | function baseEvery(collection, predicate) {
function baseExtremum (line 10599) | function baseExtremum(array, iteratee, comparator) {
function baseFill (line 10628) | function baseFill(array, value, start, end) {
function baseFilter (line 10654) | function baseFilter(collection, predicate) {
function baseFlatten (line 10675) | function baseFlatten(array, depth, predicate, isStrict, result) {
function baseForOwn (line 10731) | function baseForOwn(object, iteratee) {
function baseForOwnRight (line 10743) | function baseForOwnRight(object, iteratee) {
function baseFunctions (line 10756) | function baseFunctions(object, props) {
function baseGet (line 10770) | function baseGet(object, path) {
function baseGetAllKeys (line 10793) | function baseGetAllKeys(object, keysFunc, symbolsFunc) {
function baseGetTag (line 10805) | function baseGetTag(value) {
function baseGt (line 10823) | function baseGt(value, other) {
function baseHas (line 10835) | function baseHas(object, key) {
function baseHasIn (line 10847) | function baseHasIn(object, key) {
function baseInRange (line 10860) | function baseInRange(number, start, end) {
function baseIntersection (line 10874) | function baseIntersection(arrays, iteratee, comparator) {
function baseInverter (line 10938) | function baseInverter(object, setter, iteratee, accumulator) {
function baseInvoke (line 10955) | function baseInvoke(object, path, args) {
function baseIsArguments (line 10969) | function baseIsArguments(value) {
function baseIsArrayBuffer (line 10980) | function baseIsArrayBuffer(value) {
function baseIsDate (line 10991) | function baseIsDate(value) {
function baseIsEqual (line 11009) | function baseIsEqual(value, other, bitmask, customizer, stack) {
function baseIsEqualDeep (line 11033) | function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, ...
function baseIsMap (line 11085) | function baseIsMap(value) {
function baseIsMatch (line 11099) | function baseIsMatch(object, source, matchData, customizer) {
function baseIsNative (line 11151) | function baseIsNative(value) {
function baseIsRegExp (line 11166) | function baseIsRegExp(value) {
function baseIsSet (line 11177) | function baseIsSet(value) {
function baseIsTypedArray (line 11188) | function baseIsTypedArray(value) {
function baseIteratee (line 11200) | function baseIteratee(value) {
function baseKeys (line 11224) | function baseKeys(object) {
function baseKeysIn (line 11244) | function baseKeysIn(object) {
function baseLt (line 11268) | function baseLt(value, other) {
function baseMap (line 11280) | function baseMap(collection, iteratee) {
function baseMatches (line 11297) | function baseMatches(source) {
function baseMatchesProperty (line 11315) | function baseMatchesProperty(path, srcValue) {
function baseMerge (line 11338) | function baseMerge(object, source, srcIndex, customizer, stack) {
function baseMergeDeep (line 11375) | function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customi...
function baseNth (line 11445) | function baseNth(array, n) {
function baseOrderBy (line 11463) | function baseOrderBy(collection, iteratees, orders) {
function basePick (line 11488) | function basePick(object, paths) {
function basePickBy (line 11503) | function basePickBy(object, paths, predicate) {
function basePropertyDeep (line 11526) | function basePropertyDeep(path) {
function basePullAll (line 11543) | function basePullAll(array, values, iteratee, comparator) {
function basePullAt (line 11579) | function basePullAt(array, indexes) {
function baseRandom (line 11606) | function baseRandom(lower, upper) {
function baseRange (line 11621) | function baseRange(start, end, step, fromRight) {
function baseRepeat (line 11641) | function baseRepeat(string, n) {
function baseRest (line 11669) | function baseRest(func, start) {
function baseSample (line 11680) | function baseSample(collection) {
function baseSampleSize (line 11692) | function baseSampleSize(collection, n) {
function baseSet (line 11707) | function baseSet(object, path, value, customizer) {
function baseShuffle (line 11774) | function baseShuffle(collection) {
function baseSlice (line 11787) | function baseSlice(array, start, end) {
function baseSome (line 11817) | function baseSome(collection, predicate) {
function baseSortedIndex (line 11839) | function baseSortedIndex(array, value, retHighest) {
function baseSortedIndexBy (line 11873) | function baseSortedIndexBy(array, value, iteratee, retHighest) {
function baseSortedUniq (line 11922) | function baseSortedUniq(array, iteratee) {
function baseToNumber (line 11948) | function baseToNumber(value) {
function baseToString (line 11966) | function baseToString(value) {
function baseUniq (line 11991) | function baseUniq(array, iteratee, comparator) {
function baseUnset (line 12051) | function baseUnset(object, path) {
function baseUpdate (line 12067) | function baseUpdate(object, path, updater, customizer) {
function baseWhile (line 12082) | function baseWhile(array, predicate, isDrop, fromRight) {
function baseWrapperValue (line 12104) | function baseWrapperValue(value, actions) {
function baseXor (line 12124) | function baseXor(arrays, iteratee, comparator) {
function baseZipObject (line 12154) | function baseZipObject(props, values, assignFunc) {
function castArrayLikeObject (line 12174) | function castArrayLikeObject(value) {
function castFunction (line 12185) | function castFunction(value) {
function castPath (line 12197) | function castPath(value, object) {
function castSlice (line 12224) | function castSlice(array, start, end) {
function cloneBuffer (line 12248) | function cloneBuffer(buffer, isDeep) {
function cloneArrayBuffer (line 12266) | function cloneArrayBuffer(arrayBuffer) {
function cloneDataView (line 12280) | function cloneDataView(dataView, isDeep) {
function cloneRegExp (line 12292) | function cloneRegExp(regexp) {
function cloneSymbol (line 12305) | function cloneSymbol(symbol) {
function cloneTypedArray (line 12317) | function cloneTypedArray(typedArray, isDeep) {
function compareAscending (line 12330) | function compareAscending(value, other) {
function compareMultiple (line 12374) | function compareMultiple(object, other, orders) {
function composeArgs (line 12412) | function composeArgs(args, partials, holders, isCurried) {
function composeArgsRight (line 12447) | function composeArgsRight(args, partials, holders, isCurried) {
function copyArray (line 12481) | function copyArray(source, array) {
function copyObject (line 12502) | function copyObject(source, props, object, customizer) {
function copySymbols (line 12536) | function copySymbols(source, object) {
function copySymbolsIn (line 12548) | function copySymbolsIn(source, object) {
function createAggregator (line 12560) | function createAggregator(setter, initializer) {
function createAssigner (line 12576) | function createAssigner(assigner) {
function createBaseEach (line 12610) | function createBaseEach(eachFunc, fromRight) {
function createBaseFor (line 12638) | function createBaseFor(fromRight) {
function createBind (line 12665) | function createBind(func, bitmask, thisArg) {
function createCaseFirst (line 12683) | function createCaseFirst(methodName) {
function createCompounder (line 12710) | function createCompounder(callback) {
function createCtor (line 12724) | function createCtor(Ctor) {
function createCurry (line 12758) | function createCurry(func, bitmask, arity) {
function createFind (line 12793) | function createFind(findIndexFunc) {
function createFlow (line 12813) | function createFlow(fromRight) {
function createHybrid (line 12886) | function createHybrid(func, bitmask, thisArg, partials, holders, partial...
function createInverter (line 12948) | function createInverter(setter, toIteratee) {
function createMathOperation (line 12962) | function createMathOperation(operator, defaultValue) {
function createOver (line 12995) | function createOver(arrayFunc) {
function createPadding (line 13016) | function createPadding(length, chars) {
function createPartial (line 13041) | function createPartial(func, bitmask, thisArg, partials) {
function createRange (line 13071) | function createRange(fromRight) {
function createRelationalOperation (line 13096) | function createRelationalOperation(operator) {
function createRecurry (line 13123) | function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, pa...
function createRound (line 13156) | function createRound(methodName) {
function createToPairs (line 13192) | function createToPairs(keysFunc) {
function createWrap (line 13230) | function createWrap(func, bitmask, thisArg, partials, holders, argPos, a...
function customDefaultsAssignIn (line 13297) | function customDefaultsAssignIn(objValue, srcValue, key, object) {
function customDefaultsMerge (line 13319) | function customDefaultsMerge(objValue, srcValue, key, object, source, st...
function customOmitClone (line 13338) | function customOmitClone(value) {
function equalArrays (line 13355) | function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
function equalByTag (line 13433) | function equalByTag(object, other, tag, bitmask, customizer, equalFunc, ...
function equalObjects (line 13511) | function equalObjects(object, other, bitmask, customizer, equalFunc, sta...
function flatRest (line 13582) | function flatRest(func) {
function getAllKeys (line 13593) | function getAllKeys(object) {
function getAllKeysIn (line 13605) | function getAllKeysIn(object) {
function getFuncName (line 13627) | function getFuncName(func) {
function getHolder (line 13649) | function getHolder(func) {
function getIteratee (line 13665) | function getIteratee() {
function getMapData (line 13679) | function getMapData(map, key) {
function getMatchData (line 13693) | function getMatchData(object) {
function getNative (line 13714) | function getNative(object, key) {
function getRawTag (line 13726) | function getRawTag(value) {
function getView (line 13822) | function getView(start, end, transforms) {
function getWrapDetails (line 13847) | function getWrapDetails(source) {
function hasPath (line 13861) | function hasPath(object, path, hasFunc) {
function initCloneArray (line 13890) | function initCloneArray(array) {
function initCloneObject (line 13909) | function initCloneObject(object) {
function initCloneByTag (line 13927) | function initCloneByTag(object, tag, isDeep) {
function insertWrapDetails (line 13971) | function insertWrapDetails(source, details) {
function isFlattenable (line 13989) | function isFlattenable(value) {
function isIndex (line 14002) | function isIndex(value, length) {
function isIterateeCall (line 14022) | function isIterateeCall(value, index, object) {
function isKey (line 14044) | function isKey(value, object) {
function isKeyable (line 14064) | function isKeyable(value) {
function isLaziable (line 14079) | function isLaziable(func) {
function isMasked (line 14100) | function isMasked(func) {
function isPrototype (line 14120) | function isPrototype(value) {
function isStrictComparable (line 14135) | function isStrictComparable(value) {
function matchesStrictComparable (line 14148) | function matchesStrictComparable(key, srcValue) {
function memoizeCapped (line 14166) | function memoizeCapped(func) {
function mergeData (line 14194) | function mergeData(data, source) {
function nativeKeysIn (line 14258) | function nativeKeysIn(object) {
function objectToString (line 14275) | function objectToString(value) {
function overRest (line 14288) | function overRest(func, start, transform) {
function parent (line 14317) | function parent(object, path) {
function reorder (line 14331) | function reorder(array, indexes) {
function setWrapToString (line 14391) | function setWrapToString(wrapper, reference, bitmask) {
function shortOut (line 14405) | function shortOut(func) {
function shuffleSelf (line 14433) | function shuffleSelf(array, size) {
function toKey (line 14475) | function toKey(value) {
function toSource (line 14490) | function toSource(func) {
function updateWrapDetails (line 14510) | function updateWrapDetails(details, bitmask) {
function wrapperClone (line 14527) | function wrapperClone(wrapper) {
function chunk (line 14561) | function chunk(array, size, guard) {
function compact (line 14596) | function compact(array) {
function concat (line 14633) | function concat() {
function drop (line 14769) | function drop(array, n, guard) {
function dropRight (line 14803) | function dropRight(array, n, guard) {
function dropRightWhile (line 14848) | function dropRightWhile(array, predicate) {
function dropWhile (line 14889) | function dropWhile(array, predicate) {
function fill (line 14924) | function fill(array, value, start, end) {
function findIndex (line 14971) | function findIndex(array, predicate, fromIndex) {
function findLastIndex (line 15018) | function findLastIndex(array, predicate, fromIndex) {
function flatten (line 15047) | function flatten(array) {
function flattenDeep (line 15066) | function flattenDeep(array) {
function flattenDepth (line 15091) | function flattenDepth(array, depth) {
function fromPairs (line 15115) | function fromPairs(pairs) {
function head (line 15145) | function head(array) {
function indexOf (line 15172) | function indexOf(array, value, fromIndex) {
function initial (line 15198) | function initial(array) {
function join (line 15313) | function join(array, separator) {
function last (line 15331) | function last(array) {
function lastIndexOf (line 15357) | function lastIndexOf(array, value, fromIndex) {
function nth (line 15393) | function nth(array, n) {
function pullAll (line 15442) | function pullAll(array, values) {
function pullAllBy (line 15471) | function pullAllBy(array, values, iteratee) {
function pullAllWith (line 15500) | function pullAllWith(array, values, comparator) {
function remove (line 15569) | function remove(array, predicate) {
function reverse (line 15613) | function reverse(array) {
function slice (line 15633) | function slice(array, start, end) {
function sortedIndex (line 15666) | function sortedIndex(array, value) {
function sortedIndexBy (line 15695) | function sortedIndexBy(array, value, iteratee) {
function sortedIndexOf (line 15715) | function sortedIndexOf(array, value) {
function sortedLastIndex (line 15744) | function sortedLastIndex(array, value) {
function sortedLastIndexBy (line 15773) | function sortedLastIndexBy(array, value, iteratee) {
function sortedLastIndexOf (line 15793) | function sortedLastIndexOf(array, value) {
function sortedUniq (line 15819) | function sortedUniq(array) {
function sortedUniqBy (line 15841) | function sortedUniqBy(array, iteratee) {
function tail (line 15861) | function tail(array) {
function take (line 15891) | function take(array, n, guard) {
function takeRight (line 15924) | function takeRight(array, n, guard) {
function takeRightWhile (line 15969) | function takeRightWhile(array, predicate) {
function takeWhile (line 16010) | function takeWhile(array, predicate) {
function uniq (line 16112) | function uniq(array) {
function uniqBy (line 16139) | function uniqBy(array, iteratee) {
function uniqWith (line 16163) | function uniqWith(array, comparator) {
function unzip (line 16187) | function unzip(array) {
function unzipWith (line 16224) | function unzipWith(array, iteratee) {
function zipObject (line 16377) | function zipObject(props, values) {
function zipObjectDeep (line 16396) | function zipObjectDeep(props, values) {
function chain (line 16459) | function chain(value) {
function tap (line 16488) | function tap(value, interceptor) {
function thru (line 16516) | function thru(value, interceptor) {
function wrapperChain (line 16587) | function wrapperChain() {
function wrapperCommit (line 16617) | function wrapperCommit() {
function wrapperNext (line 16643) | function wrapperNext() {
function wrapperToIterator (line 16671) | function wrapperToIterator() {
function wrapperPlant (line 16699) | function wrapperPlant(value) {
function wrapperReverse (line 16739) | function wrapperReverse() {
function wrapperValue (line 16771) | function wrapperValue() {
function every (line 16848) | function every(collection, predicate, guard) {
function filter (line 16893) | function filter(collection, predicate) {
function flatMap (line 16978) | function flatMap(collection, iteratee) {
function flatMapDeep (line 17002) | function flatMapDeep(collection, iteratee) {
function flatMapDepth (line 17027) | function flatMapDepth(collection, iteratee, depth) {
function forEach (line 17062) | function forEach(collection, iteratee) {
function forEachRight (line 17087) | function forEachRight(collection, iteratee) {
function includes (line 17153) | function includes(collection, value, fromIndex, guard) {
function map (line 17274) | function map(collection, iteratee) {
function orderBy (line 17308) | function orderBy(collection, iteratees, orders, guard) {
function reduce (line 17399) | function reduce(collection, iteratee, accumulator) {
function reduceRight (line 17428) | function reduceRight(collection, iteratee, accumulator) {
function reject (line 17469) | function reject(collection, predicate) {
function sample (line 17488) | function sample(collection) {
function sampleSize (line 17513) | function sampleSize(collection, n, guard) {
function shuffle (line 17538) | function shuffle(collection) {
function size (line 17564) | function size(collection) {
function some (line 17614) | function some(collection, predicate, guard) {
function after (line 17712) | function after(n, func) {
function ary (line 17741) | function ary(func, n, guard) {
function before (line 17764) | function before(n, func) {
function curry (line 17920) | function curry(func, arity, guard) {
function curryRight (line 17965) | function curryRight(func, arity, guard) {
function debounce (line 18026) | function debounce(func, wait, options) {
function flip (line 18213) | function flip(func) {
function memoize (line 18261) | function memoize(func, resolver) {
function negate (line 18304) | function negate(predicate) {
function once (line 18338) | function once(func) {
function rest (line 18516) | function rest(func, start) {
function spread (line 18558) | function spread(func, start) {
function throttle (line 18618) | function throttle(func, wait, options) {
function unary (line 18651) | function unary(func) {
function wrap (line 18677) | function wrap(value, wrapper) {
function castArray (line 18716) | function castArray() {
function clone (line 18750) | function clone(value) {
function cloneWith (line 18785) | function cloneWith(value, customizer) {
function cloneDeep (line 18808) | function cloneDeep(value) {
function cloneDeepWith (line 18840) | function cloneDeepWith(value, customizer) {
function conformsTo (line 18869) | function conformsTo(object, source) {
function eq (line 18905) | function eq(value, other) {
function isArrayLike (line 19053) | function isArrayLike(value) {
function isArrayLikeObject (line 19082) | function isArrayLikeObject(value) {
function isBoolean (line 19103) | function isBoolean(value) {
function isElement (line 19163) | function isElement(value) {
function isEmpty (line 19200) | function isEmpty(value) {
function isEqual (line 19252) | function isEqual(value, other) {
function isEqualWith (line 19288) | function isEqualWith(value, other, customizer) {
function isError (line 19312) | function isError(value) {
function isFinite (line 19347) | function isFinite(value) {
function isFunction (line 19368) | function isFunction(value) {
function isInteger (line 19404) | function isInteger(value) {
function isLength (line 19434) | function isLength(value) {
function isObject (line 19464) | function isObject(value) {
function isObjectLike (line 19493) | function isObjectLike(value) {
function isMatch (line 19544) | function isMatch(object, source) {
function isMatchWith (line 19580) | function isMatchWith(object, source, customizer) {
function isNaN (line 19613) | function isNaN(value) {
function isNative (line 19646) | function isNative(value) {
function isNull (line 19670) | function isNull(value) {
function isNil (line 19694) | function isNil(value) {
function isNumber (line 19724) | function isNumber(value) {
function isPlainObject (line 19757) | function isPlainObject(value) {
function isSafeInteger (line 19816) | function isSafeInteger(value) {
function isString (line 19856) | function isString(value) {
function isSymbol (line 19878) | function isSymbol(value) {
function isUndefined (line 19919) | function isUndefined(value) {
function isWeakMap (line 19940) | function isWeakMap(value) {
function isWeakSet (line 19961) | function isWeakSet(value) {
function toArray (line 20040) | function toArray(value) {
function toFinite (line 20079) | function toFinite(value) {
function toInteger (line 20117) | function toInteger(value) {
function toLength (line 20151) | function toLength(value) {
function toNumber (line 20178) | function toNumber(value) {
function toPlainObject (line 20223) | function toPlainObject(value) {
function toSafeInteger (line 20251) | function toSafeInteger(value) {
function toString (line 20278) | function toString(value) {
function create (line 20481) | function create(prototype, properties) {
function findKey (line 20597) | function findKey(object, predicate) {
function findLastKey (line 20636) | function findLastKey(object, predicate) {
function forIn (line 20668) | function forIn(object, iteratee) {
function forInRight (line 20700) | function forInRight(object, iteratee) {
function forOwn (line 20734) | function forOwn(object, iteratee) {
function forOwnRight (line 20764) | function forOwnRight(object, iteratee) {
function functions (line 20791) | function functions(object) {
function functionsIn (line 20818) | function functionsIn(object) {
function get (line 20847) | function get(object, path, defaultValue) {
function has (line 20879) | function has(object, path) {
function hasIn (line 20909) | function hasIn(object, path) {
function keys (line 21027) | function keys(object) {
function keysIn (line 21054) | function keysIn(object) {
function mapKeys (line 21079) | function mapKeys(object, iteratee) {
function mapValues (line 21117) | function mapValues(object, iteratee) {
function omitBy (line 21259) | function omitBy(object, predicate) {
function pickBy (line 21302) | function pickBy(object, predicate) {
function result (line 21344) | function result(object, path, defaultValue) {
function set (line 21394) | function set(object, path, value) {
function setWith (line 21422) | function setWith(object, path, value, customizer) {
function transform (line 21509) | function transform(object, iteratee, accumulator) {
function unset (line 21559) | function unset(object, path) {
function update (line 21590) | function update(object, path, updater) {
function updateWith (line 21618) | function updateWith(object, path, updater, customizer) {
function values (line 21649) | function values(object) {
function valuesIn (line 21677) | function valuesIn(object) {
function clamp (line 21702) | function clamp(number, lower, upper) {
function inRange (line 21756) | function inRange(number, start, end) {
function random (line 21799) | function random(lower, upper, floating) {
function capitalize (line 21880) | function capitalize(string) {
function deburr (line 21902) | function deburr(string) {
function endsWith (line 21930) | function endsWith(string, target, position) {
function escape (line 21972) | function escape(string) {
function escapeRegExp (line 21994) | function escapeRegExp(string) {
function pad (line 22092) | function pad(string, length, chars) {
function padEnd (line 22131) | function padEnd(string, length, chars) {
function padStart (line 22164) | function padStart(string, length, chars) {
function parseInt (line 22198) | function parseInt(string, radix, guard) {
function repeat (line 22229) | function repeat(string, n, guard) {
function replace (line 22257) | function replace() {
function split (line 22308) | function split(string, separator, limit) {
function startsWith (line 22377) | function startsWith(string, target, position) {
function template (line 22491) | function template(string, options, guard) {
function toLower (line 22620) | function toLower(value) {
function toUpper (line 22645) | function toUpper(value) {
function trim (line 22671) | function trim(string, chars, guard) {
function trimEnd (line 22706) | function trimEnd(string, chars, guard) {
function trimStart (line 22739) | function trimStart(string, chars, guard) {
function truncate (line 22790) | function truncate(string, options) {
function unescape (line 22865) | function unescape(string) {
function words (line 22934) | function words(string, pattern, guard) {
function cond (line 23039) | function cond(pairs) {
function conforms (line 23085) | function conforms(source) {
function constant (line 23108) | function constant(value) {
function defaultTo (line 23134) | function defaultTo(value, defaultValue) {
function identity (line 23201) | function identity(value) {
function iteratee (line 23247) | function iteratee(func) {
function matches (line 23279) | function matches(source) {
function matchesProperty (line 23309) | function matchesProperty(path, srcValue) {
function mixin (line 23408) | function mixin(object, source, options) {
function noConflict (line 23457) | function noConflict() {
function noop (line 23476) | function noop() {
function nthArg (line 23500) | function nthArg(n) {
function property (line 23601) | function property(path) {
function propertyOf (line 23626) | function propertyOf(object) {
function stubArray (line 23731) | function stubArray() {
function stubFalse (line 23748) | function stubFalse() {
function stubObject (line 23770) | function stubObject() {
function stubString (line 23787) | function stubString() {
function stubTrue (line 23804) | function stubTrue() {
function times (line 23827) | function times(n, iteratee) {
function toPath (line 23862) | function toPath(value) {
function uniqueId (line 23886) | function uniqueId(prefix) {
function max (line 23995) | function max(array) {
function maxBy (line 24024) | function maxBy(array, iteratee) {
function mean (line 24044) | function mean(array) {
function meanBy (line 24071) | function meanBy(array, iteratee) {
function min (line 24093) | function min(array) {
function minBy (line 24122) | function minBy(array, iteratee) {
function sum (line 24203) | function sum(array) {
function sumBy (line 24232) | function sumBy(array, iteratee) {
function empty (line 24844) | function empty(scheduler) {
function emptyScheduled (line 24847) | function emptyScheduled(scheduler) {
function isNothing (line 24901) | function isNothing(subject) {
function isObject (line 24906) | function isObject(subject) {
function toArray (line 24911) | function toArray(sequence) {
function extend (line 24919) | function extend(target, source) {
function repeat (line 24935) | function repeat(string, count) {
function isNegativeZero (line 24946) | function isNegativeZero(number) {
function compileList (line 24973) | function compileList(schema, name, result) {
function compileMap (line 24996) | function compileMap(/* lists... */) {
function Schema (line 25015) | function Schema(definition) {
function copyProps (line 25083) | function copyProps (src, dst) {
function SafeBuffer (line 25096) | function SafeBuffer (arg, encodingOrOffset, length) {
function map (line 25160) | function map(project, thisArg) {
function MapOperator (line 25169) | function MapOperator(project, thisArg) {
function MapSubscriber (line 25181) | function MapSubscriber(destination, project, thisArg) {
function isScheduler (line 25222) | function isScheduler(value) {
function wait (line 25241) | function wait(delay) {
function promisify (line 25247) | function promisify(fn, firstData) {
function queue (line 25274) | function queue(arr, promiseProducer, concurrency = Infinity) {
function YAMLException (line 25346) | function YAMLException(reason, mark) {
function tryCatcher (line 25432) | function tryCatcher() {
function tryCatch (line 25441) | function tryCatch(fn) {
function _load_yarnRegistry (line 25462) | function _load_yarnRegistry() {
function _load_npmRegistry (line 25468) | function _load_npmRegistry() {
function _interopRequireDefault (line 25472) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function _load_constants (line 25499) | function _load_constants() {
function _load_blockingQueue (line 25505) | function _load_blockingQueue() {
function _load_errors (line 25511) | function _load_errors() {
function _load_promise (line 25517) | function _load_promise() {
function _interopRequireDefault (line 25521) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function _interopRequireWildcard (line 25523) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function forkp (line 25536) | function forkp(program, args, opts) {
function spawnp (line 25550) | function spawnp(program, args, opts) {
function forwardSignalToSpawnedProcesses (line 25566) | function forwardSignalToSpawnedProcesses(signal) {
function spawn (line 25585) | function spawn(program, args, opts = {}, onData) {
function _load_asyncToGenerator (line 25670) | function _load_asyncToGenerator() {
function setFlags (line 25715) | function setFlags(commander) {
function hasWrapper (line 25719) | function hasWrapper(commander, args) {
function _load_errors (line 25732) | function _load_errors() {
function _load_misc (line 25738) | function _load_misc() {
function _interopRequireDefault (line 25742) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function from (line 25852) | function from(input, scheduler) {
class Hash (line 26224) | class Hash {
method isHash (line 26225) | get isHash () { return true }
method constructor (line 26226) | constructor (hash, opts) {
method hexDigest (line 26244) | hexDigest () {
method toJSON (line 26247) | toJSON () {
method toString (line 26250) | toString (opts) {
class Integrity (line 26278) | class Integrity {
method isIntegrity (line 26279) | get isIntegrity () { return true }
method toJSON (line 26280) | toJSON () {
method toString (line 26283) | toString (opts) {
method concat (line 26296) | concat (integrity, opts) {
method hexDigest (line 26302) | hexDigest () {
method match (line 26305) | match (integrity, opts) {
method pickAlgorithm (line 26318) | pickAlgorithm (opts) {
function parse (line 26333) | function parse (sri, opts) {
function _parse (line 26346) | function _parse (integrity, opts) {
function stringify (line 26364) | function stringify (obj, opts) {
function fromHex (line 26375) | function fromHex (hexDigest, algorithm, opts) {
function fromData (line 26387) | function fromData (data, opts) {
function fromStream (line 26409) | function fromStream (stream, opts) {
function checkData (line 26425) | function checkData (data, sri, opts) {
function checkStream (line 26464) | function checkStream (stream, sri, opts) {
function integrityStream (line 26482) | function integrityStream (opts) {
function createIntegrity (line 26538) | function createIntegrity (opts) {
function getPrioritizedHash (line 26584) | function getPrioritizedHash (algo1, algo2) {
function _load_rootUser (line 26631) | function _load_rootUser() {
function _interopRequireDefault (line 26635) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function FingerprintFormatError (line 26765) | function FingerprintFormatError(fp, format) {
function InvalidAlgorithmError (line 26779) | function InvalidAlgorithmError(alg) {
function KeyParseError (line 26788) | function KeyParseError(name, format, innerErr) {
function SignatureParseError (line 26800) | function SignatureParseError(type, format, innerErr) {
function CertificateParseError (line 26812) | function CertificateParseError(name, format, innerErr) {
function KeyEncryptedError (line 26824) | function KeyEncryptedError(name, format) {
function Signature (line 26866) | function Signature(opts) {
function parseOneNum (line 27031) | function parseOneNum(data, type, format, opts) {
function parseDSAasn1 (line 27074) | function parseDSAasn1(data, type, format, opts) {
function parseDSA (line 27086) | function parseDSA(data, type, format, opts) {
function parseECDSA (line 27101) | function parseECDSA(data, type, format, opts) {
function ts64 (line 27200) | function ts64(x, i, h, l) {
function vn (line 27211) | function vn(x, xi, y, yi, n) {
function crypto_verify_16 (line 27217) | function crypto_verify_16(x, xi, y, yi) {
function crypto_verify_32 (line 27221) | function crypto_verify_32(x, xi, y, yi) {
function core_salsa20 (line 27225) | function core_salsa20(o, p, k, c) {
function core_hsalsa20 (line 27418) | function core_hsalsa20(o,p,k,c) {
function crypto_core_salsa20 (line 27555) | function crypto_core_salsa20(out,inp,k,c) {
function crypto_core_hsalsa20 (line 27559) | function crypto_core_hsalsa20(out,inp,k,c) {
function crypto_stream_salsa20_xor (line 27566) | function crypto_stream_salsa20_xor(c,cpos,m,mpos,b,n,k) {
function crypto_stream_salsa20 (line 27591) | function crypto_stream_salsa20(c,cpos,b,n,k) {
function crypto_stream (line 27615) | function crypto_stream(c,cpos,d,n,k) {
function crypto_stream_xor (line 27623) | function crypto_stream_xor(c,cpos,m,mpos,d,n,k) {
function crypto_onetimeauth (line 27988) | function crypto_onetimeauth(out, outpos, m, mpos, n, k) {
function crypto_onetimeauth_verify (line 27995) | function crypto_onetimeauth_verify(h, hpos, m, mpos, n, k) {
function crypto_secretbox (line 28001) | function crypto_secretbox(c,m,d,n,k) {
function crypto_secretbox_open (line 28010) | function crypto_secretbox_open(m,c,d,n,k) {
function set25519 (line 28021) | function set25519(r, a) {
function car25519 (line 28026) | function car25519(o) {
function sel25519 (line 28036) | function sel25519(p, q, b) {
function pack25519 (line 28045) | function pack25519(o, n) {
function neq25519 (line 28069) | function neq25519(a, b) {
function par25519 (line 28076) | function par25519(a) {
function unpack25519 (line 28082) | function unpack25519(o, n) {
function A (line 28088) | function A(o, a, b) {
function Z (line 28092) | function Z(o, a, b) {
function M (line 28096) | function M(o, a, b) {
function S (line 28467) | function S(o, a) {
function inv25519 (line 28471) | function inv25519(o, i) {
function pow2523 (line 28482) | function pow2523(o, i) {
function crypto_scalarmult (line 28493) | function crypto_scalarmult(q, n, p) {
function crypto_scalarmult_base (line 28546) | function crypto_scalarmult_base(q, n) {
function crypto_box_keypair (line 28550) | function crypto_box_keypair(y, x) {
function crypto_box_beforenm (line 28555) | function crypto_box_beforenm(k, y, x) {
function crypto_box (line 28564) | function crypto_box(c, m, d, n, y, x) {
function crypto_box_open (line 28570) | function crypto_box_open(m, c, d, n, y, x) {
function crypto_hashblocks_hl (line 28619) | function crypto_hashblocks_hl(hh, hl, m, n) {
function crypto_hash (line 28980) | function crypto_hash(out, m, n) {
function add (line 29020) | function add(p, q) {
function cswap (line 29046) | function cswap(p, q, b) {
function pack (line 29053) | function pack(r, p) {
function scalarmult (line 29062) | function scalarmult(p, q, s) {
function scalarbase (line 29077) | function scalarbase(p, s) {
function crypto_sign_keypair (line 29086) | function crypto_sign_keypair(pk, sk, seeded) {
function modL (line 29106) | function modL(r, x) {
function reduce (line 29131) | function reduce(r) {
function crypto_sign (line 29139) | function crypto_sign(sm, m, n, sk) {
function unpackneg (line 29174) | function unpackneg(r, p) {
function crypto_sign_open (line 29212) | function crypto_sign_open(m, sm, n, pk) {
function checkLengths (line 29307) | function checkLengths(k, n) {
function checkBoxLengths (line 29312) | function checkBoxLengths(pk, sk) {
function checkArrayTypes (line 29317) | function checkArrayTypes() {
function cleanup (line 29325) | function cleanup(arr) {
function _load_baseResolver (line 29582) | function _load_baseResolver() {
function _load_npmResolver (line 29588) | function _load_npmResolver() {
function _load_yarnResolver (line 29594) | function _load_yarnResolver() {
function _load_gitResolver (line 29600) | function _load_gitResolver() {
function _load_tarballResolver (line 29606) | function _load_tarballResolver() {
function _load_githubResolver (line 29612) | function _load_githubResolver() {
function _load_fileResolver (line 29618) | function _load_fileResolver() {
function _load_linkResolver (line 29624) | function _load_linkResolver() {
function _load_gitlabResolver (line 29630) | function _load_gitlabResolver() {
function _load_gistResolver (line 29636) | function _load_gistResolver() {
function _load_bitbucketResolver (line 29642) | function _load_bitbucketResolver() {
function _load_hostedGitResolver (line 29648) | function _load_hostedGitResolver() {
function _load_registryResolver (line 29654) | function _load_registryResolver() {
function _interopRequireDefault (line 29658) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function getExoticResolver (line 29669) | function getExoticResolver(pattern) {
function hostedGitFragmentToGitUrl (line 29699) | function hostedGitFragmentToGitUrl(fragment, reporter) {
class Prompt (line 29738) | class Prompt {
method constructor (line 29739) | constructor(question, rl, answers) {
method run (line 29779) | run() {
method _run (line 29786) | _run(cb) {
method throwParamError (line 29796) | throwParamError(name) {
method close (line 29803) | close() {
method handleSubmitEvents (line 29812) | handleSubmitEvents(submit) {
method getQuestion (line 29850) | getQuestion() {
function normalizeKeypressEvents (line 29884) | function normalizeKeypressEvents(value, key) {
function BigInteger (line 29955) | function BigInteger(a,b,c) {
function nbi (line 29963) | function nbi() { return new BigInteger(null); }
function am1 (line 29973) | function am1(i,x,w,j,c,n) {
function am2 (line 29984) | function am2(i,x,w,j,c,n) {
function am3 (line 29998) | function am3(i,x,w,j,c,n) {
function int2char (line 30044) | function int2char(n) { return BI_RM.charAt(n); }
function intAt (line 30045) | function intAt(s,i) {
function bnpCopyTo (line 30051) | function bnpCopyTo(r) {
function bnpFromInt (line 30058) | function bnpFromInt(x) {
function nbv (line 30067) | function nbv(i) { var r = nbi(); r.fromInt(i); return r; }
function bnpFromString (line 30070) | function bnpFromString(s,b) {
function bnpClamp (line 30109) | function bnpClamp() {
function bnToString (line 30115) | function bnToString(b) {
function bnNegate (line 30145) | function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); retu...
function bnAbs (line 30148) | function bnAbs() { return (this.s<0)?this.negate():this; }
function bnCompareTo (line 30151) | function bnCompareTo(a) {
function nbits (line 30162) | function nbits(x) {
function bnBitLength (line 30173) | function bnBitLength() {
function bnpDLShiftTo (line 30179) | function bnpDLShiftTo(n,r) {
function bnpDRShiftTo (line 30188) | function bnpDRShiftTo(n,r) {
function bnpLShiftTo (line 30195) | function bnpLShiftTo(n,r) {
function bnpRShiftTo (line 30212) | function bnpRShiftTo(n,r) {
function bnpSubTo (line 30230) | function bnpSubTo(a,r) {
function bnpMultiplyTo (line 30264) | function bnpMultiplyTo(a,r) {
function bnpSquareTo (line 30276) | function bnpSquareTo(r) {
function bnpDivRemTo (line 30294) | function bnpDivRemTo(m,q,r) {
function bnMod (line 30342) | function bnMod(a) {
function Classic (line 30350) | function Classic(m) { this.m = m; }
function cConvert (line 30351) | function cConvert(x) {
function cRevert (line 30355) | function cRevert(x) { return x; }
function cReduce (line 30356) | function cReduce(x) { x.divRemTo(this.m,null,x); }
function cMulTo (line 30357) | function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
function cSqrTo (line 30358) | function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
function bnpInvDigit (line 30376) | function bnpInvDigit() {
function Montgomery (line 30392) | function Montgomery(m) {
function montConvert (line 30402) | function montConvert(x) {
function montRevert (line 30411) | function montRevert(x) {
function montReduce (line 30419) | function montReduce(x) {
function montSqrTo (line 30438) | function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
function montMulTo (line 30441) | function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
function bnpIsEven (line 30450) | function bnpIsEven() { return ((this.t>0)?(this[0]&1):this.s) == 0; }
function bnpExp (line 30453) | function bnpExp(e,z) {
function bnModPowInt (line 30466) | function bnModPowInt(e,m) {
function bnClone (line 30512) | function bnClone() { var r = nbi(); this.copyTo(r); return r; }
function bnIntValue (line 30515) | function bnIntValue() {
function bnByteValue (line 30527) | function bnByteValue() { return (this.t==0)?this.s:(this[0]<<24)>>24; }
function bnShortValue (line 30530) | function bnShortValue() { return (this.t==0)?this.s:(this[0]<<16)>>16; }
function bnpChunkSize (line 30533) | function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r...
function bnSigNum (line 30536) | function bnSigNum() {
function bnpToRadix (line 30543) | function bnpToRadix(b) {
function bnpFromRadix (line 30558) | function bnpFromRadix(s,b) {
function bnpFromNumber (line 30585) | function bnpFromNumber(a,b,c) {
function bnToByteArray (line 30611) | function bnToByteArray() {
function bnEquals (line 30635) | function bnEquals(a) { return(this.compareTo(a)==0); }
function bnMin (line 30636) | function bnMin(a) { return(this.compareTo(a)<0)?this:a; }
function bnMax (line 30637) | function bnMax(a) { return(this.compareTo(a)>0)?this:a; }
function bnpBitwiseTo (line 30640) | function bnpBitwiseTo(a,op,r) {
function op_and (line 30658) | function op_and(x,y) { return x&y; }
function bnAnd (line 30659) | function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; }
function op_or (line 30662) | function op_or(x,y) { return x|y; }
function bnOr (line 30663) | function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; }
function op_xor (line 30666) | function op_xor(x,y) { return x^y; }
function bnXor (line 30667) | function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; }
function op_andnot (line 30670) | function op_andnot(x,y) { return x&~y; }
function bnAndNot (line 30671) | function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); ret...
function bnNot (line 30674) | function bnNot() {
function bnShiftLeft (line 30683) | function bnShiftLeft(n) {
function bnShiftRight (line 30690) | function bnShiftRight(n) {
function lbit (line 30697) | function lbit(x) {
function bnGetLowestSetBit (line 30709) | function bnGetLowestSetBit() {
function cbit (line 30717) | function cbit(x) {
function bnBitCount (line 30724) | function bnBitCount() {
function bnTestBit (line 30731) | function bnTestBit(n) {
function bnpChangeBit (line 30738) | function bnpChangeBit(n,op) {
function bnSetBit (line 30745) | function bnSetBit(n) { return this.changeBit(n,op_or); }
function bnClearBit (line 30748) | function bnClearBit(n) { return this.changeBit(n,op_andnot); }
function bnFlipBit (line 30751) | function bnFlipBit(n) { return this.changeBit(n,op_xor); }
function bnpAddTo (line 30754) | function bnpAddTo(a,r) {
function bnAdd (line 30787) | function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; }
function bnSubtract (line 30790) | function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; }
function bnMultiply (line 30793) | function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; }
function bnSquare (line 30796) | function bnSquare() { var r = nbi(); this.squareTo(r); return r; }
function bnDivide (line 30799) | function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; }
function bnRemainder (line 30802) | function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return...
function bnDivideAndRemainder (line 30805) | function bnDivideAndRemainder(a) {
function bnpDMultiply (line 30812) | function bnpDMultiply(n) {
function bnpDAddOffset (line 30819) | function bnpDAddOffset(n,w) {
function NullExp (line 30831) | function NullExp() {}
function nNop (line 30832) | function nNop(x) { return x; }
function nMulTo (line 30833) | function nMulTo(x,y,r) { x.multiplyTo(y,r); }
function nSqrTo (line 30834) | function nSqrTo(x,r) { x.squareTo(r); }
function bnPow (line 30842) | function bnPow(e) { return this.exp(e,new NullExp()); }
function bnpMultiplyLowerTo (line 30846) | function bnpMultiplyLowerTo(a,n,r) {
function bnpMultiplyUpperTo (line 30859) | function bnpMultiplyUpperTo(a,n,r) {
function Barrett (line 30871) | function Barrett(m) {
function barrettConvert (line 30880) | function barrettConvert(x) {
function barrettRevert (line 30886) | function barrettRevert(x) { return x; }
function barrettReduce (line 30889) | function barrettReduce(x) {
function barrettSqrTo (line 30900) | function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
function barrettMulTo (line 30903) | function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
function bnModPow (line 30912) | function bnModPow(e,m) {
function bnGCD (line 30971) | function bnGCD(a) {
function bnpModInt (line 30999) | function bnpModInt(n) {
function bnModInverse (line 31009) | function bnModInverse(m) {
function bnIsProbablePrime (line 31054) | function bnIsProbablePrime(t) {
function bnpMillerRabin (line 31073) | function bnpMillerRabin(t) {
function rng_seed_int (line 31173) | function rng_seed_int(x) {
function rng_seed_time (line 31182) | function rng_seed_time() {
function rng_get_byte (line 31217) | function rng_get_byte() {
function rng_get_bytes (line 31231) | function rng_get_bytes(ba) {
function SecureRandom (line 31236) | function SecureRandom() {}
function Arcfour (line 31242) | function Arcfour() {
function ARC4init (line 31249) | function ARC4init(key) {
function ARC4next (line 31264) | function ARC4next() {
function prng_newstate (line 31278) | function prng_newstate() {
function charSet (line 31341) | function charSet (s) {
function filter (line 31352) | function filter (pattern, options) {
function ext (line 31359) | function ext (a, b) {
function minimatch (line 31393) | function minimatch (p, pattern, options) {
function Minimatch (line 31411) | function Minimatch (pattern, options) {
function make (line 31443) | function make () {
function parseNegate (line 31499) | function parseNegate () {
function braceExpand (line 31534) | function braceExpand (pattern, options) {
function parse (line 31572) | function parse (pattern, isSub) {
function makeRe (line 31943) | function makeRe () {
function match (line 32001) | function match (f, partial) {
function globUnescape (line 32218) | function globUnescape (s) {
function regExpEscape (line 32222) | function regExpEscape (s) {
function once (line 32251) | function once (fn) {
function onceStrict (line 32261) | function onceStrict (fn) {
function InnerSubscriber (line 32288) | function InnerSubscriber(parent, outerValue, outerIndex) {
function fromArray (line 32326) | function fromArray(input, scheduler) {
function read (line 32382) | function read(buf, options, forceType) {
function write (line 32490) | function write(key, options, type) {
function _load_extends (line 32569) | function _load_extends() {
function _load_asyncToGenerator (line 32575) | function _load_asyncToGenerator() {
function _load_constants (line 32581) | function _load_constants() {
function _load_fs (line 32587) | function _load_fs() {
function _load_npmResolver (line 32593) | function _load_npmResolver() {
function _load_envReplace (line 32599) | function _load_envReplace() {
function _load_baseRegistry (line 32605) | function _load_baseRegistry() {
function _load_misc (line 32611) | function _load_misc() {
function _load_path (line 32617) | function _load_path() {
function _load_normalizeUrl (line 32623) | function _load_normalizeUrl() {
function _load_userHomeDir (line 32629) | function _load_userHomeDir() {
function _load_userHomeDir2 (line 32635) | function _load_userHomeDir2() {
function _load_errors (line 32641) | function _load_errors() {
function _load_login (line 32647) | function _load_login() {
function _load_path2 (line 32653) | function _load_path2() {
function _load_url (line 32659) | function _load_url() {
function _load_ini (line 32665) | function _load_ini() {
function _interopRequireWildcard (line 32669) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 32671) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function getGlobalPrefix (line 32690) | function getGlobalPrefix() {
function isPathConfigOption (line 32711) | function isPathConfigOption(key) {
function normalizePath (line 32715) | function normalizePath(val) {
function urlParts (line 32727) | function urlParts(requestUrl) {
class NpmRegistry (line 32735) | class NpmRegistry extends (_baseRegistry || _load_baseRegistry()).default {
method constructor (line 32736) | constructor(cwd, registries, requestManager, reporter, enableDefaultRc...
method escapeName (line 32741) | static escapeName(name) {
method isScopedPackage (line 32746) | isScopedPackage(packageIdent) {
method getRequestUrl (line 32750) | getRequestUrl(registry, pathname) {
method isRequestToRegistry (line 32764) | isRequestToRegistry(requestUrl, registryUrl) {
method request (line 32778) | request(pathname, opts = {}, packageName) {
method requestNeedsAuth (line 32841) | requestNeedsAuth(requestUrl) {
method checkOutdated (line 32856) | checkOutdated(config, name, range) {
method getPossibleConfigLocations (line 32895) | getPossibleConfigLocations(filename, reporter) {
method getConfigEnv (line 32965) | static getConfigEnv(env = process.env) {
method normalizeConfig (line 32973) | static normalizeConfig(config) {
method loadConfig (line 32987) | loadConfig() {
method getScope (line 33025) | getScope(packageIdent) {
method getRegistry (line 33030) | getRegistry(packageIdent) {
method getAuthByRegistry (line 33052) | getAuthByRegistry(registry) {
method getAuth (line 33076) | getAuth(packageIdent) {
method getScopedOption (line 33113) | getScopedOption(scope, option) {
method getRegistryOption (line 33117) | getRegistryOption(registry, option) {
method getRegistryOrGlobalOption (line 33130) | getRegistryOrGlobalOption(registry, option) {
function _load_baseResolver (line 33150) | function _load_baseResolver() {
function _interopRequireDefault (line 33154) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class ExoticResolver (line 33156) | class ExoticResolver extends (_baseResolver || _load_baseResolver()).def...
method isVersion (line 33158) | static isVersion(pattern) {
function _load_normalizePattern (line 33182) | function _load_normalizePattern() {
class WorkspaceLayout (line 33188) | class WorkspaceLayout {
method constructor (line 33189) | constructor(workspaces, config) {
method getWorkspaceManifest (line 33194) | getWorkspaceManifest(key) {
method getManifestByPattern (line 33198) | getManifestByPattern(pattern) {
function PromiseCapability (line 33253) | function PromiseCapability(C) {
function glob (line 33385) | function glob (pattern, options, cb) {
function extend (line 33404) | function extend (origin, add) {
function Glob (line 33440) | function Glob (pattern, options, cb) {
function next (line 33534) | function next () {
function lstatcb_ (line 33828) | function lstatcb_ (er, lstat) {
function readdirCb (line 33870) | function readdirCb (self, abs, cb) {
function lstatcb_ (line 34073) | function lstatcb_ (er, lstat) {
function posix (line 34144) | function posix(path) {
function win32 (line 34148) | function win32(path) {
function algToKeyType (line 34216) | function algToKeyType(alg) {
function keyTypeToAlg (line 34232) | function keyTypeToAlg(key) {
function read (line 34248) | function read(partial, type, buf, options) {
function write (line 34329) | function write(key, options) {
function _load_util (line 34385) | function _load_util() {
function _load_invariant (line 34391) | function _load_invariant() {
function _load_stripBom (line 34397) | function _load_stripBom() {
function _load_constants (line 34403) | function _load_constants() {
function _load_errors (line 34409) | function _load_errors() {
function _load_map (line 34415) | function _load_map() {
function _interopRequireDefault (line 34419) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function isValidPropValueToken (line 34447) | function isValidPropValueToken(token) {
function buildToken (line 34456) | function buildToken(type, value) {
class Parser (line 34568) | class Parser {
method constructor (line 34569) | constructor(input, fileLoc = 'lockfile') {
method onComment (line 34575) | onComment(token) {
method next (line 34592) | next() {
method unexpected (line 34609) | unexpected(msg = 'Unexpected token') {
method expect (line 34613) | expect(tokType) {
method eat (line 34621) | eat(tokType) {
method parse (line 34630) | parse(indent = 0) {
function extractConflictVariants (line 34755) | function extractConflictVariants(str) {
function hasMergeConflicts (line 34798) | function hasMergeConflicts(str) {
function parse (line 34805) | function parse(str, fileLoc) {
function parseWithConflict (line 34836) | function parseWithConflict(str, fileLoc) {
function copy (line 34884) | function copy(o, to) {
function checkDataType (line 34891) | function checkDataType(dataType, data, negate) {
function checkDataTypes (line 34910) | function checkDataTypes(dataTypes, data) {
function coerceToTypes (line 34933) | function coerceToTypes(optionCoerceTypes, dataTypes) {
function toHash (line 34950) | function toHash(arr) {
function getProperty (line 34959) | function getProperty(key) {
function escapeQuotes (line 34968) | function escapeQuotes(str) {
function varOccurences (line 34977) | function varOccurences(str, dataVar) {
function varReplace (line 34984) | function varReplace(str, dataVar, expr) {
function cleanUpCode (line 34994) | function cleanUpCode(out) {
function finalCleanUpCode (line 35011) | function finalCleanUpCode(out, async) {
function schemaHasRules (line 35027) | function schemaHasRules(schema, rules) {
function schemaHasRulesExcept (line 35033) | function schemaHasRulesExcept(schema, rules, exceptKeyword) {
function toQuotedString (line 35039) | function toQuotedString(str) {
function getPathExpr (line 35044) | function getPathExpr(currentPath, expr, jsonPointers, isNumber) {
function getPath (line 35052) | function getPath(currentPath, prop, jsonPointers) {
function getData (line 35062) | function getData($data, lvl, paths) {
function joinPaths (line 35097) | function joinPaths (a, b) {
function unescapeFragment (line 35103) | function unescapeFragment(str) {
function escapeFragment (line 35108) | function escapeFragment(str) {
function escapeJsonPointer (line 35113) | function escapeJsonPointer(str) {
function unescapeJsonPointer (line 35118) | function unescapeJsonPointer(str) {
function _load_asyncToGenerator (line 35137) | function _load_asyncToGenerator() {
function revoke (line 35258) | function revoke() {
function _load_errors (line 35290) | function _load_errors() {
function _interopRequireDefault (line 35294) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function getOneTimePassword (line 35296) | function getOneTimePassword(reporter) {
function hasWrapper (line 35300) | function hasWrapper(commander, args) {
function setFlags (line 35304) | function setFlags(commander) {
function _load_asyncToGenerator (line 35321) | function _load_asyncToGenerator() {
function _load_format (line 35329) | function _load_format() {
function _load_index (line 35335) | function _load_index() {
function _load_isCi (line 35341) | function _load_isCi() {
function _load_os (line 35347) | function _load_os() {
function _interopRequireWildcard (line 35351) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 35353) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function stringifyLangArgs (line 35360) | function stringifyLangArgs(args) {
class BaseReporter (line 35382) | class BaseReporter {
method constructor (line 35383) | constructor(opts = {}) {
method lang (line 35403) | lang(key, ...args) {
method rawText (line 35423) | rawText(str) {
method verbose (line 35431) | verbose(msg) {
method verboseInspect (line 35437) | verboseInspect(val) {
method _verbose (line 35443) | _verbose(msg) {}
method _verboseInspect (line 35444) | _verboseInspect(val) {}
method _getStandardInput (line 35446) | _getStandardInput() {
method initPeakMemoryCounter (line 35463) | initPeakMemoryCounter() {
method checkPeakMemory (line 35472) | checkPeakMemory() {
method close (line 35482) | close() {
method getTotalTime (line 35489) | getTotalTime() {
method list (line 35494) | list(key, items, hints) {}
method tree (line 35497) | tree(key, obj, { force = false } = {}) {}
method step (line 35500) | step(current, total, message, emoji) {}
method error (line 35504) | error(message) {}
method info (line 35507) | info(message) {}
method warn (line 35510) | warn(message) {}
method success (line 35513) | success(message) {}
method log (line 35517) | log(message, { force = false } = {}) {}
method command (line 35520) | command(command) {}
method inspect (line 35523) | inspect(value) {}
method header (line 35526) | header(command, pkg) {}
method footer (line 35529) | footer(showPeakMemory) {}
method table (line 35532) | table(head, body) {}
method auditAction (line 35535) | auditAction(recommendation) {}
method auditManualReview (line 35538) | auditManualReview() {}
method auditAdvisory (line 35541) | auditAdvisory(resolution, auditAdvisory) {}
method auditSummary (line 35544) | auditSummary(auditMetadata) {}
method activity (line 35547) | activity() {
method activitySet (line 35555) | activitySet(total, workers) {
method question (line 35568) | question(question, options = {}) {
method questionAffirm (line 35573) | questionAffirm(question) {
method select (line 35601) | select(header, question, options) {
method progress (line 35606) | progress(total) {
method disableProgress (line 35611) | disableProgress() {
method prompt (line 35616) | prompt(message, choices, options = {}) {
function _load_asyncToGenerator (line 35635) | function _load_asyncToGenerator() {
function _load_errors (line 35643) | function _load_errors() {
function _load_index (line 35649) | function _load_index() {
function _load_gitResolver (line 35655) | function _load_gitResolver() {
function _load_exoticResolver (line 35661) | function _load_exoticResolver() {
function _load_git (line 35667) | function _load_git() {
function _load_guessName (line 35673) | function _load_guessName() {
function _interopRequireDefault (line 35677) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function parseHash (line 35679) | function parseHash(fragment) {
function explodeHostedGitFragment (line 35684) | function explodeHostedGitFragment(fragment, reporter) {
class HostedGitResolver (line 35711) | class HostedGitResolver extends (_exoticResolver || _load_exoticResolver...
method constructor (line 35712) | constructor(request, fragment) {
method getTarballUrl (line 35725) | static getTarballUrl(exploded, commit) {
method getGitHTTPUrl (line 35731) | static getGitHTTPUrl(exploded) {
method getGitHTTPBaseUrl (line 35736) | static getGitHTTPBaseUrl(exploded) {
method getGitSSHUrl (line 35741) | static getGitSSHUrl(exploded) {
method getHTTPFileUrl (line 35746) | static getHTTPFileUrl(exploded, filename, commit) {
method getRefOverHTTP (line 35753) | getRefOverHTTP(url) {
method resolveOverHTTP (line 35789) | resolveOverHTTP(url) {
method hasHTTPCapability (line 35861) | hasHTTPCapability(url) {
method resolve (line 35874) | resolve() {
function _load_map (line 35928) | function _load_map() {
function _interopRequireDefault (line 35932) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class BlockingQueue (line 35936) | class BlockingQueue {
method constructor (line 35937) | constructor(alias, maxConcurrency = Infinity) {
method stillActive (line 35951) | stillActive() {
method stuckTick (line 35963) | stuckTick() {
method push (line 35970) | push(key, factory) {
method shift (line 35988) | shift(key) {
method maybePushConcurrencyQueue (line 36041) | maybePushConcurrencyQueue(run) {
method shiftConcurrencyQueue (line 36049) | shiftConcurrencyQueue() {
function _load_extends (line 36074) | function _load_extends() {
function _load_asyncToGenerator (line 36080) | function _load_asyncToGenerator() {
function _load_errors (line 36468) | function _load_errors() {
function _load_constants (line 36474) | function _load_constants() {
function _load_child (line 36480) | function _load_child() {
function _load_fs (line 36486) | function _load_fs() {
function _load_dynamicRequire (line 36492) | function _load_dynamicRequire() {
function _load_portableScript (line 36498) | function _load_portableScript() {
function _load_fixCmdWinSlashes (line 36504) | function _load_fixCmdWinSlashes() {
function _load_global (line 36510) | function _load_global() {
function _interopRequireWildcard (line 36514) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 36516) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function checkForGypIfNeeded (line 36540) | function checkForGypIfNeeded(config, cmd, paths) {
function isArray (line 36593) | function isArray(arg) {
function isBoolean (line 36601) | function isBoolean(arg) {
function isNull (line 36606) | function isNull(arg) {
function isNullOrUndefined (line 36611) | function isNullOrUndefined(arg) {
function isNumber (line 36616) | function isNumber(arg) {
function isString (line 36621) | function isString(arg) {
function isSymbol (line 36626) | function isSymbol(arg) {
function isUndefined (line 36631) | function isUndefined(arg) {
function isRegExp (line 36636) | function isRegExp(re) {
function isObject (line 36641) | function isObject(arg) {
function isDate (line 36646) | function isDate(d) {
function isError (line 36651) | function isError(e) {
function isFunction (line 36656) | function isFunction(arg) {
function isPrimitive (line 36661) | function isPrimitive(arg) {
function objectToString (line 36673) | function objectToString(o) {
function micromatch (line 36705) | function micromatch(files, patterns, opts) {
function match (line 36744) | function match(files, pattern, opts) {
function filter (line 36821) | function filter(patterns, opts) {
function isMatch (line 36867) | function isMatch(fp, pattern, opts) {
function contains (line 36884) | function contains(fp, pattern, opts) {
function any (line 36909) | function any(fp, patterns, opts) {
function matchKeys (line 36936) | function matchKeys(obj, glob, options) {
function matcher (line 36961) | function matcher(pattern, opts) {
function toRegex (line 37010) | function toRegex(glob, options) {
function wrapGlob (line 37047) | function wrapGlob(glob, opts) {
function makeRe (line 37067) | function makeRe(glob, opts) {
function msg (line 37089) | function msg(method, what, type) {
function Duplex (line 37184) | function Duplex(options) {
function onend (line 37211) | function onend() {
function onEndNT (line 37221) | function onEndNT(self) {
function multicast (line 37263) | function multicast(subjectOrSubjectFactory, selector) {
function MulticastOperator (line 37284) | function MulticastOperator(subjectFactory, selector) {
function identity (line 37319) | function identity(x) {
function _load_asyncToGenerator (line 37353) | function _load_asyncToGenerator() {
function _load_fs (line 37390) | function _load_fs() {
function _load_fs2 (line 37396) | function _load_fs2() {
function _load_path (line 37402) | function _load_path() {
function _interopRequireDefault (line 37406) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function _load_asyncToGenerator (line 37432) | function _load_asyncToGenerator() {
function throwPermError (line 37583) | function throwPermError(err, dest) {
function _load_errors (line 37703) | function _load_errors() {
function _load_index (line 37709) | function _load_index() {
function _load_baseReporter (line 37715) | function _load_baseReporter() {
function _load_buildSubCommands (line 37721) | function _load_buildSubCommands() {
function _load_lockfile (line 37727) | function _load_lockfile() {
function _load_install (line 37733) | function _load_install() {
function _load_add (line 37739) | function _load_add() {
function _load_remove (line 37745) | function _load_remove() {
function _load_upgrade (line 37751) | function _load_upgrade() {
function _load_upgradeInteractive (line 37757) | function _load_upgradeInteractive() {
function _load_packageLinker (line 37763) | function _load_packageLinker() {
function _load_constants (line 37769) | function _load_constants() {
function _load_fs (line 37775) | function _load_fs() {
function _interopRequireWildcard (line 37779) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 37781) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class GlobalAdd (line 37783) | class GlobalAdd extends (_add || _load_add()).Add {
method constructor (line 37784) | constructor(args, flags, config, reporter, lockfile) {
method maybeOutputSaveTree (line 37790) | maybeOutputSaveTree() {
method _logSuccessSaveLockfile (line 37811) | _logSuccessSaveLockfile() {
function hasWrapper (line 37818) | function hasWrapper(flags, args) {
function ls (line 37822) | function ls(manifest, reporter, saved) {
method add (line 37838) | add(config, reporter, flags, args) {
method bin (line 37857) | bin(config, reporter, flags, args) {
method dir (line 37863) | dir(config, reporter, flags, args) {
method ls (line 37868) | ls(config, reporter, flags, args) {
method list (line 37875) | list(config, reporter, flags, args) {
method remove (line 37881) | remove(config, reporter, flags, args) {
method upgrade (line 37895) | upgrade(config, reporter, flags, args) {
method upgradeInteractive (line 37909) | upgradeInteractive(config, reporter, flags, args) {
function setFlags (line 37927) | function setFlags(commander) {
function _load_asyncToGenerator (line 37947) | function _load_asyncToGenerator() {
function _load_path (line 37953) | function _load_path() {
function _load_invariant (line 37959) | function _load_invariant() {
function _load_semver (line 37965) | function _load_semver() {
function _load_validate (line 37971) | function _load_validate() {
function _load_lockfile (line 37977) | function _load_lockfile() {
function _load_packageReference (line 37983) | function _load_packageReference() {
function _load_index (line 37989) | function _load_index() {
function _load_errors (line 37995) | function _load_errors() {
function _load_constants (line 38001) | function _load_constants() {
function _load_version (line 38007) | function _load_version() {
function _load_workspaceResolver (line 38013) | function _load_workspaceResolver() {
function _load_fs (line 38019) | function _load_fs() {
function _load_normalizePattern (line 38025) | function _load_normalizePattern() {
function _interopRequireWildcard (line 38029) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 38031) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class PackageRequest (line 38035) | class PackageRequest {
method constructor (line 38036) | constructor(req, resolver) {
method init (line 38050) | init() {
method getLocked (line 38054) | getLocked(remoteType) {
method findVersionOnRegistry (line 38091) | findVersionOnRegistry(pattern) {
method getRegistryResolver (line 38136) | getRegistryResolver() {
method normalizeRange (line 38145) | normalizeRange(pattern) {
method normalize (line 38168) | normalize(pattern) {
method findExoticVersionInfo (line 38187) | findExoticVersionInfo(ExoticResolver, range) {
method findVersionInfo (line 38197) | findVersionInfo() {
method reportResolvedRangeMatch (line 38222) | reportResolvedRangeMatch(info, resolved) {}
method resolveToExistingVersion (line 38229) | resolveToExistingVersion(info) {
method find (line 38251) | find({ fresh, frozen }) {
method validateVersionInfo (line 38391) | static validateVersionInfo(info, reporter) {
method getPackageVersion (line 38421) | static getPackageVersion(info) {
method getOutdatedPackages (line 38430) | static getOutdatedPackages(lockfile, install, config, reporter, filter...
class BaseResolver (line 38525) | class BaseResolver {
method constructor (line 38526) | constructor(request, fragment) {
method fork (line 38536) | fork(Resolver, resolveArg, ...args) {
method resolve (line 38542) | resolve(resolveArg) {
function _load_asyncToGenerator (line 38561) | function _load_asyncToGenerator() {
function _load_index (line 38567) | function _load_index() {
function _load_misc (line 38573) | function _load_misc() {
function _load_version (line 38579) | function _load_version() {
function _load_guessName (line 38585) | function _load_guessName() {
function _load_index2 (line 38591) | function _load_index2() {
function _load_exoticResolver (line 38597) | function _load_exoticResolver() {
function _load_git (line 38603) | function _load_git() {
function _interopRequireWildcard (line 38607) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 38609) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class GitResolver (line 38617) | class GitResolver extends (_exoticResolver || _load_exoticResolver()).de...
method constructor (line 38618) | constructor(request, fragment) {
method isVersion (line 38630) | static isVersion(pattern) {
method resolve (line 38664) | resolve(forked) {
function _load_errors (line 38854) | function _load_errors() {
function _load_util (line 38860) | function _load_util() {
function _load_typos (line 38866) | function _load_typos() {
function _interopRequireDefault (line 38870) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function isValidName (line 38886) | function isValidName(name) {
function isValidScopedName (line 38890) | function isValidScopedName(name) {
function isValidPackageName (line 38899) | function isValidPackageName(name) {
function cleanDependencies (line 38903) | function cleanDependencies(info, isRoot, reporter, warn) {
function selectColor (line 39379) | function selectColor(namespace) {
function createDebug (line 39398) | function createDebug(namespace) {
function destroy (line 39470) | function destroy () {
function enable (line 39488) | function enable(namespaces) {
function disable (line 39520) | function disable() {
function enabled (line 39532) | function enabled(name) {
function coerce (line 39558) | function coerce(val) {
function ECFieldElementFp (line 39580) | function ECFieldElementFp(q,x) {
function feFpEquals (line 39586) | function feFpEquals(other) {
function feFpToBigInteger (line 39591) | function feFpToBigInteger() {
function feFpNegate (line 39595) | function feFpNegate() {
function feFpAdd (line 39599) | function feFpAdd(b) {
function feFpSubtract (line 39603) | function feFpSubtract(b) {
function feFpMultiply (line 39607) | function feFpMultiply(b) {
function feFpSquare (line 39611) | function feFpSquare() {
function feFpDivide (line 39615) | function feFpDivide(b) {
function ECPointFp (line 39632) | function ECPointFp(curve,x,y,z) {
function pointFpGetX (line 39648) | function pointFpGetX() {
function pointFpGetY (line 39657) | function pointFpGetY() {
function pointFpEquals (line 39666) | function pointFpEquals(other) {
function pointFpIsInfinity (line 39679) | function pointFpIsInfinity() {
function pointFpNegate (line 39684) | function pointFpNegate() {
function pointFpAdd (line 39688) | function pointFpAdd(b) {
function pointFpTwice (line 39725) | function pointFpTwice() {
function pointFpMultiply (line 39757) | function pointFpMultiply(k) {
function pointFpMultiplyTwo (line 39783) | function pointFpMultiplyTwo(j,x,k) {
function ECCurveFp (line 39827) | function ECCurveFp(q,a,b) {
function curveFpGetQ (line 39835) | function curveFpGetQ() {
function curveFpGetA (line 39839) | function curveFpGetA() {
function curveFpGetB (line 39843) | function curveFpGetB() {
function curveFpEquals (line 39847) | function curveFpEquals(other) {
function curveFpGetInfinity (line 39852) | function curveFpGetInfinity() {
function curveFpFromBigInteger (line 39856) | function curveFpFromBigInteger(x) {
function curveReduce (line 39860) | function curveReduce(x) {
function curveFpDecodePointHex (line 39865) | function curveFpDecodePointHex(s) {
function curveFpEncodePointHex (line 39889) | function curveFpEncodePointHex(p) {
function newError (line 40150) | function newError (er) {
function realpath (line 40158) | function realpath (p, cache, cb) {
function realpathSync (line 40176) | function realpathSync (p, cache) {
function monkeypatch (line 40192) | function monkeypatch () {
function unmonkeypatch (line 40197) | function unmonkeypatch () {
function ownProp (line 40217) | function ownProp (obj, field) {
function alphasorti (line 40226) | function alphasorti (a, b) {
function alphasort (line 40230) | function alphasort (a, b) {
function setupIgnores (line 40234) | function setupIgnores (self, options) {
function ignoreMap (line 40246) | function ignoreMap (pattern) {
function setopts (line 40259) | function setopts (self, pattern, options) {
function finish (line 40328) | function finish (self) {
function mark (line 40385) | function mark (self, p) {
function makeAbs (line 40409) | function makeAbs (self, f) {
function isIgnored (line 40430) | function isIgnored (self, path) {
function childrenIgnored (line 40439) | function childrenIgnored (self, path) {
function mkdirP (line 40528) | function mkdirP (p, opts, f, made) {
function defaultIfEmpty (line 40633) | function defaultIfEmpty(defaultValue) {
function DefaultIfEmptyOperator (line 40640) | function DefaultIfEmptyOperator(defaultValue) {
function DefaultIfEmptySubscriber (line 40650) | function DefaultIfEmptySubscriber(destination, defaultValue) {
function filter (line 40682) | function filter(predicate, thisArg) {
function FilterOperator (line 40688) | function FilterOperator(predicate, thisArg) {
function FilterSubscriber (line 40699) | function FilterSubscriber(destination, predicate, thisArg) {
function mergeMap (line 40745) | function mergeMap(project, resultSelector, concurrent) {
function MergeMapOperator (line 40758) | function MergeMapOperator(project, concurrent) {
function MergeMapSubscriber (line 40773) | function MergeMapSubscriber(destination, project, concurrent) {
function AsyncAction (line 40853) | function AsyncAction(scheduler, work) {
function AsyncScheduler (line 40957) | function AsyncScheduler(SchedulerAction, now) {
function getSymbolIterator (line 41021) | function getSymbolIterator() {
function ArgumentOutOfRangeErrorImpl (line 41039) | function ArgumentOutOfRangeErrorImpl() {
function EmptyErrorImpl (line 41057) | function EmptyErrorImpl() {
function isFunction (line 41075) | function isFunction(x) {
function Certificate (line 41110) | function Certificate(opts) {
function Fingerprint (line 41485) | function Fingerprint(opts) {
function addColons (line 41601) | function addColons(s) {
function base64Strip (line 41606) | function base64Strip(s) {
function sshBase64Format (line 41611) | function sshBase64Format(alg, h) {
function read (line 41658) | function read(buf, options) {
function write (line 41662) | function write(key, options) {
function readMPInt (line 41667) | function readMPInt(der, nm) {
function readPkcs8 (line 41673) | function readPkcs8(alg, type, der) {
function readPkcs8RSAPublic (line 41719) | function readPkcs8RSAPublic(der) {
function readPkcs8RSAPrivate (line 41742) | function readPkcs8RSAPrivate(der) {
function readPkcs8DSAPublic (line 41777) | function readPkcs8DSAPublic(der) {
function readPkcs8DSAPrivate (line 41804) | function readPkcs8DSAPrivate(der) {
function readECDSACurve (line 41831) | function readECDSACurve(der) {
function readPkcs8ECDSAPrivate (line 41928) | function readPkcs8ECDSAPrivate(der) {
function readPkcs8ECDSAPublic (line 41956) | function readPkcs8ECDSAPublic(der) {
function readPkcs8EdDSAPublic (line 41974) | function readPkcs8EdDSAPublic(der) {
function readPkcs8X25519Public (line 41990) | function readPkcs8X25519Public(der) {
function readPkcs8EdDSAPrivate (line 42003) | function readPkcs8EdDSAPrivate(der) {
function readPkcs8X25519Private (line 42030) | function readPkcs8X25519Private(der) {
function writePkcs8 (line 42051) | function writePkcs8(der, key) {
function writePkcs8RSAPrivate (line 42096) | function writePkcs8RSAPrivate(key, der) {
function writePkcs8RSAPublic (line 42121) | function writePkcs8RSAPublic(key, der) {
function writePkcs8DSAPrivate (line 42136) | function writePkcs8DSAPrivate(key, der) {
function writePkcs8DSAPublic (line 42150) | function writePkcs8DSAPublic(key, der) {
function writeECDSACurve (line 42164) | function writeECDSACurve(key, der) {
function writePkcs8ECDSAPublic (line 42206) | function writePkcs8ECDSAPublic(key, der) {
function writePkcs8ECDSAPrivate (line 42214) | function writePkcs8ECDSAPrivate(key, der) {
function writePkcs8EdDSAPublic (line 42235) | function writePkcs8EdDSAPublic(key, der) {
function writePkcs8EdDSAPrivate (line 42241) | function writePkcs8EdDSAPrivate(key, der) {
function Identity (line 42290) | function Identity(opts) {
function globMatch (line 42420) | function globMatch(a, b) {
function SSHBuffer (line 42557) | function SSHBuffer(opts) {
function wrappy (line 42732) | function wrappy (fn, cb) {
function _load_extends (line 42774) | function _load_extends() {
function _load_asyncToGenerator (line 42780) | function _load_asyncToGenerator() {
function _load_executeLifecycleScript (line 42788) | function _load_executeLifecycleScript() {
function _load_path (line 42794) | function _load_path() {
function _load_conversion (line 42800) | function _load_conversion() {
function _load_index (line 42806) | function _load_index() {
function _load_errors (line 42812) | function _load_errors() {
function _load_fs (line 42818) | function _load_fs() {
function _load_constants (line 42824) | function _load_constants() {
function _load_packageConstraintResolver (line 42830) | function _load_packageConstraintResolver() {
function _load_requestManager (line 42836) | function _load_requestManager() {
function _load_index2 (line 42842) | function _load_index2() {
function _load_index3 (line 42848) | function _load_index3() {
function _load_map (line 42854) | function _load_map() {
function _interopRequireWildcard (line 42858) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 42860) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function sortObject (line 42869) | function sortObject(object) {
class Config (line 42877) | class Config {
method constructor (line 42878) | constructor(reporter) {
method getCache (line 42947) | getCache(key, factory) {
method getOption (line 42963) | getOption(key, resolve = false) {
method resolveConstraints (line 42977) | resolveConstraints(versions, range) {
method init (line 42985) | init(opts = {}) {
method _init (line 43211) | _init(opts) {
method generateUniquePackageSlug (line 43260) | generateUniquePackageSlug(pkg) {
method generateModuleCachePath (line 43296) | generateModuleCachePath(pkg) {
method getUnpluggedPath (line 43307) | getUnpluggedPath() {
method generatePackageUnpluggedPath (line 43314) | generatePackageUnpluggedPath(pkg) {
method listUnpluggedPackageFolders (line 43322) | listUnpluggedPackageFolders() {
method executeLifecycleScript (line 43363) | executeLifecycleScript(commandName, cwd) {
method getTemp (line 43375) | getTemp(filename) {
method getOfflineMirrorPath (line 43386) | getOfflineMirrorPath(packageFilename) {
method isValidModuleDest (line 43427) | isValidModuleDest(dest) {
method readPackageMetadata (line 43445) | readPackageMetadata(dir) {
method readManifest (line 43467) | readManifest(dir, priorityRegistry, isRoot = false) {
method maybeReadManifest (line 43486) | maybeReadManifest(dir, priorityRegistry, isRoot = false) {
method readRootManifest (line 43543) | readRootManifest() {
method tryManifest (line 43551) | tryManifest(dir, registry, isRoot) {
method findManifest (line 43569) | findManifest(dir, isRoot) {
method findWorkspaceRoot (line 43598) | findWorkspaceRoot(initial) {
method resolveWorkspaces (line 43628) | resolveWorkspaces(root, rootManifest) {
method getWorkspaces (line 43704) | getWorkspaces(manifest, shouldThrow = false) {
method getFolder (line 43752) | getFolder(pkg) {
method getRootManifests (line 43766) | getRootManifests() {
method saveRootManifests (line 43808) | saveRootManifests(manifests) {
method readJson (line 43862) | readJson(loc, factory = (_fs || _load_fs()).readJson) {
method create (line 43874) | static create(opts = {}, reporter = new (_index3 || _load_index3()).No...
function extractWorkspaces (line 43884) | function extractWorkspaces(manifest) {
function _load_asyncToGenerator (line 43948) | function _load_asyncToGenerator() {
function _load_extends (line 43954) | function _load_extends() {
function _load_lockfile (line 43982) | function _load_lockfile() {
function _load_normalizePattern (line 43988) | function _load_normalizePattern() {
function _load_workspaceLayout (line 43994) | function _load_workspaceLayout() {
function _load_index (line 44000) | function _load_index() {
function _load_list (line 44006) | function _load_list() {
function _load_install (line 44012) | function _load_install() {
function _load_errors (line 44018) | function _load_errors() {
function _load_constants (line 44024) | function _load_constants() {
function _load_fs (line 44030) | function _load_fs() {
function _load_invariant (line 44036) | function _load_invariant() {
function _load_path (line 44042) | function _load_path() {
function _load_semver (line 44048) | function _load_semver() {
function _interopRequireWildcard (line 44052) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 44054) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class Add (line 44058) | class Add extends (_install || _load_install()).Install {
method constructor (line 44059) | constructor(args, flags, config, reporter, lockfile) {
method prepareRequests (line 44072) | prepareRequests(requests) {
method getPatternVersion (line 44101) | getPatternVersion(pattern, pkg) {
method preparePatterns (line 44135) | preparePatterns(patterns) {
method preparePatternsForLinking (line 44165) | preparePatternsForLinking(patterns, cwdManifest, cwdIsRoot) {
method bailout (line 44205) | bailout(patterns, workspaceLayout) {
method init (line 44227) | init() {
method applyChanges (line 44245) | applyChanges(manifests) {
method fetchRequestFromCwd (line 44274) | fetchRequestFromCwd() {
method maybeOutputSaveTree (line 44282) | maybeOutputSaveTree(patterns) {
method savePackages (line 44347) | savePackages() {
method _iterateAddedPackages (line 44351) | _iterateAddedPackages(f) {
function hasWrapper (line 44391) | function hasWrapper(commander) {
function setFlags (line 44395) | function setFlags(commander) {
function _load_asyncToGenerator (line 44421) | function _load_asyncToGenerator() {
function _load_fs (line 44624) | function _load_fs() {
function _load_filter (line 44630) | function _load_filter() {
function _load_errors (line 44636) | function _load_errors() {
function _interopRequireWildcard (line 44640) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 44642) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function packWithIgnoreAndHeaders (line 44663) | function packWithIgnoreAndHeaders(cwd, ignoreFunction, { mapHeader } = {...
function setFlags (line 44677) | function setFlags(commander) {
function hasWrapper (line 44682) | function hasWrapper(commander, args) {
function _load_asyncToGenerator (line 44699) | function _load_asyncToGenerator() {
function _load_index (line 44705) | function _load_index() {
function _load_constants (line 44711) | function _load_constants() {
function _load_fs (line 44717) | function _load_fs() {
function _load_mutex (line 44723) | function _load_mutex() {
function _interopRequireWildcard (line 44727) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 44729) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class BaseFetcher (line 44736) | class BaseFetcher {
method constructor (line 44737) | constructor(dest, remote, config) {
method setupMirrorFromCache (line 44748) | setupMirrorFromCache() {
method _fetch (line 44754) | _fetch() {
method fetch (line 44758) | fetch(defaultManifest) {
function hash (line 44857) | function hash(content, type = 'md5') {
class HashStream (line 44861) | class HashStream extends stream.Transform {
method constructor (line 44862) | constructor(options) {
method _transform (line 44868) | _transform(chunk, encoding, callback) {
method getHash (line 44874) | getHash() {
method test (line 44878) | test(sum) {
function _load_url (line 44898) | function _load_url() {
function _interopRequireDefault (line 44902) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function cleanup (line 44904) | function cleanup(name) {
function guessNameFallback (line 44909) | function guessNameFallback(source) {
function guessName (line 44915) | function guessName(source) {
function HttpSignatureError (line 45117) | function HttpSignatureError(message, caller) {
function InvalidAlgorithmError (line 45126) | function InvalidAlgorithmError(message) {
function validateAlgorithm (line 45131) | function validateAlgorithm(algorithm) {
class Separator (line 45229) | class Separator {
method constructor (line 45230) | constructor(line) {
method toString (line 45239) | toString() {
class Paginator (line 45272) | class Paginator {
method constructor (line 45273) | constructor(screen) {
method paginate (line 45279) | paginate(output, active, pageSize) {
function nextTick (line 45490) | function nextTick(fn, arg1, arg2, arg3) {
function AsyncSubject (line 45777) | function AsyncSubject() {
function Notification (line 45834) | function Notification(kind, value, error) {
method useDeprecatedSynchronousErrorHandling (line 45911) | set useDeprecatedSynchronousErrorHandling(value) {
method useDeprecatedSynchronousErrorHandling (line 45921) | get useDeprecatedSynchronousErrorHandling() {
function concat (line 45943) | function concat() {
function reduce (line 45971) | function reduce(accumulator, seed) {
function defaultErrorFactory (line 46009) | function defaultErrorFactory() {
function ObjectUnsubscribedErrorImpl (line 46022) | function ObjectUnsubscribedErrorImpl() {
function isNumeric (line 46042) | function isNumeric(val) {
function noop (line 46055) | function noop() { }
function read (line 46087) | function read(buf, options) {
function readSSHPrivate (line 46093) | function readSSHPrivate(type, buf, options) {
function write (line 46199) | function write(key, options) {
function validate (line 46658) | function validate (fs, name, root, cb) {
function mkdirfix (line 46667) | function mkdirfix (name, opts, cb) {
function _load_misc (line 46722) | function _load_misc() {
function _load_constants (line 46728) | function _load_constants() {
function _load_package (line 46734) | function _load_package() {
function shouldWrapKey (line 46740) | function shouldWrapKey(str) {
function maybeWrap (line 46744) | function maybeWrap(str) {
function priorityThenAlphaSort (line 46762) | function priorityThenAlphaSort(a, b) {
function _stringify (line 46770) | function _stringify(obj, options) {
function stringify (line 46820) | function stringify(obj, noHeader, enableVersions) {
function _load_consoleReporter (line 46855) | function _load_consoleReporter() {
function _load_bufferReporter (line 46868) | function _load_bufferReporter() {
function _load_eventReporter (line 46881) | function _load_eventReporter() {
function _load_jsonReporter (line 46894) | function _load_jsonReporter() {
function _load_noopReporter (line 46907) | function _load_noopReporter() {
function _load_baseReporter (line 46920) | function _load_baseReporter() {
function _interopRequireDefault (line 46931) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function cmdShimIfExists (line 46964) | function cmdShimIfExists (src, to, opts) {
function rm (line 46973) | function rm (path) {
function cmdShim (line 46977) | function cmdShim (src, to, opts) {
function cmdShim_ (line 46983) | function cmdShim_ (src, to, opts) {
function writeShim (line 46992) | function writeShim (src, to, opts) {
function writeShim_ (line 47014) | function writeShim_ (src, to, opts) {
function chmodShim (line 47172) | function chmodShim (to, {createCmdFile, createPwshFile}) {
function normalizePathEnvVar (line 47184) | function normalizePathEnvVar (nodePath) {
function ValidationError (line 47221) | function ValidationError(errors) {
function MissingRefError (line 47233) | function MissingRefError(baseId, ref, message) {
function errorSubclass (line 47240) | function errorSubclass(Subclass) {
function resolve (line 47277) | function resolve(compile, root, ref) {
function resolveSchema (line 47319) | function resolveSchema(root, ref) {
function resolveRecursive (line 47351) | function resolveRecursive(root, ref, parsedRef) {
function getJsonPointer (line 47367) | function getJsonPointer(parsedRef, baseId, schema, root) {
function inlineRef (line 47409) | function inlineRef(schema, limit) {
function checkNoRef (line 47416) | function checkNoRef(schema) {
function countKeys (line 47434) | function countKeys(schema) {
function getFullPath (line 47458) | function getFullPath(id, normalize) {
function _getFullPath (line 47465) | function _getFullPath(p) {
function normalizeId (line 47472) | function normalizeId(id) {
function resolveUrl (line 47477) | function resolveUrl(baseId, id) {
function resolveIds (line 47484) | function resolveIds(schema) {
function _load_asyncToGenerator (line 47662) | function _load_asyncToGenerator() {
function _load_add (line 47756) | function _load_add() {
function _load_lockfile (line 47762) | function _load_lockfile() {
function _load_packageRequest (line 47768) | function _load_packageRequest() {
function _load_normalizePattern (line 47774) | function _load_normalizePattern() {
function _load_install (line 47780) | function _load_install() {
function _interopRequireDefault (line 47784) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function setUserRequestedPackageVersions (line 47797) | function setUserRequestedPackageVersions(deps, args, latest, packagePatt...
function getRangeOperator (line 47848) | function getRangeOperator(version) {
function buildPatternToUpgradeTo (line 47855) | function buildPatternToUpgradeTo(dep, flags) {
function scopeFilter (line 47879) | function scopeFilter(flags, dep) {
function cleanLockfile (line 47891) | function cleanLockfile(lockfile, deps, packagePatterns, reporter) {
function setFlags (line 47910) | function setFlags(commander) {
function hasWrapper (line 47922) | function hasWrapper(commander, args) {
function _load_extends (line 47942) | function _load_extends() {
function _load_asyncToGenerator (line 47948) | function _load_asyncToGenerator() {
function _load_constants (line 47954) | function _load_constants() {
function _load_fs (line 47960) | function _load_fs() {
function _load_misc (line 47966) | function _load_misc() {
function _load_packageNameUtils (line 47972) | function _load_packageNameUtils() {
function _load_workspaceLayout (line 47978) | function _load_workspaceLayout() {
function _interopRequireWildcard (line 47982) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 47984) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class InstallationIntegrityChecker (line 48014) | class InstallationIntegrityChecker {
method constructor (line 48015) | constructor(config) {
method _getModulesRootFolder (line 48023) | _getModulesRootFolder() {
method _getIntegrityFileFolder (line 48037) | _getIntegrityFileFolder() {
method _getIntegrityFileLocation (line 48051) | _getIntegrityFileLocation() {
method _getModulesFolders (line 48072) | _getModulesFolders({ workspaceLayout } = {}) {
method _getIntegrityListing (line 48110) | _getIntegrityListing({ workspaceLayout } = {}) {
method _generateIntegrityFile (line 48175) | _generateIntegrityFile(lockfile, patterns, flags, workspaceLayout, art...
method _getIntegrityFile (line 48338) | _getIntegrityFile(locationPath) {
method _compareIntegrityFiles (line 48350) | _compareIntegrityFiles(actual, expected, checkFiles, workspaceLayout) {
method check (line 48442) | check(patterns, lockfile, flags, workspaceLayout) {
method getArtifacts (line 48499) | getArtifacts() {
method save (line 48523) | save(patterns, lockfile, flags, workspaceLayout, artifacts) {
method removeIntegrityFile (line 48537) | removeIntegrityFile() {
function _load_errors (line 48567) | function _load_errors() {
function _load_map (line 48573) | function _load_map() {
function _load_misc (line 48579) | function _load_misc() {
function _load_yarnVersion (line 48585) | function _load_yarnVersion() {
function _load_semver (line 48591) | function _load_semver() {
function _interopRequireDefault (line 48595) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function isValid (line 48603) | function isValid(items, actual) {
function testEngine (line 48653) | function testEngine(name, range, versions, looseSemver) {
function isValidArch (line 48702) | function isValidArch(archs) {
function isValidPlatform (line 48706) | function isValidPlatform(platforms) {
function checkOne (line 48710) | function checkOne(info, config, ignoreEngines) {
function check (line 48784) | function check(infos, config, ignoreEngines) {
function shouldCheckCpu (line 48803) | function shouldCheckCpu(cpu, ignorePlatform) {
function shouldCheckPlatform (line 48807) | function shouldCheckPlatform(os, ignorePlatform) {
function shouldCheckEngines (line 48811) | function shouldCheckEngines(engines, ignoreEngines) {
function shouldCheck (line 48815) | function shouldCheck(manifest, options) {
function _load_asyncToGenerator (line 48833) | function _load_asyncToGenerator() {
function _load_errors (line 48940) | function _load_errors() {
function _load_index (line 48946) | function _load_index() {
function _load_fs (line 48952) | function _load_fs() {
function _load_promise (line 48958) | function _load_promise() {
function _interopRequireWildcard (line 48962) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 48964) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function fetchOne (line 48968) | function fetchOne(ref, config) {
function fetch (line 48974) | function fetch(pkgs, config) {
function _load_asyncToGenerator (line 49059) | function _load_asyncToGenerator() {
function _load_packageHoister (line 49086) | function _load_packageHoister() {
function _load_constants (line 49092) | function _load_constants() {
function _load_promise (line 49098) | function _load_promise() {
function _load_normalizePattern (line 49104) | function _load_normalizePattern() {
function _load_misc (line 49110) | function _load_misc() {
function _load_fs (line 49116) | function _load_fs() {
function _load_mutex (line 49122) | function _load_mutex() {
function _load_semver (line 49128) | function _load_semver() {
function _load_workspaceLayout (line 49134) | function _load_workspaceLayout() {
function _interopRequireWildcard (line 49138) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 49140) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class PackageLinker (line 49150) | class PackageLinker {
method constructor (line 49151) | constructor(config, resolver) {
method setArtifacts (line 49160) | setArtifacts(artifacts) {
method setTopLevelBinLinking (line 49164) | setTopLevelBinLinking(topLevelBinLinking) {
method linkSelfDependencies (line 49168) | linkSelfDependencies(pkg, pkgLoc, targetBinLoc, override = false) {
method linkBinDependencies (line 49203) | linkBinDependencies(pkg, dir) {
method findNearestInstalledVersionOfPackage (line 49307) | findNearestInstalledVersionOfPackage(pkg, binLoc) {
method getFlatHoistedTree (line 49370) | getFlatHoistedTree(patterns, workspaceLayout, { ignoreOptional } = {}) {
method copyModules (line 49379) | copyModules(patterns, workspaceLayout, { linkDuplicates, ignoreOptiona...
method _buildTreeHash (line 49894) | _buildTreeHash(flatTree) {
method getParentBinLoc (line 49919) | getParentBinLoc(parts, flatTree) {
method determineTopLevelBinLinkOrder (line 49934) | determineTopLevelBinLinkOrder(flatTree) {
method resolvePeerModules (line 49994) | resolvePeerModules() {
method _satisfiesPeerDependency (line 50098) | _satisfiesPeerDependency(range, version) {
method _warnForMissingBundledDependencies (line 50102) | _warnForMissingBundledDependencies(pkg) {
method _isUnplugged (line 50142) | _isUnplugged(pkg, ref) {
method init (line 50170) | init(patterns, workspaceLayout, { linkDuplicates, ignoreOptional } = {...
function _load_tty (line 50202) | function _load_tty() {
function _interopRequireDefault (line 50206) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function clearLine (line 50218) | function clearLine(stdout) {
function toStartOfLine (line 50233) | function toStartOfLine(stdout) {
function writeOnNthLine (line 50242) | function writeOnNthLine(stdout, n, msg) {
function clearNthLine (line 50261) | function clearNthLine(stdout, n) {
function _load_extends (line 50289) | function _load_extends() {
function _load_baseReporter (line 50295) | function _load_baseReporter() {
function _interopRequireDefault (line 50299) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class JSONReporter (line 50301) | class JSONReporter extends (_baseReporter || _load_baseReporter()).defau...
method constructor (line 50302) | constructor(opts) {
method _dump (line 50309) | _dump(type, data, error) {
method _verbose (line 50317) | _verbose(msg) {
method list (line 50321) | list(type, items, hints) {
method tree (line 50325) | tree(type, trees) {
method step (line 50329) | step(current, total, message) {
method inspect (line 50333) | inspect(value) {
method footer (line 50337) | footer(showPeakMemory) {
method log (line 50341) | log(msg) {
method command (line 50345) | command(msg) {
method table (line 50349) | table(head, body) {
method success (line 50353) | success(msg) {
method error (line 50357) | error(msg) {
method warn (line 50361) | warn(msg) {
method info (line 50365) | info(msg) {
method activitySet (line 50369) | activitySet(total, workers) {
method activity (line 50409) | activity() {
method _activity (line 50413) | _activity(data) {
method progress (line 50435) | progress(total) {
method auditAction (line 50456) | auditAction(recommendation) {
method auditAdvisory (line 50460) | auditAdvisory(resolution, auditAdvisory) {
method auditSummary (line 50464) | auditSummary(auditMetadata) {
function _load_semver (line 50484) | function _load_semver() {
function _load_minimatch (line 50490) | function _load_minimatch() {
function _load_map (line 50496) | function _load_map() {
function _load_normalizePattern (line 50502) | function _load_normalizePattern() {
function _load_parsePackagePath (line 50508) | function _load_parsePackagePath() {
function _load_parsePackagePath2 (line 50514) | function _load_parsePackagePath2() {
function _load_resolvers (line 50520) | function _load_resolvers() {
function _interopRequireDefault (line 50524) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class ResolutionMap (line 50529) | class ResolutionMap {
method constructor (line 50530) | constructor(config) {
method init (line 50537) | init(resolutions = {}) {
method addToDelayQueue (line 50548) | addToDelayQueue(req) {
method parsePatternInfo (line 50552) | parsePatternInfo(globPattern, range) {
method find (line 50579) | find(reqPattern, parentNames) {
function _load_asyncToGenerator (line 50632) | function _load_asyncToGenerator() {
function _load_path (line 50638) | function _load_path() {
function _load_invariant (line 50644) | function _load_invariant() {
function _load_uuid (line 50650) | function _load_uuid() {
function _load_errors (line 50656) | function _load_errors() {
function _load_exoticResolver (line 50662) | function _load_exoticResolver() {
function _load_misc (line 50668) | function _load_misc() {
function _load_fs (line 50674) | function _load_fs() {
function _interopRequireWildcard (line 50678) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 50680) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class FileResolver (line 50684) | class FileResolver extends (_exoticResolver || _load_exoticResolver()).d...
method constructor (line 50685) | constructor(request, fragment) {
method isVersion (line 50690) | static isVersion(pattern) {
method resolve (line 50694) | resolve() {
function _load_errors (line 50770) | function _load_errors() {
function _load_gitResolver (line 50776) | function _load_gitResolver() {
function _load_exoticResolver (line 50782) | function _load_exoticResolver() {
function _load_misc (line 50788) | function _load_misc() {
function _interopRequireWildcard (line 50792) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 50794) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function explodeGistFragment (line 50796) | function explodeGistFragment(fragment, reporter) {
class GistResolver (line 50811) | class GistResolver extends (_exoticResolver || _load_exoticResolver()).d...
method constructor (line 50813) | constructor(request, fragment) {
method resolve (line 50825) | resolve() {
function _load_asyncToGenerator (line 50845) | function _load_asyncToGenerator() {
function _load_cache (line 50851) | function _load_cache() {
function _load_errors (line 50857) | function _load_errors() {
function _load_registryResolver (line 50863) | function _load_registryResolver() {
function _load_npmRegistry (line 50869) | function _load_npmRegistry() {
function _load_map (line 50875) | function _load_map() {
function _load_fs (line 50881) | function _load_fs() {
function _load_constants (line 50887) | function _load_constants() {
function _load_packageNameUtils (line 50893) | function _load_packageNameUtils() {
function _interopRequireWildcard (line 50897) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 50899) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class NpmResolver (line 50909) | class NpmResolver extends (_registryResolver || _load_registryResolver()...
method findVersionInRegistryResponse (line 50911) | static findVersionInRegistryResponse(config, name, range, body, reques...
method resolveRequest (line 50960) | resolveRequest(desiredVersion) {
method resolveRequestOffline (line 50983) | resolveRequestOffline() {
method cleanRegistry (line 51040) | cleanRegistry(url) {
method resolve (line 51048) | resolve() {
function _load_asyncToGenerator (line 51135) | function _load_asyncToGenerator() {
function _load_fs (line 51201) | function _load_fs() {
function _load_promise (line 51207) | function _load_promise() {
function _load_fs2 (line 51213) | function _load_fs2() {
function _interopRequireDefault (line 51217) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function _load_asyncToGenerator (line 51332) | function _load_asyncToGenerator() {
function _load_extends (line 51338) | function _load_extends() {
function _load_invariant (line 51344) | function _load_invariant() {
function _load_string_decoder (line 51350) | function _load_string_decoder() {
function _load_tarFs (line 51356) | function _load_tarFs() {
function _load_tarStream (line 51362) | function _load_tarStream() {
function _load_url (line 51368) | function _load_url() {
function _load_fs (line 51374) | function _load_fs() {
function _load_errors (line 51380) | function _load_errors() {
function _load_gitSpawn (line 51386) | function _load_gitSpawn() {
function _load_gitRefResolver (line 51392) | function _load_gitRefResolver() {
function _load_crypto (line 51398) | function _load_crypto() {
function _load_fs2 (line 51404) | function _load_fs2() {
function _load_map (line 51410) | function _load_map() {
function _load_misc (line 51416) | function _load_misc() {
function _interopRequireWildcard (line 51420) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 51422) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class Git (line 51464) | class Git {
method constructor (line 51465) | constructor(config, gitUrl, hash) {
method npmUrlToGitUrl (line 51480) | static npmUrlToGitUrl(npmUrl) {
method hasArchiveCapability (line 51522) | static hasArchiveCapability(ref) {
method repoExists (line 51548) | static repoExists(ref) {
method replaceProtocol (line 51566) | static replaceProtocol(ref, protocol) {
method secureGitUrl (line 51577) | static secureGitUrl(ref, hash, reporter) {
method archive (line 51612) | archive(dest) {
method _archiveViaRemoteArchive (line 51620) | _archiveViaRemoteArchive(dest) {
method _archiveViaLocalFetched (line 51641) | _archiveViaLocalFetched(dest) {
method clone (line 51667) | clone(dest) {
method _cloneViaRemoteArchive (line 51675) | _cloneViaRemoteArchive(dest) {
method _cloneViaLocalFetched (line 51695) | _cloneViaLocalFetched(dest) {
method fetch (line 51720) | fetch() {
method getFile (line 51743) | getFile(filename) {
method _getFileFromArchive (line 51751) | _getFileFromArchive(filename) {
method _getFileFromClone (line 51791) | _getFileFromClone(filename) {
method init (line 51813) | init() {
method setRefRemote (line 51832) | setRefRemote() {
method setRefHosted (line 51850) | setRefHosted(hostedRefsList) {
method resolveDefaultBranch (line 51859) | resolveDefaultBranch() {
method resolveCommit (line 51910) | resolveCommit(shaToResolve) {
method setRef (line 51937) | setRef(refs) {
function _load_asyncToGenerator (line 51976) | function _load_asyncToGenerator() {
function _load_resolveRelative (line 51982) | function _load_resolveRelative() {
function _load_validate (line 51988) | function _load_validate() {
function _load_fix (line 51994) | function _load_fix() {
function _interopRequireDefault (line 51998) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function warn (line 52019) | function warn(msg) {
function isValidLicense (line 52075) | function isValidLicense(license) {
function isValidBin (line 52079) | function isValidBin(bin) {
function stringifyPerson (line 52083) | function stringifyPerson(person) {
function parsePerson (line 52106) | function parsePerson(person) {
function normalizePerson (line 52135) | function normalizePerson(person) {
function extractDescription (line 52139) | function extractDescription(readme) {
function extractRepositoryUrl (line 52172) | function extractRepositoryUrl(repository) {
function getPlatformSpecificPackageFilename (line 52191) | function getPlatformSpecificPackageFilename(pkg) {
function getSystemParams (line 52198) | function getSystemParams() {
function getUid (line 52215) | function getUid() {
function isFakeRoot (line 52223) | function isFakeRoot() {
function isRootUser (line 52227) | function isRootUser(uid) {
function _load_semver (line 52246) | function _load_semver() {
function _interopRequireDefault (line 52250) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function satisfiesWithPrereleases (line 52257) | function satisfiesWithPrereleases(version, range, loose = false) {
function diffWithUnstable (line 52313) | function diffWithUnstable(version1, version2) {
function getDataDir (line 52383) | function getDataDir() {
function getCacheDir (line 52400) | function getCacheDir() {
function getConfigDir (line 52413) | function getConfigDir() {
function getLocalAppDataDir (line 52426) | function getLocalAppDataDir() {
function explodeHashedUrl (line 52441) | function explodeHashedUrl(url) {
function balanced (line 52463) | function balanced(a, b, str) {
function maybeMatch (line 52478) | function maybeMatch(reg, str) {
function range (line 52484) | function range(a, b, str) {
function numeric (line 52537) | function numeric(str) {
function escapeBraces (line 52543) | function escapeBraces(str) {
function unescapeBraces (line 52551) | function unescapeBraces(str) {
function parseCommaParts (line 52563) | function parseCommaParts(str) {
function expandTop (line 52590) | function expandTop(str) {
function identity (line 52607) | function identity(e) {
function embrace (line 52611) | function embrace(str) {
function isPadded (line 52614) | function isPadded(el) {
function lte (line 52618) | function lte(i, y) {
function gte (line 52621) | function gte(i, y) {
function expand (line 52625) | function expand(str, isTop) {
function preserveCamelCase (line 52736) | function preserveCamelCase(str) {
function Caseless (line 52804) | function Caseless (dict) {
function useColors (line 53887) | function useColors() {
function formatArgs (line 53931) | function formatArgs(args) {
function log (line 53971) | function log() {
function save (line 53986) | function save(namespaces) {
function load (line 54003) | function load() {
function localstorage (line 54034) | function localstorage() {
function useColors (line 54133) | function useColors() {
function formatArgs (line 54166) | function formatArgs(args) {
function getDate (line 54182) | function getDate() {
function log (line 54194) | function log() {
function save (line 54205) | function save(namespaces) {
function load (line 54222) | function load() {
function init (line 54233) | function init (debug) {
function __webpack_require__ (line 54270) | function __webpack_require__(moduleId) {
function parse (line 54341) | function parse(code, options, delegate) {
function parseModule (line 54388) | function parseModule(code, options, delegate) {
function parseScript (line 54394) | function parseScript(code, options, delegate) {
function tokenize (line 54400) | function tokenize(code, options, delegate) {
function CommentHandler (line 54439) | function CommentHandler() {
function __ (line 54674) | function __() { this.constructor = d; }
function getQualifiedElementName (line 54689) | function getQualifiedElementName(elementName) {
function JSXParser (line 54714) | function JSXParser(code, options, delegate) {
function JSXClosingElement (line 55275) | function JSXClosingElement(name) {
function JSXElement (line 55283) | function JSXElement(openingElement, children, closingElement) {
function JSXEmptyExpression (line 55293) | function JSXEmptyExpression() {
function JSXExpressionContainer (line 55300) | function JSXExpressionContainer(expression) {
function JSXIdentifier (line 55308) | function JSXIdentifier(name) {
function JSXMemberExpression (line 55316) | function JSXMemberExpression(object, property) {
function JSXAttribute (line 55325) | function JSXAttribute(name, value) {
function JSXNamespacedName (line 55334) | function JSXNamespacedName(namespace, name) {
function JSXOpeningElement (line 55343) | function JSXOpeningElement(name, selfClosing, attributes) {
function JSXSpreadAttribute (line 55353) | function JSXSpreadAttribute(argument) {
function JSXText (line 55361) | function JSXText(value, raw) {
function ArrayExpression (line 55401) | function ArrayExpression(elements) {
function ArrayPattern (line 55409) | function ArrayPattern(elements) {
function ArrowFunctionExpression (line 55417) | function ArrowFunctionExpression(params, body, expression) {
function AssignmentExpression (line 55430) | function AssignmentExpression(operator, left, right) {
function AssignmentPattern (line 55440) | function AssignmentPattern(left, right) {
function AsyncArrowFunctionExpression (line 55449) | function AsyncArrowFunctionExpression(params, body, expression) {
function AsyncFunctionDeclaration (line 55462) | function AsyncFunctionDeclaration(id, params, body) {
function AsyncFunctionExpression (line 55475) | function AsyncFunctionExpression(id, params, body) {
function AwaitExpression (line 55488) | function AwaitExpression(argument) {
function BinaryExpression (line 55496) | function BinaryExpression(operator, left, right) {
function BlockStatement (line 55507) | function BlockStatement(body) {
function BreakStatement (line 55515) | function BreakStatement(label) {
function CallExpression (line 55523) | function CallExpression(callee, args) {
function CatchClause (line 55532) | function CatchClause(param, body) {
function ClassBody (line 55541) | function ClassBody(body) {
function ClassDeclaration (line 55549) | function ClassDeclaration(id, superClass, body) {
function ClassExpression (line 55559) | function ClassExpression(id, superClass, body) {
function ComputedMemberExpression (line 55569) | function ComputedMemberExpression(object, property) {
function ConditionalExpression (line 55579) | function ConditionalExpression(test, consequent, alternate) {
function ContinueStatement (line 55589) | function ContinueStatement(label) {
function DebuggerStatement (line 55597) | function DebuggerStatement() {
function Directive (line 55604) | function Directive(expression, directive) {
function DoWhileStatement (line 55613) | function DoWhileStatement(body, test) {
function EmptyStatement (line 55622) | function EmptyStatement() {
function ExportAllDeclaration (line 55629) | function ExportAllDeclaration(source) {
function ExportDefaultDeclaration (line 55637) | function ExportDefaultDeclaration(declaration) {
function ExportNamedDeclaration (line 55645) | function ExportNamedDeclaration(declaration, specifiers, source) {
function ExportSpecifier (line 55655) | function ExportSpecifier(local, exported) {
function ExpressionStatement (line 55664) | function ExpressionStatement(expression) {
function ForInStatement (line 55672) | function ForInStatement(left, right, body) {
function ForOfStatement (line 55683) | function ForOfStatement(left, right, body) {
function ForStatement (line 55693) | function ForStatement(init, test, update, body) {
function FunctionDeclaration (line 55704) | function FunctionDeclaration(id, params, body, generator) {
function FunctionExpression (line 55717) | function FunctionExpression(id, params, body, generator) {
function Identifier (line 55730) | function Identifier(name) {
function IfStatement (line 55738) | function IfStatement(test, consequent, alternate) {
function ImportDeclaration (line 55748) | function ImportDeclaration(specifiers, source) {
function ImportDefaultSpecifier (line 55757) | function ImportDefaultSpecifier(local) {
function ImportNamespaceSpecifier (line 55765) | function ImportNamespaceSpecifier(local) {
function ImportSpecifier (line 55773) | function ImportSpecifier(local, imported) {
function LabeledStatement (line 55782) | function LabeledStatement(label, body) {
function Literal (line 55791) | function Literal(value, raw) {
function MetaProperty (line 55800) | function MetaProperty(meta, property) {
function MethodDefinition (line 55809) | function MethodDefinition(key, computed, value, kind, isStatic) {
function Module (line 55821) | function Module(body) {
function NewExpression (line 55830) | function NewExpression(callee, args) {
function ObjectExpression (line 55839) | function ObjectExpression(properties) {
function ObjectPattern (line 55847) | function ObjectPattern(properties) {
function Property (line 55855) | function Property(kind, key, computed, value, method, shorthand) {
function RegexLiteral (line 55868) | function RegexLiteral(value, raw, pattern, flags) {
function RestElement (line 55878) | function RestElement(argument) {
function ReturnStatement (line 55886) | function ReturnStatement(argument) {
function Script (line 55894) | function Script(body) {
function SequenceExpression (line 55903) | function SequenceExpression(expressions) {
function SpreadElement (line 55911) | function SpreadElement(argument) {
function StaticMemberExpression (line 55919) | function StaticMemberExpression(object, property) {
function Super (line 55929) | function Super() {
function SwitchCase (line 55936) | function SwitchCase(test, consequent) {
function SwitchStatement (line 55945) | function SwitchStatement(discriminant, cases) {
function TaggedTemplateExpression (line 55954) | function TaggedTemplateExpression(tag, quasi) {
function TemplateElement (line 55963) | function TemplateElement(value, tail) {
function TemplateLiteral (line 55972) | function TemplateLiteral(quasis, expressions) {
function ThisExpression (line 55981) | function ThisExpression() {
function ThrowStatement (line 55988) | function ThrowStatement(argument) {
function TryStatement (line 55996) | function TryStatement(block, handler, finalizer) {
function UnaryExpression (line 56006) | function UnaryExpression(operator, argument) {
function UpdateExpression (line 56016) | function UpdateExpression(operator, argument, prefix) {
function VariableDeclaration (line 56026) | function VariableDeclaration(declarations, kind) {
function VariableDeclarator (line 56035) | function VariableDeclarator(id, init) {
function WhileStatement (line 56044) | function WhileStatement(test, body) {
function WithStatement (line 56053) | function WithStatement(object, body) {
function YieldExpression (line 56062) | function YieldExpression(argument, delegate) {
function Parser (line 56087) | function Parser(code, options, delegate) {
method constructor (line 34569) | constructor(input, fileLoc = 'lockfile') {
method onComment (line 34575) | onComment(token) {
method next (line 34592) | next() {
method unexpected (line 34609) | unexpected(msg = 'Unexpected token') {
method expect (line 34613) | expect(tokType) {
method eat (line 34621) | eat(tokType) {
method parse (line 34630) | parse(indent = 0) {
function assert (line 59231) | function assert(condition, message) {
function ErrorHandler (line 59248) | function ErrorHandler() {
function hexValue (line 59381) | function hexValue(ch) {
function octalValue (line 59384) | function octalValue(ch) {
function Scanner (line 59388) | function Scanner(code, handler) {
function Reader (line 60815) | function Reader() {
function Tokenizer (line 60882) | function Tokenizer(code, config) {
function rethrow (line 61274) | function rethrow() {
function maybeCallback (line 61309) | function maybeCallback(cb) {
function start (line 61353) | function start() {
function start (line 61455) | function start() {
function LOOP (line 61477) | function LOOP() {
function gotStat (line 61505) | function gotStat(err, stat) {
function gotTarget (line 61534) | function gotTarget(err, target, base) {
function gotResolvedLink (line 61542) | function gotResolvedLink(resolvedLink) {
function globSync (line 61574) | function globSync (pattern, options) {
function GlobSync (line 61582) | function GlobSync (pattern, options) {
function inflight (line 62069) | function inflight (key, cb) {
function makeres (line 62079) | function makeres (key) {
function slice (line 62110) | function slice (args) {
function deprecated (line 62286) | function deprecated(name) {
function compileStyleMap (line 62383) | function compileStyleMap(schema, map) {
function encodeHex (line 62410) | function encodeHex(character) {
function State (line 62431) | function State(options) {
function indentString (line 62455) | function indentString(string, spaces) {
function generateNextLine (line 62481) | function generateNextLine(state, level) {
function testImplicitResolving (line 62485) | function testImplicitResolving(state, str) {
function isWhitespace (line 62500) | function isWhitespace(c) {
function isPrintable (line 62508) | function isPrintable(c) {
function isPlainSafe (line 62516) | function isPlainSafe(c) {
function isPlainSafeFirst (line 62532) | function isPlainSafeFirst(c) {
function needIndentIndicator (line 62563) | function needIndentIndicator(string) {
function chooseScalarStyle (line 62581) | function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineW...
function writeScalar (line 62649) | function writeScalar(state, string, level, iskey) {
function blockHeader (line 62698) | function blockHeader(string, indentPerLevel) {
function dropEndingNewline (line 62710) | function dropEndingNewline(string) {
function foldString (line 62716) | function foldString(string, width) {
function foldLine (line 62753) | function foldLine(line, width) {
function escapeString (line 62793) | function escapeString(string) {
function writeFlowSequence (line 62819) | function writeFlowSequence(state, level, object) {
function writeBlockSequence (line 62837) | function writeBlockSequence(state, level, object, compact) {
function writeFlowMapping (line 62864) | function writeFlowMapping(state, level, object) {
function writeBlockMapping (line 62904) | function writeBlockMapping(state, level, object, compact) {
function detectType (line 62978) | function detectType(state, object, explicit) {
function writeNode (line 63016) | function writeNode(state, level, object, block, compact, iskey) {
function getDuplicateReferences (line 63091) | function getDuplicateReferences(object, state) {
function inspectNode (line 63105) | function inspectNode(object, objects, duplicatesIndexes) {
function dump (line 63134) | function dump(input, options) {
function safeDump (line 63146) | function safeDump(input, options) {
function _class (line 63191) | function _class(obj) { return Object.prototype.toString.call(obj); }
function is_EOL (line 63193) | function is_EOL(c) {
function is_WHITE_SPACE (line 63197) | function is_WHITE_SPACE(c) {
function is_WS_OR_EOL (line 63201) | function is_WS_OR_EOL(c) {
function is_FLOW_INDICATOR (line 63208) | function is_FLOW_INDICATOR(c) {
function fromHexCode (line 63216) | function fromHexCode(c) {
function escapedHexLen (line 63233) | function escapedHexLen(c) {
function fromDecimalCode (line 63240) | function fromDecimalCode(c) {
function simpleEscapeSequence (line 63248) | function simpleEscapeSequence(c) {
function charFromCodepoint (line 63270) | function charFromCodepoint(c) {
function State (line 63290) | function State(input, options) {
function generateError (line 63324) | function generateError(state, message) {
function throwError (line 63330) | function throwError(state, message) {
function throwWarning (line 63334) | function throwWarning(state, message) {
function captureSegment (line 63404) | function captureSegment(state, start, end, checkJson) {
function mergeMappings (line 63426) | function mergeMappings(state, destination, source, overridableKeys) {
function storeMappingPair (line 63445) | function storeMappingPair(state, _result, overridableKeys, keyTag, keyNo...
function readLineBreak (line 63502) | function readLineBreak(state) {
function skipSeparationSpace (line 63522) | function skipSeparationSpace(state, allowComments, checkIndent) {
function testDocumentSeparator (line 63560) | function testDocumentSeparator(state) {
function writeFoldedLines (line 63584) | function writeFoldedLines(state, count) {
function readPlainScalar (line 63593) | function readPlainScalar(state, nodeIndent, withinFlowCollection) {
function readSingleQuotedScalar (line 63702) | function readSingleQuotedScalar(state, nodeIndent) {
function readDoubleQuotedScalar (line 63747) | function readDoubleQuotedScalar(state, nodeIndent) {
function readFlowCollection (line 63826) | function readFlowCollection(state, nodeIndent) {
function readBlockScalar (line 63931) | function readBlockScalar(state, nodeIndent) {
function readBlockSequence (line 64074) | function readBlockSequence(state, nodeIndent) {
function readBlockMapping (line 64136) | function readBlockMapping(state, nodeIndent, flowIndent) {
function readTagProperty (line 64291) | function readTagProperty(state) {
function readAnchorProperty (line 64385) | function readAnchorProperty(state) {
function readAlias (line 64412) | function readAlias(state) {
function composeNode (line 64442) | function composeNode(state, parentIndent, nodeContext, allowToSeek, allo...
function readDocument (line 64596) | function readDocument(state) {
function loadDocuments (line 64704) | function loadDocuments(input, options) {
function loadAll (line 64740) | function loadAll(input, iterator, options) {
function load (line 64753) | function load(input, options) {
function safeLoadAll (line 64766) | function safeLoadAll(input, output, options) {
function safeLoad (line 64775) | function safeLoad(input, options) {
function Mark (line 64797) | function Mark(name, buffer, position, line, column) {
function resolveYamlBinary (line 64893) | function resolveYamlBinary(data) {
function constructYamlBinary (line 64915) | function constructYamlBinary(data) {
function representYamlBinary (line 64959) | function representYamlBinary(object /*, style*/) {
function isBinary (line 65001) | function isBinary(object) {
function resolveYamlBoolean (line 65023) | function resolveYamlBoolean(data) {
function constructYamlBoolean (line 65032) | function constructYamlBoolean(data) {
function isBoolean (line 65038) | function isBoolean(object) {
function resolveYamlFloat (line 65079) | function resolveYamlFloat(data) {
function constructYamlFloat (line 65092) | function constructYamlFloat(data) {
function representYamlFloat (line 65131) | function representYamlFloat(object, style) {
function isFloat (line 65164) | function isFloat(object) {
function isHexCode (line 65189) | function isHexCode(c) {
function isOctCode (line 65195) | function isOctCode(c) {
function isDecCode (line 65199) | function isDecCode(c) {
function resolveYamlInteger (line 65203) | function resolveYamlInteger(data) {
function constructYamlInteger (line 65289) | function constructYamlInteger(data) {
function isInteger (line 65332) | function isInteger(object) {
function resolveJavascriptFunction (line 65386) | function resolveJavascriptFunction(data) {
function constructJavascriptFunction (line 65407) | function constructJavascriptFunction(data) {
function representJavascriptFunction (line 65441) | function representJavascriptFunction(object /*, style*/) {
function isFunction (line 65445) | function isFunction(object) {
function resolveJavascriptRegExp (line 65467) | function resolveJavascriptRegExp(data) {
function constructJavascriptRegExp (line 65488) | function constructJavascriptRegExp(data) {
function representJavascriptRegExp (line 65502) | function representJavascriptRegExp(object /*, style*/) {
function isRegExp (line 65512) | function isRegExp(object) {
function resolveJavascriptUndefined (line 65534) | function resolveJavascriptUndefined() {
function constructJavascriptUndefined (line 65538) | function constructJavascriptUndefined() {
function representJavascriptUndefined (line 65543) | function representJavascriptUndefined() {
function isUndefined (line 65547) | function isUndefined(object) {
function resolveYamlMerge (line 65584) | function resolveYamlMerge(data) {
function resolveYamlNull (line 65603) | function resolveYamlNull(data) {
function constructYamlNull (line 65612) | function constructYamlNull() {
function isNull (line 65616) | function isNull(object) {
function resolveYamlOmap (line 65647) | function resolveYamlOmap(data) {
function constructYamlOmap (line 65675) | function constructYamlOmap(data) {
function resolveYamlPairs (line 65697) | function resolveYamlPairs(data) {
function constructYamlPairs (line 65720) | function constructYamlPairs(data) {
function resolveYamlSet (line 65772) | function resolveYamlSet(data) {
function constructYamlSet (line 65786) | function constructYamlSet(data) {
function resolveYamlTimestamp (line 65838) | function resolveYamlTimestamp(data) {
function constructYamlTimestamp (line 65845) | function constructYamlTimestamp(data) {
function representYamlTimestamp (line 65894) | function representYamlTimestamp(object /*, style*/) {
function parse (line 66113) | function parse(str) {
function fmtShort (line 66174) | function fmtShort(ms) {
function fmtLong (line 66198) | function fmtLong(ms) {
function plural (line 66210) | function plural(ms, n, name) {
function toObject (line 66244) | function toObject(val) {
function shouldUseNative (line 66252) | function shouldUseNative() {
function hasOwnProperty (line 66348) | function hasOwnProperty(obj, prop) {
function isEmpty (line 66356) | function isEmpty(value){
function toString (line 66373) | function toString(type){
function isObject (line 66377) | function isObject(obj){
function isBoolean (line 66386) | function isBoolean(obj){
function getKey (line 66390) | function getKey(key){
function factory (line 66398) | function factory(options) {
function paramsHaveRequestBody (line 66640) | function paramsHaveRequestBody (params) {
function safeStringify (line 66649) | function safeStringify (obj, replacer) {
function md5 (line 66659) | function md5 (str) {
function isReadStream (line 66663) | function isReadStream (rs) {
function toBase64 (line 66667) | function toBase64 (str) {
function copy (line 66671) | function copy (obj) {
function version (line 66679) | function version () {
function specifierIncluded (line 66704) | function specifierIncluded(specifier) {
function matchesRange (line 66726) | function matchesRange(range) {
function versionIncluded (line 66735) | function versionIncluded(specifierValue) {
function defaults (line 66780) | function defaults (options) {
function rimraf (line 66804) | function rimraf (p, options, cb) {
function rimraf_ (line 66888) | function rimraf_ (p, options, cb) {
function fixWinEPERM (line 66922) | function fixWinEPERM (p, options, er, cb) {
function fixWinEPERMSync (line 66944) | function fixWinEPERMSync (p, options, er) {
function rmdir (line 66974) | function rmdir (p, options, originalEr, cb) {
function rmkids (line 66994) | function rmkids(p, options, cb) {
function rimrafSync (line 67022) | function rimrafSync (p, options) {
function rmdirSync (line 67080) | function rmdirSync (p, options, originalEr) {
function rmkidsSync (line 67098) | function rmkidsSync (p, options) {
function ReplaySubject (line 67150) | function ReplaySubject(bufferSize, windowTime, scheduler) {
function ReplayEvent (line 67250) | function ReplayEvent(time, value) {
function combineLatest (line 67281) | function combineLatest() {
function CombineLatestOperator (line 67300) | function CombineLatestOperator(resultSelector) {
function CombineLatestSubscriber (line 67311) | function CombineLatestSubscriber(destination, resultSelector) {
function defer (line 67389) | function defer(observableFactory) {
function of (line 67421) | function of() {
function scalar (line 67454) | function scalar(value) {
function throwError (line 67475) | function throwError(error, scheduler) {
function dispatch (line 67483) | function dispatch(_a) {
function zip (line 67513) | function zip() {
function ZipOperator (line 67525) | function ZipOperator(resultSelector) {
function ZipSubscriber (line 67536) | function ZipSubscriber(destination, resultSelector, values) {
function StaticIterator (line 67634) | function StaticIterator(iterator) {
function StaticArrayIterator (line 67653) | function StaticArrayIterator(array) {
function ZipBufferIterator (line 67677) | function ZipBufferIterator(destination, parent, observable) {
function mergeAll (line 67736) | function mergeAll(concurrent) {
function refCount (line 67756) | function refCount() {
function RefCountOperator (line 67762) | function RefCountOperator(connectable) {
function RefCountSubscriber (line 67779) | function RefCountSubscriber(destination, connectable) {
function scan (line 67824) | function scan(accumulator, seed) {
function ScanOperator (line 67834) | function ScanOperator(accumulator, seed, hasSeed) {
function ScanSubscriber (line 67849) | function ScanSubscriber(destination, accumulator, _seed, hasSeed) {
function switchMap (line 67913) | function switchMap(project, resultSelector) {
function SwitchMapOperator (line 67920) | function SwitchMapOperator(project) {
function SwitchMapSubscriber (line 67930) | function SwitchMapSubscriber(destination, project) {
function take (line 67999) | function take(count) {
function TakeOperator (line 68010) | function TakeOperator(total) {
function TakeSubscriber (line 68023) | function TakeSubscriber(destination, total) {
function takeLast (line 68060) | function takeLast(count) {
function TakeLastOperator (line 68071) | function TakeLastOperator(total) {
function TakeLastSubscriber (line 68084) | function TakeLastSubscriber(destination, total) {
function canReportError (line 68145) | function canReportError(observer) {
function hostReportError (line 68170) | function hostReportError(err) {
function pipe (line 68186) | function pipe() {
function pipeFromArray (line 68193) | function pipeFromArray(fns) {
function DiffieHellman (line 68233) | function DiffieHellman(key) {
function X9ECParameters (line 68494) | function X9ECParameters(name) {
function ECPublic (line 68516) | function ECPublic(params, buffer) {
function ECPrivate (line 68523) | function ECPrivate(params, buffer) {
function generateED25519 (line 68533) | function generateED25519() {
function generateECDSA (line 68554) | function generateECDSA(curve) {
function read (line 68664) | function read(buf, options) {
function readRFC3110 (line 68692) | function readRFC3110(keyString) {
function elementToBuf (line 68745) | function elementToBuf(e) {
function readDNSSECRSAPrivateKey (line 68749) | function readDNSSECRSAPrivateKey(elements) {
function readDNSSECPrivateKey (line 68789) | function readDNSSECPrivateKey(alg, elements) {
function dnssecTimestamp (line 68820) | function dnssecTimestamp(date) {
function rsaAlgFromOptions (line 68829) | function rsaAlgFromOptions(opts) {
function writeRSA (line 68841) | function writeRSA(key, options) {
function writeECDSA (line 68874) | function writeECDSA(key, options) {
function write (line 68897) | function write(key, options) {
function read (line 68946) | function read(buf, options) {
function write (line 68950) | function write(key, options) {
function readMPInt (line 68955) | function readMPInt(der, nm) {
function readPkcs1 (line 68961) | function readPkcs1(alg, type, der) {
function readPkcs1RSAPublic (line 68992) | function readPkcs1RSAPublic(der) {
function readPkcs1RSAPrivate (line 69009) | function readPkcs1RSAPrivate(der) {
function readPkcs1DSAPrivate (line 69041) | function readPkcs1DSAPrivate(der) {
function readPkcs1EdDSAPrivate (line 69066) | function readPkcs1EdDSAPrivate(der) {
function readPkcs1DSAPublic (line 69091) | function readPkcs1DSAPublic(der) {
function readPkcs1ECDSAPublic (line 69110) | function readPkcs1ECDSAPublic(der) {
function readPkcs1ECDSAPrivate (line 69144) | function readPkcs1ECDSAPrivate(der) {
function writePkcs1 (line 69171) | function writePkcs1(der, key) {
function writePkcs1RSAPublic (line 69206) | function writePkcs1RSAPublic(der, key) {
function writePkcs1RSAPrivate (line 69211) | function writePkcs1RSAPrivate(der, key) {
function writePkcs1DSAPrivate (line 69227) | function writePkcs1DSAPrivate(der, key) {
function writePkcs1DSAPublic (line 69238) | function writePkcs1DSAPublic(der, key) {
function writePkcs1ECDSAPublic (line 69245) | function writePkcs1ECDSAPublic(der, key) {
function writePkcs1ECDSAPrivate (line 69260) | function writePkcs1ECDSAPrivate(der, key) {
function writePkcs1EdDSAPrivate (line 69279) | function writePkcs1EdDSAPrivate(der, key) {
function writePkcs1EdDSAPublic (line 69294) | function writePkcs1EdDSAPublic(der, key) {
function _load_constants (line 69477) | function _load_constants() {
function _load_access (line 69483) | function _load_access() {
function _load_add (line 69489) | function _load_add() {
function _load_audit (line 69495) | function _load_audit() {
function _load_autoclean (line 69501) | function _load_autoclean() {
function _load_bin (line 69507) | function _load_bin() {
function _load_cache (line 69513) | function _load_cache() {
function _load_check (line 69519) | function _load_check() {
function _load_config (line 69525) | function _load_config() {
function _load_create (line 69531) | function _load_create() {
function _load_exec (line 69537) | function _load_exec() {
function _load_generateLockEntry (line 69543) | function _load_generateLockEntry() {
function _load_global (line 69549) | function _load_global() {
function _load_help (line 69555) | function _load_help() {
function _load_import (line 69561) | function _load_import() {
function _load_info (line 69567) | function _load_info() {
function _load_init (line 69573) | function _load_init() {
function _load_install (line 69579) | function _load_install() {
function _load_licenses (line 69585) | function _load_licenses() {
function _load_link (line 69591) | function _load_link() {
function _load_login (line 69597) | function _load_login() {
function _load_logout (line 69603) | function _load_logout() {
function _load_list (line 69609) | function _load_list() {
function _load_node (line 69615) | function _load_node() {
function _load_outdated (line 69621) | function _load_outdated() {
function _load_owner (line 69627) | function _load_owner() {
function _load_pack (line 69633) | function _load_pack() {
function _load_policies (line 69639) | function _load_policies() {
function _load_publish (line 69645) | function _load_publish() {
function _load_remove (line 69651) | function _load_remove() {
function _load_run (line 69657) | function _load_run() {
function _load_tag (line 69663) | function _load_tag() {
function _load_team (line 69669) | function _load_team() {
function _load_unplug (line 69675) | function _load_unplug() {
function _load_unlink (line 69681) | function _load_unlink() {
function _load_upgrade (line 69687) | function _load_upgrade() {
function _load_version (line 69693) | function _load_version() {
function _load_versions (line 69699) | function _load_versions() {
function _load_why (line 69705) | function _load_why() {
function _load_workspaces (line 69711) | function _load_workspaces() {
function _load_workspace (line 69717) | function _load_workspace() {
function _load_upgradeInteractive (line 69723) | function _load_upgradeInteractive() {
function _load_useless (line 69729) | function _load_useless() {
function _load_aliases (line 69735) | function _load_aliases() {
function _interopRequireDefault (line 69739) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function _interopRequireWildcard (line 69741) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _load_fs (line 69823) | function _load_fs() {
function _load_path (line 69829) | function _load_path() {
function _load_commander (line 69835) | function _load_commander() {
function _load_lockfile (line 69841) | function _load_lockfile() {
function _load_rc (line 69847) | function _load_rc() {
function _interopRequireWildcard (line 69851) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 69853) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function getRcConfigForCwd (line 69861) | function getRcConfigForCwd(cwd, args) {
function getRcConfigForFolder (line 69881) | function getRcConfigForFolder(cwd) {
function loadRcFile (line 69891) | function loadRcFile(fileText, filePath) {
function buildRcArgs (line 69912) | function buildRcArgs(cwd, args) {
function extractCwdArg (line 69949) | function extractCwdArg(args) {
function getRcArgs (line 69962) | function getRcArgs(commandName, args, previousCwds = []) {
function boolify (line 70001) | function boolify(val) {
function boolifyWithDefault (line 70005) | function boolifyWithDefault(val, defaultResult) {
function isOffline (line 70025) | function isOffline() {
function Option (line 70118) | function Option(flags, description) {
function Command (line 70173) | function Command(name) {
function camelcase (line 71242) | function camelcase(flag) {
function pad (line 71257) | function pad(str, width) {
function outputHelpIfNecessary (line 71270) | function outputHelpIfNecessary(cmd, options) {
function humanReadableArgName (line 71288) | function humanReadableArgName(arg) {
function exists (line 71297) | function exists(file) {
function SchemaObject (line 71319) | function SchemaObject(obj) {
function $shouldUseGroup (line 72180) | function $shouldUseGroup($rulesGroup) {
function $shouldUseRule (line 72186) | function $shouldUseRule($rule) {
function $ruleImplementsSomeKeyword (line 72190) | function $ruleImplementsSomeKeyword($rule) {
function abort (line 72218) | function abort(state)
function clean (line 72232) | function clean(key)
function async (line 72257) | function async(callback)
function iterate (line 72300) | function iterate(list, iterator, state, callback)
function runJob (line 72343) | function runJob(iterator, key, item, callback)
function state (line 72378) | function state(list, sortMethod)
function terminator (line 72422) | function terminator(callback)
function serialOrdered (line 72464) | function serialOrdered(list, iterator, sortMethod, callback)
function ascending (line 72503) | function ascending(a, b)
function descending (line 72515) | function descending(a, b)
function _load_asyncToGenerator (line 72550) | function _load_asyncToGenerator() {
function _load_promise (line 72604) | function _load_promise() {
function _load_hoistedTreeBuilder (line 72610) | function _load_hoistedTreeBuilder() {
function _load_getTransitiveDevDependencies (line 72616) | function _load_getTransitiveDevDependencies() {
function _load_install (line 72622) | function _load_install() {
function _load_lockfile (line 72628) | function _load_lockfile() {
function _load_constants (line 72634) | function _load_constants() {
function _interopRequireDefault (line 72638) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function setFlags (line 72644) | function setFlags(commander) {
function hasWrapper (line 72652) | function hasWrapper(commander, args) {
class Audit (line 72656) | class Audit {
method constructor (line 72658) | constructor(config, reporter, options) {
method _mapHoistedNodes (line 72666) | _mapHoistedNodes(auditNode, hoistedNodes, transitiveDevDeps) {
method _mapHoistedTreesToAuditTree (line 72714) | _mapHoistedTreesToAuditTree(manifest, hoistedTrees, transitiveDevDeps) {
method _fetchAudit (line 72737) | _fetchAudit(auditTree) {
method _insertWorkspacePackagesIntoManifest (line 72769) | _insertWorkspacePackagesIntoManifest(manifest, resolver) {
method performAudit (line 72780) | performAudit(manifest, lockfile, resolver, linker, patterns) {
method summary (line 72793) | summary() {
method report (line 72800) | report() {
function _load_asyncToGenerator (line 72867) | function _load_asyncToGenerator() {
function _load_index (line 73089) | function _load_index() {
function _load_filter (line 73095) | function _load_filter() {
function _load_constants (line 73101) | function _load_constants() {
function _load_fs (line 73107) | function _load_fs() {
function _interopRequireWildcard (line 73111) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 73113) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function setFlags (line 73169) | function setFlags(commander) {
function hasWrapper (line 73176) | function hasWrapper(commander) {
function _load_asyncToGenerator (line 73194) | function _load_asyncToGenerator() {
function _load_buildSubCommands (line 73374) | function _load_buildSubCommands() {
function _load_fs (line 73380) | function _load_fs() {
function _interopRequireWildcard (line 73384) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 73386) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function hasWrapper (line 73392) | function hasWrapper(flags, args) {
function _getMetadataWithPath (line 73396) | function _getMetadataWithPath(getMetadataFn, paths) {
method ls (line 73404) | ls(config, reporter, flags, args) {
method dir (line 73412) | dir(config, reporter) {
function setFlags (line 73422) | function setFlags(commander) {
function _load_asyncToGenerator (line 73442) | function _load_asyncToGenerator() {
function reportError (line 73449) | function reportError(msg, ...vars) {
function reportError (line 73572) | function reportError(msg, ...vars) {
function humaniseLocation (line 73639) | function humaniseLocation(loc) {
function reportError (line 73655) | function reportError(msg, ...vars) {
function _load_errors (line 73891) | function _load_errors() {
function _load_integrityChecker (line 73897) | function _load_integrityChecker() {
function _load_integrityChecker2 (line 73903) | function _load_integrityChecker2() {
function _load_lockfile (line 73909) | function _load_lockfile() {
function _load_fs (line 73915) | function _load_fs() {
function _load_install (line 73921) | function _load_install() {
function _load_normalizePattern (line 73927) | function _load_normalizePattern() {
function _interopRequireWildcard (line 73931) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 73933) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function hasWrapper (line 73941) | function hasWrapper(commander) {
function setFlags (line 73945) | function setFlags(commander) {
function _load_asyncToGenerator (line 73965) | function _load_asyncToGenerator() {
function _load_errors (line 74074) | function _load_errors() {
function _load_fs (line 74080) | function _load_fs() {
function _load_global (line 74086) | function _load_global() {
function _interopRequireWildcard (line 74090) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 74092) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function hasWrapper (line 74099) | function hasWrapper(commander, args) {
function setFlags (line 74103) | function setFlags(commander) {
function _load_asyncToGenerator (line 74121) | function _load_asyncToGenerator() {
function _load_install (line 74367) | function _load_install() {
function _load_lockfile (line 74373) | function _load_lockfile() {
function _interopRequireDefault (line 74377) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function buildCount (line 74385) | function buildCount(trees) {
function getParent (line 74417) | function getParent(key, treesByKey) {
function hasWrapper (line 74422) | function hasWrapper(commander, args) {
function setFlags (line 74426) | function setFlags(commander) {
function getReqDepth (line 74432) | function getReqDepth(inputDepth) {
function filterTree (line 74436) | function filterTree(tree, filters, pattern = '') {
function getDevDeps (line 74449) | function getDevDeps(manifest) {
function _load_extends (line 74471) | function _load_extends() {
function _load_asyncToGenerator (line 74477) | function _load_asyncToGenerator() {
function _load_lockfile (line 74618) | function _load_lockfile() {
function _load_index (line 74624) | function _load_index() {
function _load_install (line 74630) | function _load_install() {
function _load_errors (line 74636) | function _load_errors() {
function _load_index2 (line 74642) | function _load_index2() {
function _load_fs (line 74648) | function _load_fs() {
function _load_constants (line 74654) | function _load_constants() {
function _interopRequireWildcard (line 74658) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 74660) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function setFlags (line 74668) | function setFlags(commander) {
function hasWrapper (line 74674) | function hasWrapper(commander, args) {
function _load_asyncToGenerator (line 74692) | function _load_asyncToGenerator() {
function runCommand (line 74949) | function runCommand([action, ...args]) {
function _load_executeLifecycleScript (line 75010) | function _load_executeLifecycleScript() {
function _load_dynamicRequire (line 75016) | function _load_dynamicRequire() {
function _load_hooks (line 75022) | function _load_hooks() {
function _load_errors (line 75028) | function _load_errors() {
function _load_packageCompatibility (line 75034) | function _load_packageCompatibility() {
function _load_fs (line 75040) | function _load_fs() {
function _load_constants (line 75046) | function _load_constants() {
function _interopRequireWildcard (line 75050) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 75052) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function toObject (line 75066) | function toObject(input) {
function setFlags (line 75091) | function setFlags(commander) {
function hasWrapper (line 75095) | function hasWrapper(commander, args) {
function _load_asyncToGenerator (line 75113) | function _load_asyncToGenerator() {
function _load_buildSubCommands (line 75208) | function _load_buildSubCommands() {
function _load_login (line 75214) | function _load_login() {
function _load_npmRegistry (line 75220) | function _load_npmRegistry() {
function _load_errors (line 75226) | function _load_errors() {
function _load_normalizePattern (line 75232) | function _load_normalizePattern() {
function _load_validate (line 75238) | function _load_validate() {
function _interopRequireDefault (line 75242) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function setFlags (line 75244) | function setFlags(commander) {
method add (line 75249) | add(config, reporter, flags, args) {
method rm (line 75296) | rm(config, reporter, flags, args) {
method remove (line 75303) | remove(config, reporter, flags, args) {
method ls (line 75309) | ls(config, reporter, flags, args) {
method list (line 75316) | list(config, reporter, flags, args) {
function _load_extends (line 75344) | function _load_extends() {
function _load_asyncToGenerator (line 75350) | function _load_asyncToGenerator() {
function _load_inquirer (line 75561) | function _load_inquirer() {
function _load_lockfile (line 75567) | function _load_lockfile() {
function _load_add (line 75573) | function _load_add() {
function _load_upgrade (line 75579) | function _load_upgrade() {
function _load_colorForVersions (line 75585) | function _load_colorForVersions() {
function _load_colorizeDiff (line 75591) | function _load_colorizeDiff() {
function _load_install (line 75597) | function _load_install() {
function _interopRequireDefault (line 75601) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function setFlags (line 75607) | function setFlags(commander) {
function hasWrapper (line 75617) | function hasWrapper(commander, args) {
function _load_asyncToGenerator (line 75635) | function _load_asyncToGenerator() {
function runLifecycle (line 75655) | function runLifecycle(lifecycle) {
function isCommitHooksDisabled (line 75663) | function isCommitHooksDisabled() {
function _load_index (line 75841) | function _load_index() {
function _load_executeLifecycleScript (line 75847) | function _load_executeLifecycleScript() {
function _load_errors (line 75853) | function _load_errors() {
function _load_gitSpawn (line 75859) | function _load_gitSpawn() {
function _load_fs (line 75865) | function _load_fs() {
function _load_map (line 75871) | function _load_map() {
function _interopRequireWildcard (line 75875) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 75877) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function isValidNewVersion (line 75884) | function isValidNewVersion(oldVersion, newVersion, looseSemver, identifi...
function setFlags (line 75888) | function setFlags(commander) {
function hasWrapper (line 75904) | function hasWrapper(commander, args) {
function _load_extends (line 75922) | function _load_extends() {
function _load_asyncToGenerator (line 75928) | function _load_asyncToGenerator() {
function _load_errors (line 75934) | function _load_errors() {
function _load_constants (line 75940) | function _load_constants() {
function _load_baseFetcher (line 75946) | function _load_baseFetcher() {
function _load_fs (line 75952) | function _load_fs() {
function _load_misc (line 75958) | function _load_misc() {
function _load_normalizeUrl (line 75964) | function _load_normalizeUrl() {
function _interopRequireWildcard (line 75968) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 75970) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class TarballFetcher (line 76004) | class TarballFetcher extends (_baseFetcher || _load_baseFetcher()).defau...
method constructor (line 76005) | constructor(...args) {
method setupMirrorFromCache (line 76011) | setupMirrorFromCache() {
method getTarballCachePath (line 76030) | getTarballCachePath() {
method getTarballMirrorPath (line 76034) | getTarballMirrorPath() {
method createExtractor (line 76060) | createExtractor(resolve, reject, tarballPath) {
method getLocalPaths (line 76159) | getLocalPaths(override) {
method fetchFromLocal (line 76165) | fetchFromLocal(override) {
method fetchFromExternal (line 76198) | fetchFromExternal() {
method requestHeaders (line 76254) | requestHeaders() {
method _fetch (line 76272) | _fetch() {
method _findIntegrity (line 76287) | _findIntegrity({ hashOnly }) {
method _supportedIntegrity (line 76297) | _supportedIntegrity({ hashOnly }) {
class LocalTarballFetcher (line 76335) | class LocalTarballFetcher extends TarballFetcher {
method _fetch (line 76336) | _fetch() {
function urlParts (line 76344) | function urlParts(requestUrl) {
function _load_misc (line 76365) | function _load_misc() {
class PackageReference (line 76369) | class PackageReference {
method constructor (line 76370) | constructor(request, info, remote) {
method setFresh (line 76399) | setFresh(fresh) {
method addLocation (line 76403) | addLocation(loc) {
method addRequest (line 76409) | addRequest(request) {
method prune (line 76415) | prune() {
method addDependencies (line 76435) | addDependencies(deps) {
method setPermission (line 76439) | setPermission(key, val) {
method hasPermission (line 76443) | hasPermission(key) {
method addPattern (line 76451) | addPattern(pattern, manifest) {
method addOptional (line 76479) | addOptional(optional) {
function _load_asyncToGenerator (line 76505) | function _load_asyncToGenerator() {
function _load_index (line 76511) | function _load_index() {
function _load_packageRequest (line 76517) | function _load_packageRequest() {
function _load_normalizePattern (line 76523) | function _load_normalizePattern() {
function _load_requestManager (line 76529) | function _load_requestManager() {
function _load_blockingQueue (line 76535) | function _load_blockingQueue() {
function _load_lockfile (line 76541) | function _load_lockfile() {
function _load_map (line 76547) | function _load_map() {
function _load_workspaceLayout (line 76553) | function _load_workspaceLayout() {
function _load_resolutionMap (line 76559) | function _load_resolutionMap() {
function _load_resolutionMap2 (line 76565) | function _load_resolutionMap2() {
function _interopRequireDefault (line 76569) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class PackageResolver (line 76575) | class PackageResolver {
method constructor (line 76576) | constructor(config, lockfile, resolutionMap = new (_resolutionMap || _...
method isNewPattern (line 76632) | isNewPattern(pattern) {
method updateManifest (line 76636) | updateManifest(ref, newPkg) {
method updateManifests (line 76666) | updateManifests(newPkgs) {
method dedupePatterns (line 76711) | dedupePatterns(patterns) {
method getTopologicalManifests (line 76745) | getTopologicalManifests(seedPatterns) {
method getLevelOrderManifests (line 76786) | getLevelOrderManifests(seedPatterns) {
method getAllDependencyNamesByLevelOrder (line 76847) | getAllDependencyNamesByLevelOrder(seedPatterns) {
method getAllInfoForPackageName (line 76873) | getAllInfoForPackageName(name) {
method getAllInfoForPatterns (line 76882) | getAllInfoForPatterns(patterns) {
method getManifests (line 76916) | getManifests() {
method replacePattern (line 76936) | replacePattern(pattern, newPattern) {
method collapseAllVersionsOfPackage (line 76950) | collapseAllVersionsOfPackage(name, version) {
method collapsePackageVersions (line 76958) | collapsePackageVersions(name, version, patterns) {
method addPattern (line 77041) | addPattern(pattern, info) {
method removePattern (line 77054) | removePattern(pattern) {
method getResolvedPattern (line 77073) | getResolvedPattern(pattern) {
method getStrictResolvedPattern (line 77081) | getStrictResolvedPattern(pattern) {
method getExactVersionMatch (line 77091) | getExactVersionMatch(name, version, manifest) {
method getHighestRangeVersionMatch (line 77128) | getHighestRangeVersionMatch(name, range, manifest) {
method exoticRangeMatch (line 77159) | exoticRangeMatch(resolvedPkgs, manifest) {
method isLockfileEntryOutdated (line 77177) | isLockfileEntryOutdated(version, range, hasVersion) {
method find (line 77185) | find(initialReq) {
method init (line 77238) | init(deps, { isFlat, isFrozen, workspaceLayout } = {
method optimizeResolutions (line 77315) | optimizeResolutions(name) {
method reportPackageWithExistingVersion (line 77363) | reportPackageWithExistingVersion(req, info) {
method resolvePackagesWithExistingVersions (line 77372) | resolvePackagesWithExistingVersions() {
method resolveToResolution (line 77393) | resolveToResolution(req) {
function _load_hostedGitResolver (line 77439) | function _load_hostedGitResolver() {
function _interopRequireDefault (line 77443) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class GitHubResolver (line 77445) | class GitHubResolver extends (_hostedGitResolver || _load_hostedGitResol...
method isVersion (line 77447) | static isVersion(pattern) {
method getTarballUrl (line 77461) | static getTarballUrl(parts, hash) {
method getGitSSHUrl (line 77465) | static getGitSSHUrl(parts) {
method getGitHTTPBaseUrl (line 77469) | static getGitHTTPBaseUrl(parts) {
method getGitHTTPUrl (line 77473) | static getGitHTTPUrl(parts) {
method getHTTPFileUrl (line 77477) | static getHTTPFileUrl(parts, filename, commit) {
function _load_asyncToGenerator (line 77499) | function _load_asyncToGenerator() {
function _load_exoticResolver (line 77505) | function _load_exoticResolver() {
function _load_misc (line 77511) | function _load_misc() {
function _load_fs (line 77517) | function _load_fs() {
function _interopRequireWildcard (line 77521) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 77523) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class LinkResolver (line 77529) | class LinkResolver extends (_exoticResolver || _load_exoticResolver()).d...
method constructor (line 77530) | constructor(request, fragment) {
method resolve (line 77535) | resolve() {
function _load_semver (line 77588) | function _load_semver() {
function _load_semver2 (line 77594) | function _load_semver2() {
function _load_constants (line 77600) | function _load_constants() {
function _interopRequireDefault (line 77604) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function _load_misc (line 77657) | function _load_misc() {
function sortFilter (line 77666) | function sortFilter(files, filters, keepFiles = new Set(), possibleKeepF...
function matchesFilter (line 77814) | function matchesFilter(filter, basename, loc) {
function ignoreLinesToRegex (line 77826) | function ignoreLinesToRegex(lines, base = '.') {
function filterOverridenGitignores (line 77863) | function filterOverridenGitignores(files) {
function _load_extends (line 77896) | function _load_extends() {
function _load_path (line 77902) | function _load_path() {
function _load_child (line 77908) | function _load_child() {
function _interopRequireWildcard (line 77912) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 77914) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
function callThroughHook (line 77955) | function callThroughHook(type, fn, context) {
function parsePackagePath (line 78018) | function parsePackagePath(input) {
function isValidPackagePath (line 78024) | function isValidPackagePath(input) {
function _load_path (line 78043) | function _load_path() {
function getPosixPath (line 78049) | function getPosixPath(path) {
function resolveWithHome (line 78053) | function resolveWithHome(path) {
function _load_fs (line 78075) | function _load_fs() {
function _load_http (line 78081) | function _load_http() {
function _load_url (line 78087) | function _load_url() {
function _load_dnscache (line 78093) | function _load_dnscache() {
function _load_invariant (line 78099) | function _load_invariant() {
function _load_requestCaptureHar (line 78105) | function _load_requestCaptureHar() {
function _load_errors (line 78111) | function _load_errors() {
function _load_blockingQueue (line 78117) | function _load_blockingQueue() {
function _load_constants (line 78123) | function _load_constants() {
function _load_network (line 78129) | function _load_network() {
function _load_map (line 78135) | function _load_map() {
function _interopRequireWildcard (line 78139) | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { ret...
function _interopRequireDefault (line 78141) | function _interopRequireDefault(obj) { return obj && obj.__esModule ? ob...
class RequestManager (line 78155) | class RequestManager {
method constructor (line 78156) | constructor(reporter) {
method setOptions (line 78175) | setOptions(opts) {
method _getRequestModule (line 78248) | _getRequestModule() {
method request (line 78265) | request(params) {
method clearCache (line 78301) | clearCache() {
method isPossibleOfflineError (line 78312) | isPossibleOfflineError(err) {
method queueForRetry (line 78356) | queueForRetry(opts) {
method initOfflineRetry (line 78397) | initOfflineRetry() {
method execute (line 78424) | execute(opts) {
method shiftQueue (line 78600) | shiftQueue() {
method saveHar (line 78611) | saveHar(filename) {
function F (line 78986) | function F(S, x8, i) {
function stream2word (line 79023) | function stream2word(data, databytes){
function bcrypt_hash (line 79098) | function bcrypt_hash(sha2pass, sha2salt, out) {
function bcrypt_pbkdf (line 79124) | function bcrypt_pbkdf(pass, passlen, salt, saltlen, key, keylen, rounds) {
function codeRegex (line 79277) | function codeRegex(capture){
function strlen (line 79281) | function strlen(str){
function repeat (line 79288) | function repeat(str,times){
function pad (line 79292) | function pad(str, len, pad, dir) {
function addToCodeCache (line 79317) | function addToCodeCache(name,on,off){
function updateState (line 79333) | function updateState(state, controlChars){
function readState (line 79362) | function readState(line){
function unwindState (line 79373) | function unwindState(state,ret){
function rewindState (line 79396) | function rewindState(state,ret){
function truncateWidth (line 79419) | function truncateWidth(str, desiredLength){
function truncateWidthWithAnsi (line 79431) | function truncateWidthWithAnsi(str, desiredLength){
function truncate (line 79460) | function truncate(str, desiredLength, truncateChar){
function defaultOptions (line 79474) | function defaultOptions(){
function mergeOptions (line 79509) | function mergeOptions(options,defaults){
function wordWrap (line 79518) | function wordWrap(maxLength,input){
function multiLineWordWrap (line 79548) | function multiLineWordWrap(maxLength, input){
function colorizeLines (line 79557) | function colorizeLines(input){
function createPromise (line 79612) | function createPromise() {
function co (line 79626) | function co(gen) {
function toPromise (line 79698) | function toPromise(obj) {
function thunkToPromise (line 79716) | function thunkToPromise(fn) {
function arrayToPromise (line 79736) | function arrayToPromise(obj) {
function objectToPromise (line 79749) | function objectToPromise(obj){
function isPromise (line 79780) | function isPromise(obj) {
function isGenerator (line 79792) | function isGenerator(obj) {
function isGeneratorFunction (line 79803) | function isGeneratorFunction(obj) {
function isObject (line 79818) | function isObject(val) {
function comparativeDistance (line 80000) | function comparativeDistance(x, y) {
function CombinedStream (line 80707) | function CombinedStream() {
function unstupid (line 81144) | function unstupid(hex,len)
function clone (line 81292) | function clone (obj) {
function noop (line 81320) | function noop () {}
function patch (line 81368) | function patch (fs) {
function enqueue (line 81563) | function enqueue (elem) {
function retry (line 81568) | function retry () {
class InputPrompt (line 81592) | class InputPrompt extends Base {
method _run (line 81599) | _run(cb) {
method render (line 81625) | render(error) {
method filterInput (line 81655) | filterInput(input) {
method onEnd (line 81662) | onEnd(state) {
method onError (line 81673) | onError(state) {
method onKeypress (line 81681) | onKeypress() {
class UI (line 81708) | class UI {
method constructor (line 81709) | constructor(opt) {
method onForceClose (line 81731) | onForceClose() {
method close (line 81741) | close() {
function setupReadlineOptions (line 81759) | function setupReadlineOptions(opt) {
function isStream (line 81881) | function isStream (obj) {
function isReadable (line 81886) | function isReadable (obj) {
function isWritable (line 81891) | function isWritable (obj) {
function isDuplex (line 81896) | function isDuplex (obj) {
function charset (line 81960) | function charset (type) {
function contentType (line 81988) | function contentType (str) {
function extension (line 82018) | function extension (type) {
function lookup (line 82043) | function lookup (path) {
function populateMaps (line 82065) | function populateMaps (extensions, types) {
function MuteStream (line 82112) | function MuteStream (opts) {
function onPipe (line 82149) | function onPipe (src) {
function getIsTTY (line 82160) | function getIsTTY () {
function setIsTTY (line 82168) | function setIsTTY (isTTY) {
function proxy (line 82241) | function proxy (fn) { return function () {
function testParameter (line 82285) | function testParameter(name, filters) {
function _uint8ArrayToBuffer (line 82747) | function _uint8ArrayToBuffer(chunk) {
function _isUint8Array (line 82750) | function _isUint8Array(obj) {
function prependListener (line 82779) | function prependListener(emitter, event, fn) {
Condensed preview — 119 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (5,506K chars).
[
{
"path": ".github/ISSUE_TEMPLATE/bug_report.md",
"chars": 794,
"preview": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: bug\nassignees: ''\n\n---\n\n**Describe the "
},
{
"path": ".github/workflows/ci.yml",
"chars": 523,
"preview": "name: ci\non: [push, pull_request]\njobs:\n build:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v2"
},
{
"path": ".gitignore",
"chars": 568,
"preview": "# OSX\n#\n.DS_Store\n\n# Xcode\n#\nbuild/\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.p"
},
{
"path": ".node-version",
"chars": 8,
"preview": "v15.2.0\n"
},
{
"path": ".prettierignore",
"chars": 88,
"preview": "/ReactNativeFastImageExample/\n/ReactNativeFastImageExampleServer/\nnode_modules\ncoverage\n"
},
{
"path": ".yarn/releases/yarn-1.22.10.js",
"chars": 4952651,
"preview": "#!/usr/bin/env node\nmodule.exports =\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/**"
},
{
"path": ".yarnrc",
"chars": 175,
"preview": "# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\n# yarn lockfile v1\n\n\nlastUpdateCheck 1583099103340\nsave"
},
{
"path": "CHANGELOG.md",
"chars": 33753,
"preview": "## [8.6.3](https://github.com/DylanVann/react-native-fast-image/compare/v8.6.2...v8.6.3) (2022-10-31)\n\n\n### Bug Fixes\n\n*"
},
{
"path": "LICENSE",
"chars": 1067,
"preview": "MIT License\n\nCopyright (c) 2017 Dylan Vann\n\nPermission is hereby granted, free of charge, to any person obtaining a copy"
},
{
"path": "README.md",
"chars": 8669,
"preview": "<h1 align=\"center\">\n 🚩 FastImage\n</h1>\n\n<div align=\"center\">\n\nPerformant React Native image component.\n\n[![Version][ver"
},
{
"path": "RNFastImage.podspec",
"chars": 777,
"preview": "require 'json'\n\nPod::Spec.new do |s|\n package = JSON.parse(File.read(File.join(__dir__, 'package.json')))\n\n s.name "
},
{
"path": "ReactNativeFastImageExample/.buckconfig",
"chars": 114,
"preview": "\n[android]\n target = Google Inc.:Google APIs:23\n\n[maven_repositories]\n central = https://repo1.maven.org/maven2\n"
},
{
"path": "ReactNativeFastImageExample/.editorconfig",
"chars": 43,
"preview": "# Windows files\n[*.bat]\nend_of_line = crlf\n"
},
{
"path": "ReactNativeFastImageExample/.eslintrc.js",
"chars": 179,
"preview": "module.exports = {\n root: true,\n extends: '@react-native-community',\n rules: {\n semi: ['error', 'never']"
},
{
"path": "ReactNativeFastImageExample/.gitattributes",
"chars": 127,
"preview": "# Windows files should use crlf line endings\n# https://help.github.com/articles/dealing-with-line-endings/\n*.bat text eo"
},
{
"path": "ReactNativeFastImageExample/.gitignore",
"chars": 821,
"preview": "# OSX\n#\n.DS_Store\n\n# Xcode\n#\nbuild/\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.p"
},
{
"path": "ReactNativeFastImageExample/.prettierrc.js",
"chars": 104,
"preview": "module.exports = {\n semi: false,\n singleQuote: true,\n trailingComma: 'all',\n tabWidth: 4,\n}\n"
},
{
"path": "ReactNativeFastImageExample/.watchmanconfig",
"chars": 3,
"preview": "{}\n"
},
{
"path": "ReactNativeFastImageExample/__tests__/App-test.tsx",
"chars": 262,
"preview": "/**\n * @format\n */\n\nimport 'react-native'\nimport React from 'react'\nimport App from '../src'\n\n// Note: test renderer mus"
},
{
"path": "ReactNativeFastImageExample/android/app/_BUCK",
"chars": 1348,
"preview": "# To learn about Buck see [Docs](https://buckbuild.com/).\n# To run your application with Buck:\n# - install Buck\n# - `npm"
},
{
"path": "ReactNativeFastImageExample/android/app/build.gradle",
"chars": 8866,
"preview": "apply plugin: \"com.android.application\"\n\nimport com.android.build.OutputFile\n\n/**\n * The react.gradle file registers a t"
},
{
"path": "ReactNativeFastImageExample/android/app/build_defs.bzl",
"chars": 602,
"preview": "\"\"\"Helper definitions to glob .aar and .jar targets\"\"\"\n\ndef create_aar_targets(aarfiles):\n for aarfile in aarfiles:\n "
},
{
"path": "ReactNativeFastImageExample/android/app/proguard-rules.pro",
"chars": 435,
"preview": "# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in /u"
},
{
"path": "ReactNativeFastImageExample/android/app/src/debug/AndroidManifest.xml",
"chars": 495,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:to"
},
{
"path": "ReactNativeFastImageExample/android/app/src/debug/java/com/reactnativefastimageexample/ReactNativeFlipper.java",
"chars": 3282,
"preview": "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * <p>This source code is licensed under the MIT license foun"
},
{
"path": "ReactNativeFastImageExample/android/app/src/main/AndroidManifest.xml",
"chars": 951,
"preview": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n package=\"com.reactnativefastimageexample\">\n\n <"
},
{
"path": "ReactNativeFastImageExample/android/app/src/main/java/com/reactnativefastimageexample/MainActivity.java",
"chars": 381,
"preview": "package com.reactnativefastimageexample;\n\nimport com.facebook.react.ReactActivity;\n\npublic class MainActivity extends Re"
},
{
"path": "ReactNativeFastImageExample/android/app/src/main/java/com/reactnativefastimageexample/MainApplication.java",
"chars": 2637,
"preview": "package com.reactnativefastimageexample;\n\nimport android.app.Application;\nimport android.content.Context;\nimport com.fac"
},
{
"path": "ReactNativeFastImageExample/android/app/src/main/res/values/strings.xml",
"chars": 90,
"preview": "<resources>\n <string name=\"app_name\">ReactNativeFastImageExample</string>\n</resources>\n"
},
{
"path": "ReactNativeFastImageExample/android/app/src/main/res/values/styles.xml",
"chars": 249,
"preview": "<resources>\n\n <!-- Base application theme. -->\n <style name=\"AppTheme\" parent=\"Theme.AppCompat.DayNight.NoActionBa"
},
{
"path": "ReactNativeFastImageExample/android/build.gradle",
"chars": 1048,
"preview": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n e"
},
{
"path": "ReactNativeFastImageExample/android/gradle/wrapper/gradle-wrapper.properties",
"chars": 200,
"preview": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributi"
},
{
"path": "ReactNativeFastImageExample/android/gradle.properties",
"chars": 1277,
"preview": "# Project-wide Gradle settings.\n\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will o"
},
{
"path": "ReactNativeFastImageExample/android/gradlew",
"chars": 5766,
"preview": "#!/usr/bin/env sh\n\n#\n# Copyright 2015 the original author or authors.\n#\n# Licensed under the Apache License, Version 2.0"
},
{
"path": "ReactNativeFastImageExample/android/gradlew.bat",
"chars": 2763,
"preview": "@rem\r\n@rem Copyright 2015 the original author or authors.\r\n@rem\r\n@rem Licensed under the Apache License, Version 2.0 (th"
},
{
"path": "ReactNativeFastImageExample/android/settings.gradle",
"chars": 211,
"preview": "rootProject.name = 'ReactNativeFastImageExample'\napply from: file(\"../node_modules/@react-native-community/cli-platform-"
},
{
"path": "ReactNativeFastImageExample/app.json",
"chars": 96,
"preview": "{\n \"name\": \"ReactNativeFastImageExample\",\n \"displayName\": \"ReactNativeFastImageExample\"\n}\n"
},
{
"path": "ReactNativeFastImageExample/babel.config.js",
"chars": 78,
"preview": "module.exports = {\n presets: ['module:metro-react-native-babel-preset'],\n}\n"
},
{
"path": "ReactNativeFastImageExample/index.js",
"chars": 183,
"preview": "/**\n * @format\n */\n\nimport { AppRegistry } from 'react-native'\nimport App from './src'\nimport { name as appName } from '"
},
{
"path": "ReactNativeFastImageExample/ios/Podfile",
"chars": 771,
"preview": "require_relative '../node_modules/react-native/scripts/react_native_pods'\nrequire_relative '../node_modules/@react-nativ"
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExample/AppDelegate.h",
"chars": 196,
"preview": "#import <React/RCTBridgeDelegate.h>\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate"
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExample/AppDelegate.m",
"chars": 2334,
"preview": "#import \"AppDelegate.h\"\n\n#import <React/RCTBridge.h>\n#import <React/RCTBundleURLProvider.h>\n#import <React/RCTRootView.h"
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExample/Images.xcassets/AppIcon.appiconset/Contents.json",
"chars": 585,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"iphone\",\n \"size\" : \"29x29\",\n \"scale\" : \"2x\"\n },\n {\n \"idiom\""
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExample/Images.xcassets/Contents.json",
"chars": 63,
"preview": "{\n \"info\" : {\n \"version\" : 1,\n \"author\" : \"xcode\"\n }\n}\n"
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExample/Info.plist",
"chars": 1720,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExample/LaunchScreen.storyboard",
"chars": 4251,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3"
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExample/main.m",
"chars": 200,
"preview": "#import <UIKit/UIKit.h>\n\n#import \"AppDelegate.h\"\n\nint main(int argc, char * argv[]) {\n @autoreleasepool {\n return UI"
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExample.xcodeproj/project.pbxproj",
"chars": 30997,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 54;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExample.xcodeproj/xcshareddata/xcschemes/ReactNativeFastImageExample.xcscheme",
"chars": 3510,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"1210\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExample.xcworkspace/contents.xcworkspacedata",
"chars": 245,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <FileRef\n location = \"group:ReactNativeFas"
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
"chars": 238,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExampleTests/Info.plist",
"chars": 733,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "ReactNativeFastImageExample/ios/ReactNativeFastImageExampleTests/ReactNativeFastImageExampleTests.m",
"chars": 1823,
"preview": "#import <UIKit/UIKit.h>\n#import <XCTest/XCTest.h>\n\n#import <React/RCTLog.h>\n#import <React/RCTRootView.h>\n\n#define TIMEO"
},
{
"path": "ReactNativeFastImageExample/metro.config.js",
"chars": 338,
"preview": "/**\n * Metro configuration for React Native\n * https://github.com/facebook/react-native\n *\n * @format\n */\n\nmodule.export"
},
{
"path": "ReactNativeFastImageExample/package.json",
"chars": 1847,
"preview": "{\n \"name\": \"reactnativefastimageexample\",\n \"version\": \"0.0.1\",\n \"private\": true,\n \"scripts\": {\n \"andr"
},
{
"path": "ReactNativeFastImageExample/src/AutoSizeExample.tsx",
"chars": 2180,
"preview": "import React, { useCallback, useMemo, useState } from 'react'\nimport { StyleSheet, View } from 'react-native'\nimport Sec"
},
{
"path": "ReactNativeFastImageExample/src/BorderRadiusExample.tsx",
"chars": 1603,
"preview": "import React from 'react'\nimport { StyleSheet, View } from 'react-native'\nimport SectionFlex from './SectionFlex'\nimport"
},
{
"path": "ReactNativeFastImageExample/src/BulletText.tsx",
"chars": 279,
"preview": "import React from 'react'\nimport FeatureText from './FeatureText'\n\ninterface BulletTextProps {\n text?: string\n chi"
},
{
"path": "ReactNativeFastImageExample/src/Button.tsx",
"chars": 733,
"preview": "import React from 'react'\nimport { StyleSheet, Text, TouchableOpacity, View } from 'react-native'\n\ninterface ButtonProps"
},
{
"path": "ReactNativeFastImageExample/src/DefaultImageGrid.tsx",
"chars": 205,
"preview": "import React from 'react'\nimport { Image } from 'react-native'\nimport { ImageGrid } from './ImageGrid'\n\nconst DefaultIma"
},
{
"path": "ReactNativeFastImageExample/src/FastImageExamples.tsx",
"chars": 2324,
"preview": "import React from 'react'\nimport { ScrollView, StatusBar, StyleSheet, Text, View } from 'react-native'\nimport Section fr"
},
{
"path": "ReactNativeFastImageExample/src/FastImageGrid.tsx",
"chars": 214,
"preview": "import React from 'react'\nimport FastImage from 'react-native-fast-image'\nimport { ImageGrid } from './ImageGrid'\n\nconst"
},
{
"path": "ReactNativeFastImageExample/src/FeatureText.tsx",
"chars": 413,
"preview": "import React from 'react'\nimport { StyleSheet, Text } from 'react-native'\n\ninterface FeatureTextProps {\n text?: strin"
},
{
"path": "ReactNativeFastImageExample/src/GifExample.tsx",
"chars": 918,
"preview": "import React from 'react'\nimport { StyleSheet, View } from 'react-native'\nimport SectionFlex from './SectionFlex'\nimport"
},
{
"path": "ReactNativeFastImageExample/src/Icon.tsx",
"chars": 386,
"preview": "import React from 'react'\nimport Base from 'react-native-vector-icons/Ionicons'\n\ninterface IconProps {\n size?: number"
},
{
"path": "ReactNativeFastImageExample/src/ImageGrid.tsx",
"chars": 3825,
"preview": "import React, { memo, useCallback, useEffect, useState } from 'react'\nimport { FlatList, Text, View, LayoutChangeEvent }"
},
{
"path": "ReactNativeFastImageExample/src/LocalImagesExample.tsx",
"chars": 3691,
"preview": "import React, { Component } from 'react'\nimport {\n StyleSheet,\n View,\n Text,\n TouchableOpacity,\n ViewProp"
},
{
"path": "ReactNativeFastImageExample/src/PreloadExample.tsx",
"chars": 2292,
"preview": "import React, { useState } from 'react'\nimport { StyleSheet, View } from 'react-native'\nimport SectionFlex from './Secti"
},
{
"path": "ReactNativeFastImageExample/src/PriorityExample.tsx",
"chars": 1979,
"preview": "import React from 'react'\nimport { PixelRatio, StyleSheet, View } from 'react-native'\nimport FastImage from 'react-nativ"
},
{
"path": "ReactNativeFastImageExample/src/ProgressExample.tsx",
"chars": 2525,
"preview": "import React, { useState } from 'react'\nimport { StyleSheet, View, Text } from 'react-native'\nimport SectionFlex from '."
},
{
"path": "ReactNativeFastImageExample/src/ResizeModeExample.tsx",
"chars": 2066,
"preview": "import React from 'react'\nimport { StyleSheet, View } from 'react-native'\nimport SectionFlex from './SectionFlex'\nimport"
},
{
"path": "ReactNativeFastImageExample/src/Section.tsx",
"chars": 403,
"preview": "import React from 'react'\nimport { StyleSheet, View } from 'react-native'\n\ninterface SectionProps {\n children?: any\n}"
},
{
"path": "ReactNativeFastImageExample/src/SectionFlex.tsx",
"chars": 738,
"preview": "import React from 'react'\nimport { StyleSheet, TouchableOpacity, View } from 'react-native'\n\ninterface SectionFlexProps "
},
{
"path": "ReactNativeFastImageExample/src/StatusBarUnderlay.tsx",
"chars": 482,
"preview": "import React from 'react'\nimport { StyleSheet, View } from 'react-native'\nimport { getStatusBarHeight } from 'react-nati"
},
{
"path": "ReactNativeFastImageExample/src/TintColorExample.tsx",
"chars": 1264,
"preview": "import React from 'react'\nimport { StyleSheet, View } from 'react-native'\nimport FastImage from 'react-native-fast-image"
},
{
"path": "ReactNativeFastImageExample/src/images/fields.ts",
"chars": 28427,
"preview": "/**\n * This file is generated by 'image2base64-cli'\n * It is not mean to be edited by hand\n */\n// eslint:disable\nexport "
},
{
"path": "ReactNativeFastImageExample/src/index.tsx",
"chars": 1743,
"preview": "import React from 'react'\nimport { LogBox } from 'react-native'\nimport { NavigationContainer } from '@react-navigation/n"
},
{
"path": "ReactNativeFastImageExample/src/useCacheBust.tsx",
"chars": 439,
"preview": "import { useCallback, useState } from 'react'\n\nconst getNewKey = () => Math.random().toString()\n\nexport const useCacheBu"
},
{
"path": "ReactNativeFastImageExample/tsconfig.json",
"chars": 5572,
"preview": "{\n \"compilerOptions\": {\n /* Basic Options */\n \"target\": \"esnext\" /* Specify ECMAScript target version: "
},
{
"path": "ReactNativeFastImageExampleServer/index.js",
"chars": 790,
"preview": "const path = require('path')\nconst express = require('express')\nconst bodyParser = require('body-parser')\nconst morgan ="
},
{
"path": "ReactNativeFastImageExampleServer/package.json",
"chars": 313,
"preview": "{\n \"name\": \"ReactNativeFastImageExampleServer\",\n \"version\": \"0.0.1\",\n \"private\": true,\n \"license\": \"MIT\",\n \"main\": "
},
{
"path": "android/build.gradle",
"chars": 2026,
"preview": "def safeExtGet(prop, fallback) {\n rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback\n}\n\nbuildscript {\n "
},
{
"path": "android/src/main/AndroidManifest.xml",
"chars": 57,
"preview": "<manifest package=\"com.dylanvann.fastimage\">\n</manifest>\n"
},
{
"path": "android/src/main/java/com/dylanvann/fastimage/FastImageCacheControl.java",
"chars": 112,
"preview": "package com.dylanvann.fastimage;\n\npublic enum FastImageCacheControl {\n IMMUTABLE,\n WEB,\n CACHE_ONLY\n}\n\n"
},
{
"path": "android/src/main/java/com/dylanvann/fastimage/FastImageGlideModule.java",
"chars": 286,
"preview": "package com.dylanvann.fastimage;\n\nimport com.bumptech.glide.annotation.GlideModule;\nimport com.bumptech.glide.module.App"
},
{
"path": "android/src/main/java/com/dylanvann/fastimage/FastImageOkHttpProgressGlideModule.java",
"chars": 6080,
"preview": "package com.dylanvann.fastimage;\n\nimport android.content.Context;\nimport androidx.annotation.NonNull;\n\nimport com.bumpte"
},
{
"path": "android/src/main/java/com/dylanvann/fastimage/FastImageProgressListener.java",
"chars": 408,
"preview": "package com.dylanvann.fastimage;\n\npublic interface FastImageProgressListener {\n\n void onProgress(String key, long byt"
},
{
"path": "android/src/main/java/com/dylanvann/fastimage/FastImageRequestListener.java",
"chars": 2795,
"preview": "package com.dylanvann.fastimage;\n\nimport android.graphics.drawable.Drawable;\n\nimport com.bumptech.glide.load.DataSource;"
},
{
"path": "android/src/main/java/com/dylanvann/fastimage/FastImageSource.java",
"chars": 3423,
"preview": "package com.dylanvann.fastimage;\n\nimport android.content.Context;\nimport android.content.res.Resources;\nimport android.n"
},
{
"path": "android/src/main/java/com/dylanvann/fastimage/FastImageViewConverter.java",
"chars": 6351,
"preview": "package com.dylanvann.fastimage;\n\nimport static com.bumptech.glide.request.RequestOptions.signatureOf;\n\nimport android.c"
},
{
"path": "android/src/main/java/com/dylanvann/fastimage/FastImageViewManager.java",
"chars": 6905,
"preview": "package com.dylanvann.fastimage;\n\nimport static com.dylanvann.fastimage.FastImageRequestListener.REACT_ON_ERROR_EVENT;\ni"
},
{
"path": "android/src/main/java/com/dylanvann/fastimage/FastImageViewModule.java",
"chars": 3071,
"preview": "package com.dylanvann.fastimage;\n\nimport android.app.Activity;\n\nimport androidx.annotation.NonNull;\n\nimport com.bumptech"
},
{
"path": "android/src/main/java/com/dylanvann/fastimage/FastImageViewPackage.java",
"chars": 823,
"preview": "package com.dylanvann.fastimage;\n\nimport androidx.annotation.NonNull;\n\nimport com.facebook.react.ReactPackage;\nimport co"
},
{
"path": "android/src/main/java/com/dylanvann/fastimage/FastImageViewWithUrl.java",
"chars": 5986,
"preview": "package com.dylanvann.fastimage;\n\nimport static com.dylanvann.fastimage.FastImageRequestListener.REACT_ON_ERROR_EVENT;\n\n"
},
{
"path": "babel.config.js",
"chars": 78,
"preview": "module.exports = {\n presets: ['module:metro-react-native-babel-preset'],\n}\n"
},
{
"path": "docs/app-glide-module.md",
"chars": 338,
"preview": "# Removing MyAppGlideModule from react-native-fast-image\n\nIf you are using Glide within your application using an `AppGl"
},
{
"path": "docs/development.md",
"chars": 596,
"preview": "# Development\n\nFor now this uses a modified cli to work around issues with symlinked packages.\n\nThis is how to start the"
},
{
"path": "docs/how-is-caching-handled.md",
"chars": 1107,
"preview": "# How is caching handled?\n\nIn the readme it says \"Aggressively cache images.\". What does this mean?\n\nThis library treats"
},
{
"path": "docs/other-android-versions.md",
"chars": 754,
"preview": "# Other Android Versions\n\nIf you are not on a clean React Native install you may need to change the versions of some thi"
},
{
"path": "docs/roadmap.md",
"chars": 929,
"preview": "# Roadmap / Ideas\n\n## Add `onProgress` and `onComplete` to preload.\n\n- [Add onProgress and onComplete to preload.](htt"
},
{
"path": "docs/troubleshooting.md",
"chars": 504,
"preview": "# Troubleshooting\n\nIf you have problems you can try:\n\n- Running Clean in Xcode.\n- Deleting Xcode's derived data.\n- Remov"
},
{
"path": "ios/FastImage/FFFastImageSource.h",
"chars": 887,
"preview": "#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSInteger, FFFPriority) {\n FFFPriorityLow,"
},
{
"path": "ios/FastImage/FFFastImageSource.m",
"chars": 457,
"preview": "#import \"FFFastImageSource.h\"\n\n@implementation FFFastImageSource\n\n- (instancetype)initWithURL:(NSURL *)url\n "
},
{
"path": "ios/FastImage/FFFastImageView.h",
"chars": 830,
"preview": "#import <UIKit/UIKit.h>\n\n#import <SDWebImage/SDAnimatedImageView+WebCache.h>\n#import <SDWebImage/SDWebImageDownloader.h>"
},
{
"path": "ios/FastImage/FFFastImageView.m",
"chars": 8051,
"preview": "#import \"FFFastImageView.h\"\n#import <SDWebImage/UIImage+MultiFormat.h>\n#import <SDWebImage/UIView+WebCache.h>\n\n@interfac"
},
{
"path": "ios/FastImage/FFFastImageViewManager.h",
"chars": 91,
"preview": "#import <React/RCTViewManager.h>\n\n@interface FFFastImageViewManager : RCTViewManager\n\n@end\n"
},
{
"path": "ios/FastImage/FFFastImageViewManager.m",
"chars": 1841,
"preview": "#import \"FFFastImageViewManager.h\"\n#import \"FFFastImageView.h\"\n\n#import <SDWebImage/SDImageCache.h>\n#import <SDWebImage/"
},
{
"path": "ios/FastImage/RCTConvert+FFFastImage.h",
"chars": 151,
"preview": "#import <React/RCTConvert.h>\n\n@class FFFastImageSource;\n\n@interface RCTConvert (FFFastImage)\n\n+ (FFFastImageSource *)FFF"
},
{
"path": "ios/FastImage/RCTConvert+FFFastImage.m",
"chars": 2017,
"preview": "#import \"RCTConvert+FFFastImage.h\"\n#import \"FFFastImageSource.h\"\n\n@implementation RCTConvert (FFFastImage)\n\nRCT_ENUM_CON"
},
{
"path": "ios/FastImage.xcodeproj/project.pbxproj",
"chars": 18500,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "ios/FastImage.xcodeproj/xcshareddata/xcschemes/FastImage-tvOS.xcscheme",
"chars": 2883,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"1020\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "package.json",
"chars": 2450,
"preview": "{\n \"name\": \"react-native-fast-image\",\n \"version\": \"8.6.3\",\n \"description\": \"🚩 FastImage, performant React Nativ"
},
{
"path": "src/__snapshots__/index.test.tsx.snap",
"chars": 4035,
"preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`FastImage (Android) renders a non-existing defaultSource 1`] = `\n<V"
},
{
"path": "src/index.js.flow",
"chars": 1848,
"preview": "// @flow\n\nimport type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'\nimport type { SyntheticE"
},
{
"path": "src/index.test.tsx",
"chars": 3882,
"preview": "import { StyleSheet, Platform, NativeModules } from 'react-native'\nimport React from 'react'\nimport renderer from 'react"
},
{
"path": "src/index.tsx",
"chars": 6899,
"preview": "import React, { forwardRef, memo } from 'react'\nimport {\n View,\n Image,\n NativeModules,\n requireNativeCompon"
},
{
"path": "tsconfig.json",
"chars": 878,
"preview": "{\n \"compilerOptions\": {\n \"target\": \"ESNext\",\n \"module\": \"ESNext\",\n \"composite\": true,\n \"incremental\": true,"
}
]
// ... and 2 more files (download for full content)
About this extraction
This page contains the full source code of the DylanVann/react-native-fast-image GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 119 files (5.0 MB), approximately 1.3M tokens, and a symbol index with 4742 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.