@thi.ng/proctext 1.0.46 → 1.0.48

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/README.md +1 -1
  2. package/generate.js +3 -3
  3. package/package.json +11 -11
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 210 standalone projects, maintained as part
10
+ > This is one of 211 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/generate.js CHANGED
@@ -86,7 +86,7 @@ const __transformScope = defmulti(
86
86
  // handler for processing the root node (just traverses children)
87
87
  root: async ({ children }, ctx, acc) => {
88
88
  if (!children) return;
89
- for (let x of children[0].children)
89
+ for (const x of children[0].children)
90
90
  await __transformScope(x, ctx, acc);
91
91
  },
92
92
  // handler for a new variable definition and its possible values
@@ -118,7 +118,7 @@ const __transformScope = defmulti(
118
118
  const __resolveVarName = (name, ctx) => {
119
119
  if (name.indexOf(".") == -1) return name;
120
120
  let resolved = "";
121
- for (let x of name.split(".")) {
121
+ for (const x of name.split(".")) {
122
122
  const $name = resolved + "." + x;
123
123
  const $var = resolved ? ctx.vars[$name] : ctx.vars[x];
124
124
  if ($var)
@@ -145,7 +145,7 @@ const __expandVar = async ({ children }, ctx) => {
145
145
  }
146
146
  let value = result.result;
147
147
  if (children[1].children) {
148
- for (let mod of children[1].children) {
148
+ for (const mod of children[1].children) {
149
149
  const modFn = ctx.mods[mod.result];
150
150
  if (modFn) value = await modFn(value);
151
151
  else throw new UnknownModifierError(mod.result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/proctext",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Extensible procedural text generation engine with dynamic, mutable state, indirection, randomizable & recursive variable expansions",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,15 +39,15 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.12.8",
43
- "@thi.ng/arrays": "^2.14.1",
44
- "@thi.ng/checks": "^3.7.24",
45
- "@thi.ng/defmulti": "^3.0.84",
46
- "@thi.ng/errors": "^2.5.48",
47
- "@thi.ng/object-utils": "^1.3.0",
48
- "@thi.ng/parse": "^2.6.37",
49
- "@thi.ng/random": "^4.1.33",
50
- "@thi.ng/strings": "^3.9.29"
42
+ "@thi.ng/api": "^8.12.10",
43
+ "@thi.ng/arrays": "^2.14.3",
44
+ "@thi.ng/checks": "^3.8.0",
45
+ "@thi.ng/defmulti": "^3.0.86",
46
+ "@thi.ng/errors": "^2.5.50",
47
+ "@thi.ng/object-utils": "^1.3.2",
48
+ "@thi.ng/parse": "^2.6.39",
49
+ "@thi.ng/random": "^4.1.35",
50
+ "@thi.ng/strings": "^3.9.31"
51
51
  },
52
52
  "devDependencies": {
53
53
  "esbuild": "^0.27.0",
@@ -98,5 +98,5 @@
98
98
  "status": "alpha",
99
99
  "year": 2023
100
100
  },
101
- "gitHead": "be6e7657b1e5c54d7d648d1b52888a7297e95a17\n"
101
+ "gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
102
102
  }