summaryrefslogtreecommitdiff
path: root/node_modules/flora-colossus/lib
diff options
context:
space:
mode:
authorLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 22:54:37 +0300
committerLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 22:54:37 +0300
commit703e03aba33f234712206769f57717ba7d92d23d (patch)
tree0041f04ccb75bd5379c764e9fe42249fffe75fc3 /node_modules/flora-colossus/lib
parentab6e257e6e9d9a483d7e86f220d8b209a2cd7753 (diff)
downloadFlashRunner-703e03aba33f234712206769f57717ba7d92d23d.tar.gz
FlashRunner-703e03aba33f234712206769f57717ba7d92d23d.tar.zst
Added export_allowed file to make repository visible in cgit
Diffstat (limited to 'node_modules/flora-colossus/lib')
-rw-r--r--node_modules/flora-colossus/lib/Walker.d.ts35
-rw-r--r--node_modules/flora-colossus/lib/Walker.js287
-rw-r--r--node_modules/flora-colossus/lib/Walker.js.map1
-rw-r--r--node_modules/flora-colossus/lib/depTypes.d.ts9
-rw-r--r--node_modules/flora-colossus/lib/depTypes.js92
-rw-r--r--node_modules/flora-colossus/lib/depTypes.js.map1
-rw-r--r--node_modules/flora-colossus/lib/index.d.ts2
-rw-r--r--node_modules/flora-colossus/lib/index.js8
-rw-r--r--node_modules/flora-colossus/lib/index.js.map1
-rw-r--r--node_modules/flora-colossus/lib/nativeModuleTypes.d.ts5
-rw-r--r--node_modules/flora-colossus/lib/nativeModuleTypes.js9
-rw-r--r--node_modules/flora-colossus/lib/nativeModuleTypes.js.map1
12 files changed, 451 insertions, 0 deletions
diff --git a/node_modules/flora-colossus/lib/Walker.d.ts b/node_modules/flora-colossus/lib/Walker.d.ts
new file mode 100644
index 0000000..a338c58
--- /dev/null
+++ b/node_modules/flora-colossus/lib/Walker.d.ts
@@ -0,0 +1,35 @@
+import { DepType } from './depTypes';
+import { NativeModuleType } from './nativeModuleTypes';
+export declare type VersionRange = string;
+export interface PackageJSON {
+ name: string;
+ dependencies: {
+ [name: string]: VersionRange;
+ };
+ devDependencies: {
+ [name: string]: VersionRange;
+ };
+ optionalDependencies: {
+ [name: string]: VersionRange;
+ };
+}
+export interface Module {
+ path: string;
+ depType: DepType;
+ nativeModuleType: NativeModuleType;
+ name: string;
+}
+export declare class Walker {
+ private rootModule;
+ private modules;
+ private walkHistory;
+ constructor(modulePath: string);
+ private relativeModule;
+ private loadPackageJSON;
+ private walkDependenciesForModuleInModule;
+ private detectNativeModuleType;
+ private walkDependenciesForModule;
+ private cache;
+ walkTree(): Promise<Module[]>;
+ getRootModule(): string;
+}
diff --git a/node_modules/flora-colossus/lib/Walker.js b/node_modules/flora-colossus/lib/Walker.js
new file mode 100644
index 0000000..2448554
--- /dev/null
+++ b/node_modules/flora-colossus/lib/Walker.js
@@ -0,0 +1,287 @@
+"use strict";
+var __awaiter = (this && this.__awaiter) || function (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());
+ });
+};
+var __generator = (this && this.__generator) || function (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 };
+ }
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var debug = require("debug");
+var fs = require("fs-extra");
+var path = require("path");
+var depTypes_1 = require("./depTypes");
+var nativeModuleTypes_1 = require("./nativeModuleTypes");
+var d = debug('flora-colossus');
+var Walker = /** @class */ (function () {
+ function Walker(modulePath) {
+ this.walkHistory = new Set();
+ this.cache = null;
+ if (!modulePath || typeof modulePath !== 'string') {
+ throw new Error('modulePath must be provided as a string');
+ }
+ d("creating walker with rootModule=" + modulePath);
+ this.rootModule = modulePath;
+ }
+ Walker.prototype.relativeModule = function (rootPath, moduleName) {
+ return path.resolve(rootPath, 'node_modules', moduleName);
+ };
+ Walker.prototype.loadPackageJSON = function (modulePath) {
+ return __awaiter(this, void 0, void 0, function () {
+ var pJPath, pJ;
+ return __generator(this, function (_a) {
+ switch (_a.label) {
+ case 0:
+ pJPath = path.resolve(modulePath, 'package.json');
+ return [4 /*yield*/, fs.pathExists(pJPath)];
+ case 1:
+ if (!_a.sent()) return [3 /*break*/, 3];
+ return [4 /*yield*/, fs.readJson(pJPath)];
+ case 2:
+ pJ = _a.sent();
+ if (!pJ.dependencies)
+ pJ.dependencies = {};
+ if (!pJ.devDependencies)
+ pJ.devDependencies = {};
+ if (!pJ.optionalDependencies)
+ pJ.optionalDependencies = {};
+ return [2 /*return*/, pJ];
+ case 3: return [2 /*return*/, null];
+ }
+ });
+ });
+ };
+ Walker.prototype.walkDependenciesForModuleInModule = function (moduleName, modulePath, depType) {
+ return __awaiter(this, void 0, void 0, function () {
+ var testPath, discoveredPath, lastRelative;
+ return __generator(this, function (_a) {
+ switch (_a.label) {
+ case 0:
+ testPath = modulePath;
+ discoveredPath = null;
+ lastRelative = null;
+ _a.label = 1;
+ case 1:
+ if (!(!discoveredPath && this.relativeModule(testPath, moduleName) !== lastRelative)) return [3 /*break*/, 3];
+ lastRelative = this.relativeModule(testPath, moduleName);
+ return [4 /*yield*/, fs.pathExists(lastRelative)];
+ case 2:
+ if (_a.sent()) {
+ discoveredPath = lastRelative;
+ }
+ else {
+ if (path.basename(path.dirname(testPath)) !== 'node_modules') {
+ testPath = path.dirname(testPath);
+ }
+ testPath = path.dirname(path.dirname(testPath));
+ }
+ return [3 /*break*/, 1];
+ case 3:
+ // If we can't find it the install is probably buggered
+ if (!discoveredPath && depType !== depTypes_1.DepType.OPTIONAL && depType !== depTypes_1.DepType.DEV_OPTIONAL) {
+ throw new Error("Failed to locate module \"" + moduleName + "\" from \"" + modulePath + "\"\n\n This normally means that either you have deleted this package already somehow (check your ignore settings if using electron-packager). Or your module installation failed.");
+ }
+ if (!discoveredPath) return [3 /*break*/, 5];
+ return [4 /*yield*/, this.walkDependenciesForModule(discoveredPath, depType)];
+ case 4:
+ _a.sent();
+ _a.label = 5;
+ case 5: return [2 /*return*/];
+ }
+ });
+ });
+ };
+ Walker.prototype.detectNativeModuleType = function (modulePath, pJ) {
+ return __awaiter(this, void 0, void 0, function () {
+ return __generator(this, function (_a) {
+ switch (_a.label) {
+ case 0:
+ if (!pJ.dependencies['prebuild-install']) return [3 /*break*/, 1];
+ return [2 /*return*/, nativeModuleTypes_1.NativeModuleType.PREBUILD];
+ case 1: return [4 /*yield*/, fs.pathExists(path.join(modulePath, 'binding.gyp'))];
+ case 2:
+ if (_a.sent()) {
+ return [2 /*return*/, nativeModuleTypes_1.NativeModuleType.NODE_GYP];
+ }
+ _a.label = 3;
+ case 3: return [2 /*return*/, nativeModuleTypes_1.NativeModuleType.NONE];
+ }
+ });
+ });
+ };
+ Walker.prototype.walkDependenciesForModule = function (modulePath, depType) {
+ return __awaiter(this, void 0, void 0, function () {
+ var existingModule, pJ, _a, _b, _c, _d, _e, _i, moduleName, _f, _g, _h, moduleName, _j, _k, _l, moduleName;
+ return __generator(this, function (_m) {
+ switch (_m.label) {
+ case 0:
+ d('walk reached:', modulePath, ' Type is:', depTypes_1.DepType[depType]);
+ // We have already traversed this module
+ if (this.walkHistory.has(modulePath)) {
+ d('already walked this route');
+ existingModule = this.modules.find(function (module) { return module.path === modulePath; });
+ // If the depType we are traversing with now is higher than the
+ // last traversal then update it (prod superseeds dev for instance)
+ if (depTypes_1.depTypeGreater(depType, existingModule.depType)) {
+ d("existing module has a type of \"" + existingModule.depType + "\", new module type would be \"" + depType + "\" therefore updating");
+ existingModule.depType = depType;
+ }
+ return [2 /*return*/];
+ }
+ return [4 /*yield*/, this.loadPackageJSON(modulePath)];
+ case 1:
+ pJ = _m.sent();
+ // If the module doesn't have a package.json file it is probably a
+ // dead install from yarn (they dont clean up for some reason)
+ if (!pJ) {
+ d('walk hit a dead end, this module is incomplete');
+ return [2 /*return*/];
+ }
+ // Record this module as being traversed
+ this.walkHistory.add(modulePath);
+ _b = (_a = this.modules).push;
+ _c = {
+ depType: depType
+ };
+ return [4 /*yield*/, this.detectNativeModuleType(modulePath, pJ)];
+ case 2:
+ _b.apply(_a, [(_c.nativeModuleType = _m.sent(),
+ _c.path = modulePath,
+ _c.name = pJ.name,
+ _c)]);
+ _d = [];
+ for (_e in pJ.dependencies)
+ _d.push(_e);
+ _i = 0;
+ _m.label = 3;
+ case 3:
+ if (!(_i < _d.length)) return [3 /*break*/, 6];
+ moduleName = _d[_i];
+ // npm decides it's a funny thing to put optional dependencies in the "dependencies" section
+ // after install, because that makes perfect sense
+ if (moduleName in pJ.optionalDependencies) {
+ d("found " + moduleName + " in prod deps of " + modulePath + " but it is also marked optional");
+ return [3 /*break*/, 5];
+ }
+ return [4 /*yield*/, this.walkDependenciesForModuleInModule(moduleName, modulePath, depTypes_1.childDepType(depType, depTypes_1.DepType.PROD))];
+ case 4:
+ _m.sent();
+ _m.label = 5;
+ case 5:
+ _i++;
+ return [3 /*break*/, 3];
+ case 6:
+ _f = [];
+ for (_g in pJ.optionalDependencies)
+ _f.push(_g);
+ _h = 0;
+ _m.label = 7;
+ case 7:
+ if (!(_h < _f.length)) return [3 /*break*/, 10];
+ moduleName = _f[_h];
+ return [4 /*yield*/, this.walkDependenciesForModuleInModule(moduleName, modulePath, depTypes_1.childDepType(depType, depTypes_1.DepType.OPTIONAL))];
+ case 8:
+ _m.sent();
+ _m.label = 9;
+ case 9:
+ _h++;
+ return [3 /*break*/, 7];
+ case 10:
+ if (!(depType === depTypes_1.DepType.ROOT)) return [3 /*break*/, 14];
+ d('we\'re still at the beginning, walking down the dev route');
+ _j = [];
+ for (_k in pJ.devDependencies)
+ _j.push(_k);
+ _l = 0;
+ _m.label = 11;
+ case 11:
+ if (!(_l < _j.length)) return [3 /*break*/, 14];
+ moduleName = _j[_l];
+ return [4 /*yield*/, this.walkDependenciesForModuleInModule(moduleName, modulePath, depTypes_1.childDepType(depType, depTypes_1.DepType.DEV))];
+ case 12:
+ _m.sent();
+ _m.label = 13;
+ case 13:
+ _l++;
+ return [3 /*break*/, 11];
+ case 14: return [2 /*return*/];
+ }
+ });
+ });
+ };
+ Walker.prototype.walkTree = function () {
+ return __awaiter(this, void 0, void 0, function () {
+ var _this = this;
+ return __generator(this, function (_a) {
+ switch (_a.label) {
+ case 0:
+ d('starting tree walk');
+ if (!this.cache) {
+ this.cache = new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
+ var err_1;
+ return __generator(this, function (_a) {
+ switch (_a.label) {
+ case 0:
+ this.modules = [];
+ _a.label = 1;
+ case 1:
+ _a.trys.push([1, 3, , 4]);
+ return [4 /*yield*/, this.walkDependenciesForModule(this.rootModule, depTypes_1.DepType.ROOT)];
+ case 2:
+ _a.sent();
+ return [3 /*break*/, 4];
+ case 3:
+ err_1 = _a.sent();
+ reject(err_1);
+ return [2 /*return*/];
+ case 4:
+ resolve(this.modules);
+ return [2 /*return*/];
+ }
+ });
+ }); });
+ }
+ else {
+ d('tree walk in progress / completed already, waiting for existing walk to complete');
+ }
+ return [4 /*yield*/, this.cache];
+ case 1: return [2 /*return*/, _a.sent()];
+ }
+ });
+ });
+ };
+ Walker.prototype.getRootModule = function () {
+ return this.rootModule;
+ };
+ return Walker;
+}());
+exports.Walker = Walker;
+//# sourceMappingURL=Walker.js.map \ No newline at end of file
diff --git a/node_modules/flora-colossus/lib/Walker.js.map b/node_modules/flora-colossus/lib/Walker.js.map
new file mode 100644
index 0000000..7d69070
--- /dev/null
+++ b/node_modules/flora-colossus/lib/Walker.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"Walker.js","sourceRoot":"","sources":["../src/Walker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA+B;AAC/B,6BAA+B;AAC/B,2BAA6B;AAE7B,uCAAmE;AACnE,yDAAuD;AAgBvD,IAAM,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAElC;IAKE,gBAAY,UAAkB;QAFtB,gBAAW,GAAgB,IAAI,GAAG,EAAE,CAAC;QAuIrC,UAAK,GAA6B,IAAI,CAAC;QApI7C,IAAI,CAAC,UAAU,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;YACjD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;SAC5D;QACD,CAAC,CAAC,qCAAmC,UAAY,CAAC,CAAC;QACnD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAEO,+BAAc,GAAtB,UAAuB,QAAgB,EAAE,UAAk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AAC;AAAD,CAAC,AAjKD,IAiKC;AAjKY,wBAAM"} \ No newline at end of file
diff --git a/node_modules/flora-colossus/lib/depTypes.d.ts b/node_modules/flora-colossus/lib/depTypes.d.ts
new file mode 100644
index 0000000..43cec60
--- /dev/null
+++ b/node_modules/flora-colossus/lib/depTypes.d.ts
@@ -0,0 +1,9 @@
+export declare enum DepType {
+ PROD = 0,
+ DEV = 1,
+ OPTIONAL = 2,
+ DEV_OPTIONAL = 3,
+ ROOT = 4
+}
+export declare const depTypeGreater: (newType: DepType, existing: DepType) => boolean;
+export declare const childDepType: (parentType: DepType, childType: DepType) => DepType.PROD | DepType.PROD | DepType.DEV | DepType.DEV | DepType.OPTIONAL | DepType.OPTIONAL | DepType.DEV_OPTIONAL | DepType.DEV_OPTIONAL;
diff --git a/node_modules/flora-colossus/lib/depTypes.js b/node_modules/flora-colossus/lib/depTypes.js
new file mode 100644
index 0000000..8138b5b
--- /dev/null
+++ b/node_modules/flora-colossus/lib/depTypes.js
@@ -0,0 +1,92 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var DepType;
+(function (DepType) {
+ DepType[DepType["PROD"] = 0] = "PROD";
+ DepType[DepType["DEV"] = 1] = "DEV";
+ DepType[DepType["OPTIONAL"] = 2] = "OPTIONAL";
+ DepType[DepType["DEV_OPTIONAL"] = 3] = "DEV_OPTIONAL";
+ DepType[DepType["ROOT"] = 4] = "ROOT";
+})(DepType = exports.DepType || (exports.DepType = {}));
+exports.depTypeGreater = function (newType, existing) {
+ switch (existing) {
+ case DepType.DEV:
+ switch (newType) {
+ case DepType.OPTIONAL:
+ case DepType.PROD:
+ case DepType.ROOT:
+ return true;
+ case DepType.DEV:
+ case DepType.DEV_OPTIONAL:
+ default:
+ return false;
+ }
+ case DepType.DEV_OPTIONAL:
+ switch (newType) {
+ case DepType.OPTIONAL:
+ case DepType.PROD:
+ case DepType.ROOT:
+ case DepType.DEV:
+ return true;
+ case DepType.DEV_OPTIONAL:
+ default:
+ return false;
+ }
+ case DepType.OPTIONAL:
+ switch (newType) {
+ case DepType.PROD:
+ case DepType.ROOT:
+ return true;
+ case DepType.OPTIONAL:
+ case DepType.DEV:
+ case DepType.DEV_OPTIONAL:
+ default:
+ return false;
+ }
+ case DepType.PROD:
+ switch (newType) {
+ case DepType.ROOT:
+ return true;
+ case DepType.PROD:
+ case DepType.OPTIONAL:
+ case DepType.DEV:
+ case DepType.DEV_OPTIONAL:
+ default:
+ return false;
+ }
+ case DepType.ROOT:
+ switch (newType) {
+ case DepType.ROOT:
+ case DepType.PROD:
+ case DepType.OPTIONAL:
+ case DepType.DEV:
+ case DepType.DEV_OPTIONAL:
+ default:
+ return false;
+ }
+ default:
+ return false;
+ }
+};
+exports.childDepType = function (parentType, childType) {
+ if (childType === DepType.ROOT) {
+ throw new Error('Something went wrong, a child dependency can\'t be marked as the ROOT');
+ }
+ switch (parentType) {
+ case DepType.ROOT:
+ return childType;
+ case DepType.PROD:
+ if (childType === DepType.OPTIONAL)
+ return DepType.OPTIONAL;
+ return DepType.PROD;
+ case DepType.OPTIONAL:
+ return DepType.OPTIONAL;
+ case DepType.DEV_OPTIONAL:
+ return DepType.DEV_OPTIONAL;
+ case DepType.DEV:
+ if (childType === DepType.OPTIONAL)
+ return DepType.DEV_OPTIONAL;
+ return DepType.DEV;
+ }
+};
+//# sourceMappingURL=depTypes.js.map \ No newline at end of file
diff --git a/node_modules/flora-colossus/lib/depTypes.js.map b/node_modules/flora-colossus/lib/depTypes.js.map
new file mode 100644
index 0000000..a367398
--- /dev/null
+++ b/node_modules/flora-colossus/lib/depTypes.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"depTypes.js","sourceRoot":"","sources":["../src/depTypes.ts"],"names":[],"mappings":";;AAAA,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,qCAAI,CAAA;IACJ,mCAAG,CAAA;IACH,6CAAQ,CAAA;IACR,qDAAY,CAAA;IACZ,qCAAI,CAAA;AACN,CAAC,EANW,OAAO,GAAP,eA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,YAAY,CAAC;gBAC1B;oBACE,OAAO,KAAK,CAAC;aAChB;QACH,KAAK,OAAO,CAAC,IAAI;YACf,QAAQ,OAAO,EAAE;gBACf,KAAK,OAAO,CAAC,IAAI,CAAC;gBAClB,KAAK,OAAO,CAAC,IAAI,CAAC;gBAClB,KAAK,OAAO,CAAC,QAAQ,CAAC;gBACtB,KAAK,OAAO,CAAC,GAAG,CAAC;gBACjB,KAAK,OAAO,CAAC,YAAY,CAAC;gBAC1B;oBACE,OAAO,KAAK,CAAC;aAChB;QACH;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC,CAAA;AAEY,QAAA,YAAY,GAAG,UAAC,UAAmB,EAAE,SAAkB;IAClE,IAAI,SAAS,KAAK,OAAO,CAAC,IAAI,EAAE;QAC9B,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;KAC1F;IACD,QAAQ,UAAU,EAAE;QAClB,KAAK,OAAO,CAAC,IAAI;YACf,OAAO,SAAS,CAAC;QACnB,KAAK,OAAO,CAAC,IAAI;YACf,IAAI,SAAS,KAAK,OAAO,CAAC,QAAQ;gBAAE,OAAO,OAAO,CAAC,QAAQ,CAAC;YAC5D,OAAO,OAAO,CAAC,IAAI,CAAC;QACtB,KAAK,OAAO,CAAC,QAAQ;YACnB,OAAO,OAAO,CAAC,QAAQ,CAAC;QAC1B,KAAK,OAAO,CAAC,YAAY;YACvB,OAAO,OAAO,CAAC,YAAY,CAAC;QAC9B,KAAK,OAAO,CAAC,GAAG;YACd,IAAI,SAAS,KAAK,OAAO,CAAC,QAAQ;gBAAE,OAAO,OAAO,CAAC,YAAY,CAAC;YAChE,OAAO,OAAO,CAAC,GAAG,CAAC;KACtB;AACH,CAAC,CAAA"} \ No newline at end of file
diff --git a/node_modules/flora-colossus/lib/index.d.ts b/node_modules/flora-colossus/lib/index.d.ts
new file mode 100644
index 0000000..5e3eee2
--- /dev/null
+++ b/node_modules/flora-colossus/lib/index.d.ts
@@ -0,0 +1,2 @@
+export * from './Walker';
+export * from './depTypes';
diff --git a/node_modules/flora-colossus/lib/index.js b/node_modules/flora-colossus/lib/index.js
new file mode 100644
index 0000000..efa196a
--- /dev/null
+++ b/node_modules/flora-colossus/lib/index.js
@@ -0,0 +1,8 @@
+"use strict";
+function __export(m) {
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
+}
+Object.defineProperty(exports, "__esModule", { value: true });
+__export(require("./Walker"));
+__export(require("./depTypes"));
+//# sourceMappingURL=index.js.map \ No newline at end of file
diff --git a/node_modules/flora-colossus/lib/index.js.map b/node_modules/flora-colossus/lib/index.js.map
new file mode 100644
index 0000000..67e73c7
--- /dev/null
+++ b/node_modules/flora-colossus/lib/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,8BAAyB;AACzB,gCAA2B"} \ No newline at end of file
diff --git a/node_modules/flora-colossus/lib/nativeModuleTypes.d.ts b/node_modules/flora-colossus/lib/nativeModuleTypes.d.ts
new file mode 100644
index 0000000..febfd58
--- /dev/null
+++ b/node_modules/flora-colossus/lib/nativeModuleTypes.d.ts
@@ -0,0 +1,5 @@
+export declare enum NativeModuleType {
+ NONE = 0,
+ NODE_GYP = 1,
+ PREBUILD = 2
+}
diff --git a/node_modules/flora-colossus/lib/nativeModuleTypes.js b/node_modules/flora-colossus/lib/nativeModuleTypes.js
new file mode 100644
index 0000000..58361ad
--- /dev/null
+++ b/node_modules/flora-colossus/lib/nativeModuleTypes.js
@@ -0,0 +1,9 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var NativeModuleType;
+(function (NativeModuleType) {
+ NativeModuleType[NativeModuleType["NONE"] = 0] = "NONE";
+ NativeModuleType[NativeModuleType["NODE_GYP"] = 1] = "NODE_GYP";
+ NativeModuleType[NativeModuleType["PREBUILD"] = 2] = "PREBUILD";
+})(NativeModuleType = exports.NativeModuleType || (exports.NativeModuleType = {}));
+//# sourceMappingURL=nativeModuleTypes.js.map \ No newline at end of file
diff --git a/node_modules/flora-colossus/lib/nativeModuleTypes.js.map b/node_modules/flora-colossus/lib/nativeModuleTypes.js.map
new file mode 100644
index 0000000..b2818bf
--- /dev/null
+++ b/node_modules/flora-colossus/lib/nativeModuleTypes.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"nativeModuleTypes.js","sourceRoot":"","sources":["../src/nativeModuleTypes.ts"],"names":[],"mappings":";;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uDAAI,CAAA;IACJ,+DAAQ,CAAA;IACR,+DAAQ,CAAA;AACV,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B"} \ No newline at end of file