@bablr/agast-vm-helpers 0.1.4 → 0.2.0

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/lib/index.js CHANGED
@@ -54,7 +54,7 @@ export const reifyExpression = (node) => {
54
54
 
55
55
  if (!node) return null;
56
56
 
57
- if (node.language === 'https://bablr.org/languages/core/cstml') {
57
+ if (node.language === 'https://bablr.org/languages/core/en/cstml') {
58
58
  switch (node.type) {
59
59
  case 'DoctypeTag': {
60
60
  let { doctype, version, attributes } = node.properties;
@@ -135,9 +135,9 @@ export const reifyExpression = (node) => {
135
135
 
136
136
  if (
137
137
  ![
138
- 'https://bablr.org/languages/core/bablr-vm-instruction',
139
- 'https://bablr.org/languages/core/cstml',
140
- 'https://bablr.org/languages/core/spamex',
138
+ 'https://bablr.org/languages/core/en/bablr-vm-instruction',
139
+ 'https://bablr.org/languages/core/en/cstml',
140
+ 'https://bablr.org/languages/core/en/spamex',
141
141
  ].includes(node.language)
142
142
  ) {
143
143
  return node;
@@ -209,8 +209,8 @@ export const reifyExpressionShallow = (node) => {
209
209
 
210
210
  if (
211
211
  ![
212
- 'https://bablr.org/languages/core/bablr-vm-instruction',
213
- 'https://bablr.org/languages/core/cstml',
212
+ 'https://bablr.org/languages/core/en/bablr-vm-instruction',
213
+ 'https://bablr.org/languages/core/en/cstml',
214
214
  ].includes(node.language)
215
215
  ) {
216
216
  return node;
package/lib/languages.js CHANGED
@@ -1,6 +1,6 @@
1
- export const Spamex = 'https://bablr.org/languages/core/spamex';
2
- export const CSTML = 'https://bablr.org/languages/core/cstml';
3
- export const Regex = 'https://bablr.org/languages/core/bablr-regex-pattern';
4
- export const Instruction = 'https://bablr.org/languages/core/bablr-vm-instruction';
5
- export const Comment = 'https://bablr.org/languages/core/c-comments';
6
- export const Space = 'https://bablr.org/languages/core/space-tab-newline';
1
+ export const Spamex = 'https://bablr.org/languages/core/en/spamex';
2
+ export const CSTML = 'https://bablr.org/languages/core/en/cstml';
3
+ export const Regex = 'https://bablr.org/languages/core/en/bablr-regex-pattern';
4
+ export const Instruction = 'https://bablr.org/languages/core/en/bablr-vm-instruction';
5
+ export const Comment = 'https://bablr.org/languages/core/en/c-comments';
6
+ export const Space = 'https://bablr.org/languages/core/en/space-tab-newline';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bablr/agast-vm-helpers",
3
3
  "description": "Helper functions for working with the BABLR VM",
4
- "version": "0.1.4",
4
+ "version": "0.2.0",
5
5
  "author": "Conrad Buck<conartist6@gmail.com>",
6
6
  "type": "module",
7
7
  "files": [
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "sideEffects": false,
17
17
  "dependencies": {
18
- "@bablr/agast-helpers": "0.1.6"
18
+ "@bablr/agast-helpers": "0.2.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@bablr/eslint-config-base": "github:bablr-lang/eslint-config-base#49f5952efed27f94ee9b94340eb1563c440bf64e",