basisjs-tools-ast
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -0,1 +1,5 @@ | ||
## 1.6.1 (January 16, 2018) | ||
- Bump `csso` to `~3.5.0` (fix API changes issue) | ||
## 1.6.0 (September 5, 2017) | ||
@@ -2,0 +6,0 @@ |
@@ -5,3 +5,3 @@ var csso = require('csso'); | ||
var clone = csso.syntax.clone; | ||
var translate = csso.syntax.translate; | ||
var generate = csso.syntax.generate; | ||
@@ -65,3 +65,3 @@ function unpackString(val){ | ||
copy: clone, | ||
translate: translate, | ||
translate: generate, | ||
walk: function(ast, handlers){ | ||
@@ -68,0 +68,0 @@ if (typeof handlers === 'function') |
@@ -121,4 +121,15 @@ var walker = require('./walker').astWalker(); | ||
{ | ||
var key = prop.key.type === 'Literal' ? prop.key.value : prop.key.name; | ||
var key; | ||
if (prop.computed) | ||
{ | ||
var resolvedKey = scope.resolve(prop.key); | ||
if (!resolvedKey) | ||
continue; | ||
key = resolvedKey.type === 'Literal' ? resolvedKey.value : resolvedKey.name; | ||
} | ||
else | ||
key = prop.key.type === 'Literal' ? prop.key.value : prop.key.name; | ||
if (key === undefined) | ||
@@ -125,0 +136,0 @@ throw new Error('Unknown key type'); |
{ | ||
"name": "basisjs-tools-ast", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Tool set for basisjs-tools to work with various types of AST", | ||
@@ -21,3 +21,9 @@ "homepage": "https://github.com/basisjs/basisjs-tools-ast", | ||
"no-undef": 2, | ||
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}] | ||
"no-unused-vars": [ | ||
2, | ||
{ | ||
"vars": "all", | ||
"args": "after-used" | ||
} | ||
] | ||
} | ||
@@ -30,4 +36,3 @@ }, | ||
"htmlparser2": "~3.9.2", | ||
"csso": "^3.1.1", | ||
"css-tree": "1.0.0-alpha19", | ||
"csso": "~3.5.0", | ||
"escodegen": "^1.8.1", | ||
@@ -34,0 +39,0 @@ "esprima": "^3.1.3", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
50479
5
1673
0
+ Addedcss-tree@1.0.0-alpha.29(transitive)
+ Addedmdn-data@1.1.4(transitive)
- Removedcss-tree@1.0.0-alpha19
- Removedcss-tree@1.0.0-alpha19(transitive)
Updatedcsso@~3.5.0