Initial commit - full huishou project

This commit is contained in:
jiapengyu
2026-07-27 14:07:26 +08:00
commit 60790ad1b3
39127 changed files with 5989265 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=new WeakMap;function c(...t){const n=new String(t);return e.set(n,t),n}function o(t){return t instanceof String&&e.has(t)}function r(t){return e.get(t)??[]}exports.isPathSpec=o;exports.pathspec=c;exports.toPaths=r;
//# sourceMappingURL=index.cjs.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.cjs","sources":["../src/pathspec.ts"],"sourcesContent":["/**\n * Wraps one or more file paths in an object that `parseCli` recognises as\n * explicit pathspecs, routing them to `ParsedCLI.paths` regardless of whether\n * a `--` separator token is present.\n */\n\n// biome-ignore lint/complexity/noBannedTypes: <Uses String object to satisfy WeakMap requiremetn>\nconst cache = new WeakMap<String, string[]>();\n\nexport function pathspec(...paths: string[]): string {\n const key = new String(paths);\n cache.set(key, paths);\n return key as string;\n}\n\nexport function isPathSpec(value: unknown): value is string {\n return value instanceof String && cache.has(value);\n}\n\nexport function toPaths(value: string): string[] {\n return cache.get(value) ?? [];\n}\n"],"names":["cache","pathspec","paths","key","isPathSpec","value","toPaths"],"mappings":"gFAOA,MAAMA,MAAY,QAEX,SAASC,KAAYC,EAAyB,CAClD,MAAMC,EAAM,IAAI,OAAOD,CAAK,EAC5B,OAAAF,EAAM,IAAIG,EAAKD,CAAK,EACbC,CACV,CAEO,SAASC,EAAWC,EAAiC,CACzD,OAAOA,aAAiB,QAAUL,EAAM,IAAIK,CAAK,CACpD,CAEO,SAASC,EAAQD,EAAyB,CAC9C,OAAOL,EAAM,IAAIK,CAAK,GAAK,CAAA,CAC9B"}
+1
View File
@@ -0,0 +1 @@
export { isPathSpec, pathspec, toPaths } from './src/pathspec';
+17
View File
@@ -0,0 +1,17 @@
const t = /* @__PURE__ */ new WeakMap();
function c(...n) {
const e = new String(n);
return t.set(e, n), e;
}
function r(n) {
return n instanceof String && t.has(n);
}
function o(n) {
return t.get(n) ?? [];
}
export {
r as isPathSpec,
c as pathspec,
o as toPaths
};
//# sourceMappingURL=index.mjs.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.mjs","sources":["../src/pathspec.ts"],"sourcesContent":["/**\n * Wraps one or more file paths in an object that `parseCli` recognises as\n * explicit pathspecs, routing them to `ParsedCLI.paths` regardless of whether\n * a `--` separator token is present.\n */\n\n// biome-ignore lint/complexity/noBannedTypes: <Uses String object to satisfy WeakMap requiremetn>\nconst cache = new WeakMap<String, string[]>();\n\nexport function pathspec(...paths: string[]): string {\n const key = new String(paths);\n cache.set(key, paths);\n return key as string;\n}\n\nexport function isPathSpec(value: unknown): value is string {\n return value instanceof String && cache.has(value);\n}\n\nexport function toPaths(value: string): string[] {\n return cache.get(value) ?? [];\n}\n"],"names":["cache","pathspec","paths","key","isPathSpec","value","toPaths"],"mappings":"AAOA,MAAMA,wBAAY,QAAA;AAEX,SAASC,KAAYC,GAAyB;AAClD,QAAMC,IAAM,IAAI,OAAOD,CAAK;AAC5B,SAAAF,EAAM,IAAIG,GAAKD,CAAK,GACbC;AACV;AAEO,SAASC,EAAWC,GAAiC;AACzD,SAAOA,aAAiB,UAAUL,EAAM,IAAIK,CAAK;AACpD;AAEO,SAASC,EAAQD,GAAyB;AAC9C,SAAOL,EAAM,IAAIK,CAAK,KAAK,CAAA;AAC9B;"}
+8
View File
@@ -0,0 +1,8 @@
/**
* Wraps one or more file paths in an object that `parseCli` recognises as
* explicit pathspecs, routing them to `ParsedCLI.paths` regardless of whether
* a `--` separator token is present.
*/
export declare function pathspec(...paths: string[]): string;
export declare function isPathSpec(value: unknown): value is string;
export declare function toPaths(value: string): string[];
+32
View File
@@ -0,0 +1,32 @@
{
"name": "@simple-git/args-pathspec",
"version": "1.0.3",
"main": "dist/index.cjs",
"files": [
"dist"
],
"keywords": [
"git",
"source control",
"vcs",
"simple-git"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/steveukx/git-js.git",
"directory": "packages/args-pathspec"
},
"publishConfig": {
"access": "public"
},
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
}
}