wunified-rehype-stringify 0.0.1

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.
@@ -0,0 +1,5 @@
1
+ import { UntypedProcessor, WUnifiedPlugin } from "wp-unified";
2
+ export default class WRehypeStringify extends WUnifiedPlugin {
3
+ apply(processor: UntypedProcessor, options: any): UntypedProcessor;
4
+ }
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAG7D,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,cAAc;IACxD,KAAK,CAAC,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,GAAG,GAAG,gBAAgB;CAMrE"}
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const wp_unified_1 = require("wp-unified");
7
+ const rehype_stringify_1 = __importDefault(require("rehype-stringify"));
8
+ class WRehypeStringify extends wp_unified_1.WUnifiedPlugin {
9
+ apply(processor, options) {
10
+ if (options === undefined)
11
+ return processor.use(rehype_stringify_1.default);
12
+ else
13
+ return processor.use(rehype_stringify_1.default, options);
14
+ }
15
+ }
16
+ exports.default = WRehypeStringify;
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,2CAA6D;AAC7D,wEAA8C;AAE9C,MAAqB,gBAAiB,SAAQ,2BAAc;IACxD,KAAK,CAAC,SAA2B,EAAE,OAAY;QAC3C,IAAI,OAAO,KAAK,SAAS;YACrB,OAAO,SAAS,CAAC,GAAG,CAAC,0BAAe,CAAC,CAAA;;YAErC,OAAO,SAAS,CAAC,GAAG,CAAC,0BAAe,EAAE,OAAO,CAAC,CAAA;IACtD,CAAC;CACJ;AAPD,mCAOC"}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "wunified-rehype-stringify",
3
+ "version": "0.0.1",
4
+ "description": "UnifiedJS::RehypeStringify for Webpan",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/siriusmart/wunified-rehype-stringify.git"
13
+ },
14
+ "keywords": [],
15
+ "author": "",
16
+ "license": "AGPL-3.0-only",
17
+ "type": "commonjs",
18
+ "bugs": {
19
+ "url": "https://github.com/siriusmart/wunified-rehype-stringify/issues"
20
+ },
21
+ "homepage": "https://github.com/siriusmart/wunified-rehype-stringify#readme",
22
+ "devDependencies": {
23
+ "@types/node": "^24.4.0"
24
+ },
25
+ "dependencies": {
26
+ "rehype-stringify": "^10.0.1",
27
+ "unified": "^11.0.5",
28
+ "wp-unified": "^0.0.2"
29
+ }
30
+ }
package/src/index.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { UntypedProcessor, WUnifiedPlugin } from "wp-unified"
2
+ import rehypeStringify from "rehype-stringify"
3
+
4
+ export default class WRehypeStringify extends WUnifiedPlugin {
5
+ apply(processor: UntypedProcessor, options: any): UntypedProcessor {
6
+ if (options === undefined)
7
+ return processor.use(rehypeStringify)
8
+ else
9
+ return processor.use(rehypeStringify, options)
10
+ }
11
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ // Visit https://aka.ms/tsconfig to read more about this file
3
+ "compilerOptions": {
4
+ // File Layout
5
+ "rootDir": "./src",
6
+ "outDir": "./dist",
7
+
8
+ // Environment Settings
9
+ // See also https://aka.ms/tsconfig/module
10
+ "module": "nodenext",
11
+ "target": "esnext",
12
+ // "types": [],
13
+ // For nodejs:
14
+ "lib": ["esnext"],
15
+ "types": ["node"],
16
+ // and npm install -D @types/node
17
+
18
+ // Other Outputs
19
+ "sourceMap": true,
20
+ "declaration": true,
21
+ "declarationMap": true,
22
+
23
+ // Stricter Typechecking Options
24
+ "noUncheckedIndexedAccess": true,
25
+ "exactOptionalPropertyTypes": true,
26
+
27
+ // Style Options
28
+ // "noImplicitReturns": true,
29
+ // "noImplicitOverride": true,
30
+ // "noUnusedLocals": true,
31
+ // "noUnusedParameters": true,
32
+ // "noFallthroughCasesInSwitch": true,
33
+ // "noPropertyAccessFromIndexSignature": true,
34
+
35
+ // Recommended Options
36
+ "strict": true,
37
+ "jsx": "react-jsx",
38
+ "verbatimModuleSyntax": false,
39
+ "isolatedModules": true,
40
+ "noUncheckedSideEffectImports": true,
41
+ "moduleDetection": "force",
42
+ "skipLibCheck": true,
43
+ }
44
+ }