@mdfn/registry 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.cjs +72 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -0
- package/package.json +16 -0
package/README.md
ADDED
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
MDFN_REGISTRY_VERSION: () => MDFN_REGISTRY_VERSION,
|
|
24
|
+
createRegistry: () => createRegistry
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(index_exports);
|
|
27
|
+
var import_core = require("@mdfn/core");
|
|
28
|
+
function createRegistry(input = {}) {
|
|
29
|
+
const extensions = /* @__PURE__ */ new Map();
|
|
30
|
+
const profiles = /* @__PURE__ */ new Map();
|
|
31
|
+
const registerExtension = (extension) => {
|
|
32
|
+
if (extensions.has(extension.name)) throw new Error(`MDFN_REGISTRY_EXTENSION_EXISTS:${extension.name}`);
|
|
33
|
+
(0, import_core.resolveExtensions)([...extensions.values(), extension]);
|
|
34
|
+
extensions.set(extension.name, extension);
|
|
35
|
+
};
|
|
36
|
+
for (const extension of (0, import_core.resolveExtensions)(input.extensions ?? []).extensions) extensions.set(extension.name, extension);
|
|
37
|
+
const registerProfile = (profile) => {
|
|
38
|
+
if (!profile.name || !profile.version) throw new Error("MDFN_REGISTRY_PROFILE_INVALID");
|
|
39
|
+
if (profiles.has(profile.name)) throw new Error(`MDFN_REGISTRY_PROFILE_EXISTS:${profile.name}`);
|
|
40
|
+
for (const name of profile.extensions) if (!extensions.has(name)) throw new Error(`MDFN_REGISTRY_PROFILE_EXTENSION_MISSING:${name}`);
|
|
41
|
+
profiles.set(profile.name, Object.freeze({ ...profile, extensions: Object.freeze([...profile.extensions]) }));
|
|
42
|
+
};
|
|
43
|
+
for (const profile of input.profiles ?? []) registerProfile(profile);
|
|
44
|
+
return {
|
|
45
|
+
registerExtension,
|
|
46
|
+
registerProfile,
|
|
47
|
+
extension: (name) => extensions.get(name),
|
|
48
|
+
profile(name) {
|
|
49
|
+
const profile = profiles.get(name);
|
|
50
|
+
if (!profile) throw new Error(`MDFN_REGISTRY_PROFILE_MISSING:${name}`);
|
|
51
|
+
const selected = /* @__PURE__ */ new Map();
|
|
52
|
+
const include = (extensionName) => {
|
|
53
|
+
if (selected.has(extensionName)) return;
|
|
54
|
+
const extension = extensions.get(extensionName);
|
|
55
|
+
if (!extension) throw new Error(`MDFN_REGISTRY_PROFILE_EXTENSION_MISSING:${extensionName}`);
|
|
56
|
+
for (const dependency of extension.dependencies ?? []) include(dependency);
|
|
57
|
+
selected.set(extensionName, extension);
|
|
58
|
+
};
|
|
59
|
+
for (const extension of profile.extensions) include(extension);
|
|
60
|
+
return { ...profile, registry: (0, import_core.resolveExtensions)([...selected.values()]) };
|
|
61
|
+
},
|
|
62
|
+
listExtensions: () => Object.freeze([...extensions.values()]),
|
|
63
|
+
listProfiles: () => Object.freeze([...profiles.values()])
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
var MDFN_REGISTRY_VERSION = "0.1.0";
|
|
67
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
+
0 && (module.exports = {
|
|
69
|
+
MDFN_REGISTRY_VERSION,
|
|
70
|
+
createRegistry
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { resolveExtensions, type MdfnExtension, type ResolvedExtensionRegistry } from \"@mdfn/core\";\n\nexport interface MdfnProfile {\n readonly name: string;\n readonly version: string;\n readonly extensions: readonly string[];\n readonly description?: string;\n readonly rawHtml?: \"disabled\" | \"sanitized\";\n}\n\nexport interface ResolvedMdfnProfile extends MdfnProfile {\n readonly registry: ResolvedExtensionRegistry;\n}\n\nexport interface MdfnRegistry {\n registerExtension(extension: MdfnExtension): void;\n registerProfile(profile: MdfnProfile): void;\n extension(name: string): MdfnExtension | undefined;\n profile(name: string): ResolvedMdfnProfile;\n listExtensions(): readonly MdfnExtension[];\n listProfiles(): readonly MdfnProfile[];\n}\n\nexport function createRegistry(input: { readonly extensions?: readonly MdfnExtension[]; readonly profiles?: readonly MdfnProfile[] } = {}): MdfnRegistry {\n const extensions = new Map<string, MdfnExtension>();\n const profiles = new Map<string, MdfnProfile>();\n const registerExtension = (extension: MdfnExtension): void => {\n if (extensions.has(extension.name)) throw new Error(`MDFN_REGISTRY_EXTENSION_EXISTS:${extension.name}`);\n // Resolve a complete temporary set so dependency and security policy errors surface at registration time.\n resolveExtensions([...extensions.values(), extension]);\n extensions.set(extension.name, extension);\n };\n for (const extension of resolveExtensions(input.extensions ?? []).extensions) extensions.set(extension.name, extension);\n const registerProfile = (profile: MdfnProfile): void => {\n if (!profile.name || !profile.version) throw new Error(\"MDFN_REGISTRY_PROFILE_INVALID\");\n if (profiles.has(profile.name)) throw new Error(`MDFN_REGISTRY_PROFILE_EXISTS:${profile.name}`);\n for (const name of profile.extensions) if (!extensions.has(name)) throw new Error(`MDFN_REGISTRY_PROFILE_EXTENSION_MISSING:${name}`);\n profiles.set(profile.name, Object.freeze({ ...profile, extensions: Object.freeze([...profile.extensions]) }));\n };\n for (const profile of input.profiles ?? []) registerProfile(profile);\n return {\n registerExtension,\n registerProfile,\n extension: (name) => extensions.get(name),\n profile(name) {\n const profile = profiles.get(name);\n if (!profile) throw new Error(`MDFN_REGISTRY_PROFILE_MISSING:${name}`);\n const selected = new Map<string, MdfnExtension>();\n const include = (extensionName: string): void => {\n if (selected.has(extensionName)) return;\n const extension = extensions.get(extensionName);\n if (!extension) throw new Error(`MDFN_REGISTRY_PROFILE_EXTENSION_MISSING:${extensionName}`);\n for (const dependency of extension.dependencies ?? []) include(dependency);\n selected.set(extensionName, extension);\n };\n for (const extension of profile.extensions) include(extension);\n return { ...profile, registry: resolveExtensions([...selected.values()]) };\n },\n listExtensions: () => Object.freeze([...extensions.values()]),\n listProfiles: () => Object.freeze([...profiles.values()]),\n };\n}\n\nexport const MDFN_REGISTRY_VERSION = \"0.1.0\" as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAsF;AAuB/E,SAAS,eAAe,QAAwG,CAAC,GAAiB;AACvJ,QAAM,aAAa,oBAAI,IAA2B;AAClD,QAAM,WAAW,oBAAI,IAAyB;AAC9C,QAAM,oBAAoB,CAAC,cAAmC;AAC5D,QAAI,WAAW,IAAI,UAAU,IAAI,EAAG,OAAM,IAAI,MAAM,kCAAkC,UAAU,IAAI,EAAE;AAEtG,uCAAkB,CAAC,GAAG,WAAW,OAAO,GAAG,SAAS,CAAC;AACrD,eAAW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AAkB,CAAC,GAAG,SAAS,OAAO,CAAC,CAAC,EAAE;AAAA,IAC3E;AAAA,IACA,gBAAgB,MAAM,OAAO,OAAO,CAAC,GAAG,WAAW,OAAO,CAAC,CAAC;AAAA,IAC5D,cAAc,MAAM,OAAO,OAAO,CAAC,GAAG,SAAS,OAAO,CAAC,CAAC;AAAA,EAC1D;AACF;AAEO,IAAM,wBAAwB;","names":[]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MdfnExtension, ResolvedExtensionRegistry } from '@mdfn/core';
|
|
2
|
+
|
|
3
|
+
interface MdfnProfile {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly version: string;
|
|
6
|
+
readonly extensions: readonly string[];
|
|
7
|
+
readonly description?: string;
|
|
8
|
+
readonly rawHtml?: "disabled" | "sanitized";
|
|
9
|
+
}
|
|
10
|
+
interface ResolvedMdfnProfile extends MdfnProfile {
|
|
11
|
+
readonly registry: ResolvedExtensionRegistry;
|
|
12
|
+
}
|
|
13
|
+
interface MdfnRegistry {
|
|
14
|
+
registerExtension(extension: MdfnExtension): void;
|
|
15
|
+
registerProfile(profile: MdfnProfile): void;
|
|
16
|
+
extension(name: string): MdfnExtension | undefined;
|
|
17
|
+
profile(name: string): ResolvedMdfnProfile;
|
|
18
|
+
listExtensions(): readonly MdfnExtension[];
|
|
19
|
+
listProfiles(): readonly MdfnProfile[];
|
|
20
|
+
}
|
|
21
|
+
declare function createRegistry(input?: {
|
|
22
|
+
readonly extensions?: readonly MdfnExtension[];
|
|
23
|
+
readonly profiles?: readonly MdfnProfile[];
|
|
24
|
+
}): MdfnRegistry;
|
|
25
|
+
declare const MDFN_REGISTRY_VERSION: "0.1.0";
|
|
26
|
+
|
|
27
|
+
export { MDFN_REGISTRY_VERSION, type MdfnProfile, type MdfnRegistry, type ResolvedMdfnProfile, createRegistry };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MdfnExtension, ResolvedExtensionRegistry } from '@mdfn/core';
|
|
2
|
+
|
|
3
|
+
interface MdfnProfile {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly version: string;
|
|
6
|
+
readonly extensions: readonly string[];
|
|
7
|
+
readonly description?: string;
|
|
8
|
+
readonly rawHtml?: "disabled" | "sanitized";
|
|
9
|
+
}
|
|
10
|
+
interface ResolvedMdfnProfile extends MdfnProfile {
|
|
11
|
+
readonly registry: ResolvedExtensionRegistry;
|
|
12
|
+
}
|
|
13
|
+
interface MdfnRegistry {
|
|
14
|
+
registerExtension(extension: MdfnExtension): void;
|
|
15
|
+
registerProfile(profile: MdfnProfile): void;
|
|
16
|
+
extension(name: string): MdfnExtension | undefined;
|
|
17
|
+
profile(name: string): ResolvedMdfnProfile;
|
|
18
|
+
listExtensions(): readonly MdfnExtension[];
|
|
19
|
+
listProfiles(): readonly MdfnProfile[];
|
|
20
|
+
}
|
|
21
|
+
declare function createRegistry(input?: {
|
|
22
|
+
readonly extensions?: readonly MdfnExtension[];
|
|
23
|
+
readonly profiles?: readonly MdfnProfile[];
|
|
24
|
+
}): MdfnRegistry;
|
|
25
|
+
declare const MDFN_REGISTRY_VERSION: "0.1.0";
|
|
26
|
+
|
|
27
|
+
export { MDFN_REGISTRY_VERSION, type MdfnProfile, type MdfnRegistry, type ResolvedMdfnProfile, createRegistry };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { resolveExtensions } from "@mdfn/core";
|
|
3
|
+
function createRegistry(input = {}) {
|
|
4
|
+
const extensions = /* @__PURE__ */ new Map();
|
|
5
|
+
const profiles = /* @__PURE__ */ new Map();
|
|
6
|
+
const registerExtension = (extension) => {
|
|
7
|
+
if (extensions.has(extension.name)) throw new Error(`MDFN_REGISTRY_EXTENSION_EXISTS:${extension.name}`);
|
|
8
|
+
resolveExtensions([...extensions.values(), extension]);
|
|
9
|
+
extensions.set(extension.name, extension);
|
|
10
|
+
};
|
|
11
|
+
for (const extension of resolveExtensions(input.extensions ?? []).extensions) extensions.set(extension.name, extension);
|
|
12
|
+
const registerProfile = (profile) => {
|
|
13
|
+
if (!profile.name || !profile.version) throw new Error("MDFN_REGISTRY_PROFILE_INVALID");
|
|
14
|
+
if (profiles.has(profile.name)) throw new Error(`MDFN_REGISTRY_PROFILE_EXISTS:${profile.name}`);
|
|
15
|
+
for (const name of profile.extensions) if (!extensions.has(name)) throw new Error(`MDFN_REGISTRY_PROFILE_EXTENSION_MISSING:${name}`);
|
|
16
|
+
profiles.set(profile.name, Object.freeze({ ...profile, extensions: Object.freeze([...profile.extensions]) }));
|
|
17
|
+
};
|
|
18
|
+
for (const profile of input.profiles ?? []) registerProfile(profile);
|
|
19
|
+
return {
|
|
20
|
+
registerExtension,
|
|
21
|
+
registerProfile,
|
|
22
|
+
extension: (name) => extensions.get(name),
|
|
23
|
+
profile(name) {
|
|
24
|
+
const profile = profiles.get(name);
|
|
25
|
+
if (!profile) throw new Error(`MDFN_REGISTRY_PROFILE_MISSING:${name}`);
|
|
26
|
+
const selected = /* @__PURE__ */ new Map();
|
|
27
|
+
const include = (extensionName) => {
|
|
28
|
+
if (selected.has(extensionName)) return;
|
|
29
|
+
const extension = extensions.get(extensionName);
|
|
30
|
+
if (!extension) throw new Error(`MDFN_REGISTRY_PROFILE_EXTENSION_MISSING:${extensionName}`);
|
|
31
|
+
for (const dependency of extension.dependencies ?? []) include(dependency);
|
|
32
|
+
selected.set(extensionName, extension);
|
|
33
|
+
};
|
|
34
|
+
for (const extension of profile.extensions) include(extension);
|
|
35
|
+
return { ...profile, registry: resolveExtensions([...selected.values()]) };
|
|
36
|
+
},
|
|
37
|
+
listExtensions: () => Object.freeze([...extensions.values()]),
|
|
38
|
+
listProfiles: () => Object.freeze([...profiles.values()])
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
var MDFN_REGISTRY_VERSION = "0.1.0";
|
|
42
|
+
export {
|
|
43
|
+
MDFN_REGISTRY_VERSION,
|
|
44
|
+
createRegistry
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { resolveExtensions, type MdfnExtension, type ResolvedExtensionRegistry } from \"@mdfn/core\";\n\nexport interface MdfnProfile {\n readonly name: string;\n readonly version: string;\n readonly extensions: readonly string[];\n readonly description?: string;\n readonly rawHtml?: \"disabled\" | \"sanitized\";\n}\n\nexport interface ResolvedMdfnProfile extends MdfnProfile {\n readonly registry: ResolvedExtensionRegistry;\n}\n\nexport interface MdfnRegistry {\n registerExtension(extension: MdfnExtension): void;\n registerProfile(profile: MdfnProfile): void;\n extension(name: string): MdfnExtension | undefined;\n profile(name: string): ResolvedMdfnProfile;\n listExtensions(): readonly MdfnExtension[];\n listProfiles(): readonly MdfnProfile[];\n}\n\nexport function createRegistry(input: { readonly extensions?: readonly MdfnExtension[]; readonly profiles?: readonly MdfnProfile[] } = {}): MdfnRegistry {\n const extensions = new Map<string, MdfnExtension>();\n const profiles = new Map<string, MdfnProfile>();\n const registerExtension = (extension: MdfnExtension): void => {\n if (extensions.has(extension.name)) throw new Error(`MDFN_REGISTRY_EXTENSION_EXISTS:${extension.name}`);\n // Resolve a complete temporary set so dependency and security policy errors surface at registration time.\n resolveExtensions([...extensions.values(), extension]);\n extensions.set(extension.name, extension);\n };\n for (const extension of resolveExtensions(input.extensions ?? []).extensions) extensions.set(extension.name, extension);\n const registerProfile = (profile: MdfnProfile): void => {\n if (!profile.name || !profile.version) throw new Error(\"MDFN_REGISTRY_PROFILE_INVALID\");\n if (profiles.has(profile.name)) throw new Error(`MDFN_REGISTRY_PROFILE_EXISTS:${profile.name}`);\n for (const name of profile.extensions) if (!extensions.has(name)) throw new Error(`MDFN_REGISTRY_PROFILE_EXTENSION_MISSING:${name}`);\n profiles.set(profile.name, Object.freeze({ ...profile, extensions: Object.freeze([...profile.extensions]) }));\n };\n for (const profile of input.profiles ?? []) registerProfile(profile);\n return {\n registerExtension,\n registerProfile,\n extension: (name) => extensions.get(name),\n profile(name) {\n const profile = profiles.get(name);\n if (!profile) throw new Error(`MDFN_REGISTRY_PROFILE_MISSING:${name}`);\n const selected = new Map<string, MdfnExtension>();\n const include = (extensionName: string): void => {\n if (selected.has(extensionName)) return;\n const extension = extensions.get(extensionName);\n if (!extension) throw new Error(`MDFN_REGISTRY_PROFILE_EXTENSION_MISSING:${extensionName}`);\n for (const dependency of extension.dependencies ?? []) include(dependency);\n selected.set(extensionName, extension);\n };\n for (const extension of profile.extensions) include(extension);\n return { ...profile, registry: resolveExtensions([...selected.values()]) };\n },\n listExtensions: () => Object.freeze([...extensions.values()]),\n listProfiles: () => Object.freeze([...profiles.values()]),\n };\n}\n\nexport const MDFN_REGISTRY_VERSION = \"0.1.0\" as const;\n"],"mappings":";AAAA,SAAS,yBAA6E;AAuB/E,SAAS,eAAe,QAAwG,CAAC,GAAiB;AACvJ,QAAM,aAAa,oBAAI,IAA2B;AAClD,QAAM,WAAW,oBAAI,IAAyB;AAC9C,QAAM,oBAAoB,CAAC,cAAmC;AAC5D,QAAI,WAAW,IAAI,UAAU,IAAI,EAAG,OAAM,IAAI,MAAM,kCAAkC,UAAU,IAAI,EAAE;AAEtG,sBAAkB,CAAC,GAAG,WAAW,OAAO,GAAG,SAAS,CAAC;AACrD,eAAW,IAAI,UAAU,MAAM,SAAS;AAAA,EAC1C;AACA,aAAW,aAAa,kBAAkB,MAAM,cAAc,CAAC,CAAC,EAAE,WAAY,YAAW,IAAI,UAAU,MAAM,SAAS;AACtH,QAAM,kBAAkB,CAAC,YAA+B;AACtD,QAAI,CAAC,QAAQ,QAAQ,CAAC,QAAQ,QAAS,OAAM,IAAI,MAAM,+BAA+B;AACtF,QAAI,SAAS,IAAI,QAAQ,IAAI,EAAG,OAAM,IAAI,MAAM,gCAAgC,QAAQ,IAAI,EAAE;AAC9F,eAAW,QAAQ,QAAQ,WAAY,KAAI,C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+
"description": "Validated extension and editor profile recipes for mdfn",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } },
|
|
10
|
+
"scripts": { "build": "tsup src/index.ts --format esm,cjs --dts --sourcemap --clean", "test": "vitest run", "typecheck": "tsc --noEmit -p tsconfig.json", "lint": "tsc --noEmit -p tsconfig.json", "prepack": "npm run build" },
|
|
11
|
+
"dependencies": { "@mdfn/core": "0.1.0" },
|
|
12
|
+
"devDependencies": { "@mdfn/extensions": "0.1.0", "tsup": "^8.0.0", "typescript": "^5.3.0", "vitest": "3.2.4" },
|
|
13
|
+
"files": ["dist", "README.md"], "sideEffects": false, "license": "MIT", "engines": { "node": ">=20 <25" },
|
|
14
|
+
"repository": { "type": "git", "url": "git+https://github.com/21nCo/super-functions.git", "directory": "mdfn/registry" }, "publishConfig": { "access": "public" },
|
|
15
|
+
"mdfn": { "status": "stable-candidate", "layer": "registry", "schemaVersion": 1 }
|
|
16
|
+
}
|