imdone-core 2.0.3 → 2.0.5
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/lib/adapters/all-emoji.js +1840 -0
- package/lib/adapters/index.js +1 -0
- package/lib/adapters/markdown.js +1 -2
- package/lib/card.js +1 -3
- package/lib/plugins/extension-plugin.js +2 -2
- package/lib/plugins/plugin-manager.js +2 -3
- package/package.json +1 -1
- package/types/adapters/all-emoji.d.ts +1840 -0
- package/types/adapters/index.d.ts +1 -0
- package/types/adapters/markdown.d.ts +1 -1
- package/types/card.d.ts +0 -1
- package/types/project.d.ts +3 -2
package/lib/adapters/index.js
CHANGED
package/lib/adapters/markdown.js
CHANGED
|
@@ -4,9 +4,8 @@ import mark from 'markdown-it-mark';
|
|
|
4
4
|
import _removeMD from 'remove-markdown';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import markdownIt from 'markdown-it';
|
|
7
|
-
import {
|
|
7
|
+
import { allEmoji } from './all-emoji.js'
|
|
8
8
|
|
|
9
|
-
export const allEmoji = createRequire(import.meta.url)('markdown-it-emoji/lib/data/full.json')
|
|
10
9
|
|
|
11
10
|
let _platform = process.platform
|
|
12
11
|
|
package/lib/card.js
CHANGED
|
@@ -8,11 +8,9 @@ import eol from 'eol'
|
|
|
8
8
|
import { getFunctionSignature } from './adapters/parsers/function-parser.js'
|
|
9
9
|
import { format, encodeMarkdownLinks, interpolate } from './adapters/parsers/content-transformer.js'
|
|
10
10
|
import { removeMD } from './adapters/markdown.js'
|
|
11
|
-
import { createRequire } from 'node:module';
|
|
12
11
|
import { logger } from './adapters/logger.js'
|
|
12
|
+
import { allEmoji } from './adapters/all-emoji.js'
|
|
13
13
|
|
|
14
|
-
const require = createRequire(import.meta.url);
|
|
15
|
-
export const allEmoji = require("markdown-it-emoji/lib/data/full.json")
|
|
16
14
|
|
|
17
15
|
const CONTENT_TOKEN = '__CONTENT__'
|
|
18
16
|
const lf = String(eol.lf)
|
|
@@ -3,8 +3,8 @@ import _path from 'path'
|
|
|
3
3
|
import { exists } from '../adapters/file-gateway.js'
|
|
4
4
|
import { createRequire } from 'node:module';
|
|
5
5
|
import { logger } from '../adapters/logger.js';
|
|
6
|
-
|
|
7
|
-
const require = createRequire(import.meta.url);
|
|
6
|
+
import { URL } from 'node:url';
|
|
7
|
+
const require = createRequire(new URL(import.meta.url));
|
|
8
8
|
|
|
9
9
|
export default class ExtensionPlugin extends Plugin {
|
|
10
10
|
constructor(project) {
|
|
@@ -16,10 +16,9 @@ import ArchivePlugin from './archive-plugin.js'
|
|
|
16
16
|
import EpicPlugin from './epic-plugin.js'
|
|
17
17
|
import ExtensionPlugin from './extension-plugin.js'
|
|
18
18
|
import { logger } from '../adapters/logger.js'
|
|
19
|
+
import { URL } from 'node:url'
|
|
19
20
|
|
|
20
|
-
const require = createRequire(import.meta.url);
|
|
21
|
-
const url = new URL(import.meta.url)
|
|
22
|
-
const __dirname = _path.dirname(url.pathname)
|
|
21
|
+
const require = createRequire(new URL(import.meta.url));
|
|
23
22
|
|
|
24
23
|
export class PluginManager extends Emitter {
|
|
25
24
|
constructor(project) {
|