@jackens/nnn 2024.8.25 → 2024.10.4
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/nnn.js +1 -1
- package/package.json +2 -2
- package/readme.md +3 -3
package/nnn.js
CHANGED
|
@@ -212,7 +212,7 @@ var nanolight = (pattern, highlighters, code) => {
|
|
|
212
212
|
};
|
|
213
213
|
|
|
214
214
|
// src/nnn/nanolightJs.ts
|
|
215
|
-
var nanolightJs = nanolight.bind(0, /('.*?'|".*?"|`[\s\S]*?`)|(\/\/.*?\n|\/\*[\s\S]*?\*\/)|(any|bigint|break|boolean|case|catch|class|const|continue|debugger|default|delete|do|else|eval|export|extends|false|finally|for|from|function|goto|if|import|in|instanceof|is|keyof|let|NaN|new|number|null|package|return|string|super|switch|symbol|this|throw|true|try|type|typeof|undefined|unknown|var|void|while|with|yield)(?!\w)|([<>=.?:&|!^~*/%+-])|(0x[\
|
|
215
|
+
var nanolightJs = nanolight.bind(0, /('.*?'|".*?"|`[\s\S]*?`)|(\/\/.*?\n|\/\*[\s\S]*?\*\/)|(any|bigint|break|boolean|case|catch|class|const|continue|debugger|default|delete|do|else|eval|export|extends|false|finally|for|from|function|goto|if|import|in|instanceof|is|keyof|let|NaN|new|number|null|package|return|string|super|switch|symbol|this|throw|true|try|type|typeof|undefined|unknown|var|void|while|with|yield)(?!\w)|([<>=.?:&|!^~*/%+-])|(0x[\dabcdef_]+|0o[01234567_]+|0b[01_]+|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?)|([$\w]+)(?=\()|([$\wąćęłńóśżźĄĆĘŁŃÓŚŻŹ]+)/, [
|
|
216
216
|
(chunk) => chunk,
|
|
217
217
|
(chunk) => ["span", { class: "string" }, chunk],
|
|
218
218
|
(chunk) => ["span", { class: "comment" }, chunk],
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Jackens’ JavaScript helpers.
|
|
4
4
|
|
|
5
|
-
<sub>Version: <code class="version">2024.
|
|
5
|
+
<sub>Version: <code class="version">2024.10.4</code></sub>
|
|
6
6
|
|
|
7
7
|
* [Documentation](https://jackens.github.io/nnn/doc/)
|
|
8
8
|
* [Tests](https://jackens.github.io/nnn/test/)
|
|
@@ -37,7 +37,7 @@ import { «something» } from './node_modules/@jackens/nnn/nnn.js'
|
|
|
37
37
|
or:
|
|
38
38
|
|
|
39
39
|
```js
|
|
40
|
-
import { «something» } from 'https://unpkg.com/@jackens/nnn@2024.
|
|
40
|
+
import { «something» } from 'https://unpkg.com/@jackens/nnn@2024.10.4/nnn.js'
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
## Exports
|
|
@@ -385,7 +385,7 @@ A generic helper for escaping `values` by given `escapeMap` (in *TemplateStrings
|
|
|
385
385
|
#### Usage Examples
|
|
386
386
|
|
|
387
387
|
```js
|
|
388
|
-
const /** @type {
|
|
388
|
+
const /** @type {EscapeMap} */ escapeMap = new Map([
|
|
389
389
|
[undefined, () => 'NULL'],
|
|
390
390
|
[Array, (/** @type {Partial<Array<unknown>>} */ values) => escapeValues(escapeMap, values).join(', ')],
|
|
391
391
|
[Boolean, (/** @type {boolean} */ value) => `b'${+value}'`],
|