functionalscript 0.0.544 → 0.0.546

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.
@@ -69,7 +69,7 @@ jobs:
69
69
  needs: locks
70
70
  strategy:
71
71
  matrix:
72
- os: ['ubuntu-latest', 'windows-latest', 'macos-12']
72
+ os: ['ubuntu-latest', 'windows-latest', 'macos-14']
73
73
 
74
74
  runs-on: ${{ matrix.os }}
75
75
 
@@ -174,14 +174,6 @@ const parseObjectKeyOp = token => state => {
174
174
  return { status: 'error', message: 'unexpected token' }
175
175
  }
176
176
 
177
- /** @type {(token: tokenizer.JsonToken) => (state: StateParse) => JsonState}} */
178
- const parseObjectColonOp = token => state => {
179
- if (isValueToken(token)) { return pushValue(state)(tokenToValue(token)) }
180
- if (token.kind === '[') { return startArray(state) }
181
- if (token.kind === '{') { return startObject(state) }
182
- return { status: 'error', message: 'unexpected token' }
183
- }
184
-
185
177
  /** @type {(token: tokenizer.JsonToken) => (state: StateParse) => JsonState}} */
186
178
  const parseObjectNextOp = token => state => {
187
179
  if (token.kind === '}') { return endObject(state) }
@@ -206,7 +198,7 @@ const foldOp = token => state => {
206
198
  case '[,': return parseValueOp(token)(state)
207
199
  case '{': return parseObjectStartOp(token)(state)
208
200
  case '{k': return parseObjectKeyOp(token)(state)
209
- case '{:': return parseObjectColonOp(token)(state)
201
+ case '{:': return parseValueOp(token)(state)
210
202
  case '{v': return parseObjectNextOp(token)(state)
211
203
  case '{,': return parseObjectCommaOp(token)(state)
212
204
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.0.544",
3
+ "version": "0.0.546",
4
4
  "description": "FunctionalScript is a functional subset of JavaScript",
5
5
  "main": "module.f.cjs",
6
6
  "scripts": {