@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.
Files changed (3) hide show
  1. package/nnn.js +1 -1
  2. package/package.json +2 -2
  3. 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[\dabcdef]+|0o[01234567]+|0b[01]+|\d+(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?)|([$\w]+)(?=\()|([$\wąćęłńóśżźĄĆĘŁŃÓŚŻŹ]+)/, [
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
@@ -36,5 +36,5 @@
36
36
  "name": "@jackens/nnn",
37
37
  "type": "module",
38
38
  "types": "nnn.d.ts",
39
- "version": "2024.8.25"
40
- }
39
+ "version": "2024.10.4"
40
+ }
package/readme.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Jackens’ JavaScript helpers.
4
4
 
5
- <sub>Version: <code class="version">2024.8.25</code></sub>
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.8.25/nnn.js'
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 {import('../dist/nnn.js').EscapeMap} */ escapeMap = new Map([
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}'`],