Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

basisjs-tools-ast

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basisjs-tools-ast - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

4

HISTORY.md

@@ -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 @@

4

lib/css/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc