@yr-lang/yr 0.1.0 → 0.1.1
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/node.js +2 -2
- package/package.json +2 -2
package/node.js
CHANGED
|
@@ -436,8 +436,8 @@ function parsePaths(newPaths) {
|
|
|
436
436
|
|
|
437
437
|
return newStrPath.join(',');
|
|
438
438
|
}
|
|
439
|
-
function setGlobal(name, item) {
|
|
440
|
-
if (!_globals.includes(name)) {
|
|
439
|
+
function setGlobal(name, item, subscribe=false) {
|
|
440
|
+
if (!_globals.includes(name) || subscribe) {
|
|
441
441
|
global[name] = item;
|
|
442
442
|
_globals.push(name);
|
|
443
443
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yr-lang/yr",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Yr is a modern structural language and parser",
|
|
5
5
|
"main": "./node.js",
|
|
6
6
|
"exports": {
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/yr-lang/yr"
|
|
13
13
|
}
|
|
14
|
-
}
|
|
14
|
+
}
|