rn-shiki 0.0.22 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/commonjs/index.js +5 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/vendor/shiki/index.d.js +20 -0
- package/lib/commonjs/vendor/shiki/index.d.js.map +1 -0
- package/lib/commonjs/vendor/shiki/index.js +10 -0
- package/lib/commonjs/vendor/shiki/index.js.map +1 -0
- package/lib/commonjs/vendor/shiki/manifest.json +365 -365
- package/lib/typescript/index.d.ts +3 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/scripts/build.js +29 -0
- package/src/index.ts +5 -1
- package/src/vendor/shiki/index.d.ts +7 -0
- package/src/vendor/shiki/index.js +8 -0
- package/src/vendor/shiki/manifest.json +365 -365
package/lib/commonjs/index.js
CHANGED
@@ -10,16 +10,17 @@ var _exportNames = {
|
|
10
10
|
Object.defineProperty(exports, "SyntaxHighlighter", {
|
11
11
|
enumerable: true,
|
12
12
|
get: function () {
|
13
|
-
return
|
13
|
+
return _SyntaxHighlighter.default;
|
14
14
|
}
|
15
15
|
});
|
16
16
|
Object.defineProperty(exports, "SyntaxLine", {
|
17
17
|
enumerable: true,
|
18
18
|
get: function () {
|
19
|
-
return
|
19
|
+
return _SyntaxLine.default;
|
20
20
|
}
|
21
21
|
});
|
22
|
-
var
|
22
|
+
var _SyntaxHighlighter = _interopRequireDefault(require("./components/syntax/SyntaxHighlighter"));
|
23
|
+
var _SyntaxLine = _interopRequireDefault(require("./components/syntax/SyntaxLine"));
|
23
24
|
var _shiki = require("./types/shiki");
|
24
25
|
Object.keys(_shiki).forEach(function (key) {
|
25
26
|
if (key === "default" || key === "__esModule") return;
|
@@ -32,4 +33,5 @@ Object.keys(_shiki).forEach(function (key) {
|
|
32
33
|
}
|
33
34
|
});
|
34
35
|
});
|
36
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
35
37
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["
|
1
|
+
{"version":3,"names":["_SyntaxHighlighter","_interopRequireDefault","require","_SyntaxLine","_shiki","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","e","__esModule","default"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,MAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAA6B,SAAAP,uBAAAgB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "createHighlighterCore", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function () {
|
9
|
+
return _core.createHighlighterCore;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
Object.defineProperty(exports, "createJavaScriptRegexEngine", {
|
13
|
+
enumerable: true,
|
14
|
+
get: function () {
|
15
|
+
return _engineJavascript.createJavaScriptRegexEngine;
|
16
|
+
}
|
17
|
+
});
|
18
|
+
var _core = require("./core/core");
|
19
|
+
var _engineJavascript = require("./core/engine-javascript");
|
20
|
+
//# sourceMappingURL=index.d.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["_core","require","_engineJavascript"],"sourceRoot":"../../../../src","sources":["vendor/shiki/index.d.ts"],"mappings":";;;;;;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA","ignoreList":[]}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.createHighlighterCore = require('./core/core').createHighlighterCore;
|
7
|
+
exports.createJavaScriptRegexEngine = require('./core/engine-javascript').createJavaScriptRegexEngine;
|
8
|
+
exports.themes = {};
|
9
|
+
exports.languages = {};
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["Object","defineProperty","exports","value","createHighlighterCore","require","createJavaScriptRegexEngine","themes","languages"],"sourceRoot":"../../../../src","sources":["vendor/shiki/index.js"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAE7DD,OAAO,CAACE,qBAAqB,GAAGC,OAAO,CAAC,aAAa,CAAC,CAACD,qBAAqB;AAC5EF,OAAO,CAACI,2BAA2B,GAAGD,OAAO,CAAC,0BAA0B,CAAC,CAACC,2BAA2B;AAErGJ,OAAO,CAACK,MAAM,GAAG,CAAC,CAAC;AACnBL,OAAO,CAACM,SAAS,GAAG,CAAC,CAAC","ignoreList":[]}
|