Initial commit: New MoreminiMore website with fresh design
This commit is contained in:
21
node_modules/@neon-rs/load/LICENSE
generated
vendored
Normal file
21
node_modules/@neon-rs/load/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2023 David Herman
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
102
node_modules/@neon-rs/load/dist/index.js
generated
vendored
Normal file
102
node_modules/@neon-rs/load/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.load = exports.currentTarget = void 0;
|
||||
const path = __importStar(require("path"));
|
||||
const fs = __importStar(require("fs"));
|
||||
function currentTarget() {
|
||||
let os = null;
|
||||
switch (process.platform) {
|
||||
case 'android':
|
||||
switch (process.arch) {
|
||||
case 'arm':
|
||||
return 'android-arm-eabi';
|
||||
case 'arm64':
|
||||
return 'android-arm64';
|
||||
}
|
||||
os = 'Android';
|
||||
break;
|
||||
case 'win32':
|
||||
switch (process.arch) {
|
||||
case 'x64':
|
||||
return 'win32-x64-msvc';
|
||||
case 'arm64':
|
||||
return 'win32-arm64-msvc';
|
||||
case 'ia32':
|
||||
return 'win32-ia32-msvc';
|
||||
}
|
||||
os = 'Windows';
|
||||
break;
|
||||
case 'darwin':
|
||||
switch (process.arch) {
|
||||
case 'x64':
|
||||
return 'darwin-x64';
|
||||
case 'arm64':
|
||||
return 'darwin-arm64';
|
||||
}
|
||||
os = 'macOS';
|
||||
break;
|
||||
case 'linux':
|
||||
switch (process.arch) {
|
||||
case 'x64':
|
||||
case 'arm64':
|
||||
return isGlibc()
|
||||
? `linux-${process.arch}-gnu`
|
||||
: `linux-${process.arch}-musl`;
|
||||
case 'arm':
|
||||
return 'linux-arm-gnueabihf';
|
||||
}
|
||||
os = 'Linux';
|
||||
break;
|
||||
case 'freebsd':
|
||||
if (process.arch === 'x64') {
|
||||
return 'freebsd-x64';
|
||||
}
|
||||
os = 'FreeBSD';
|
||||
break;
|
||||
}
|
||||
if (os) {
|
||||
throw new Error(`Neon: unsupported ${os} architecture: ${process.arch}`);
|
||||
}
|
||||
throw new Error(`Neon: unsupported system: ${process.platform}`);
|
||||
}
|
||||
exports.currentTarget = currentTarget;
|
||||
function isGlibc() {
|
||||
// Cast to unknown to work around a bug in the type definition:
|
||||
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/40140
|
||||
const report = process.report?.getReport();
|
||||
if ((typeof report !== 'object') || !report || (!('header' in report))) {
|
||||
return false;
|
||||
}
|
||||
const header = report.header;
|
||||
return (typeof header === 'object') &&
|
||||
!!header &&
|
||||
('glibcVersionRuntime' in header);
|
||||
}
|
||||
function load(dirname) {
|
||||
const m = path.join(dirname, "index.node");
|
||||
return fs.existsSync(m) ? require(m) : null;
|
||||
}
|
||||
exports.load = load;
|
||||
37
node_modules/@neon-rs/load/package.json
generated
vendored
Normal file
37
node_modules/@neon-rs/load/package.json
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "@neon-rs/load",
|
||||
"version": "0.0.4",
|
||||
"description": "Utilities for loading Neon modules.",
|
||||
"main": "dist/index.js",
|
||||
"types": "types/index.d.ts",
|
||||
"files": [
|
||||
"dist/**/*",
|
||||
"types/**/*"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"pretest": "npm run build",
|
||||
"prepack": "npm run build",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/dherman/neon-rs.git"
|
||||
},
|
||||
"keywords": [
|
||||
"Neon",
|
||||
"Rust",
|
||||
"Node"
|
||||
],
|
||||
"author": "Dave Herman <david.herman@gmail.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/dherman/neon-rs/issues"
|
||||
},
|
||||
"homepage": "https://github.com/dherman/neon-rs#readme",
|
||||
"devDependencies": {
|
||||
"@tsconfig/node16": "^1.0.3",
|
||||
"@types/node": "^18.15.11",
|
||||
"typescript": "^5.0.4"
|
||||
}
|
||||
}
|
||||
2
node_modules/@neon-rs/load/types/index.d.ts
generated
vendored
Normal file
2
node_modules/@neon-rs/load/types/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function currentTarget(): string;
|
||||
export declare function load(dirname: string): any;
|
||||
Reference in New Issue
Block a user