Comparing version 1.2.0 to 1.2.1
@@ -25,3 +25,3 @@ 'use strict'; | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
trailingComma: 'es5', | ||
}, | ||
@@ -28,0 +28,0 @@ ], |
@@ -201,3 +201,3 @@ /********************************************************************* | ||
dummyRule.getPropertyValue(name), | ||
dummyRule.getPropertyPriority(name), | ||
dummyRule.getPropertyPriority(name) | ||
); | ||
@@ -204,0 +204,0 @@ } |
'use strict'; | ||
// autogenerated - 2/15/2019 | ||
// autogenerated - 2/16/2019 | ||
@@ -5,0 +5,0 @@ /* |
'use strict'; | ||
// autogenerated - 2/15/2019 | ||
// autogenerated - 2/16/2019 | ||
@@ -5,0 +5,0 @@ /* |
@@ -35,3 +35,3 @@ 'use strict'; | ||
return v; | ||
}, | ||
} | ||
); | ||
@@ -38,0 +38,0 @@ |
@@ -28,3 +28,3 @@ 'use strict'; | ||
return v; | ||
}, | ||
} | ||
); | ||
@@ -31,0 +31,0 @@ |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"homepage": "https://github.com/jsakas/CSSStyleDeclaration", | ||
@@ -31,14 +31,2 @@ "maintainers": [ | ||
{ | ||
"name": "Sampo Kivistö", | ||
"email": "sampo.kivisto@live.fi" | ||
}, | ||
{ | ||
"name": "Benny Powers", | ||
"email": "web@bennypowers.com" | ||
}, | ||
{ | ||
"name": "step-off", | ||
"email": "stepanoff@skbkontur.ru" | ||
}, | ||
{ | ||
"name": "Nikita Vasilyev", | ||
@@ -82,5 +70,5 @@ "email": "me@elv1s.ru" | ||
"generate:properties": "node ./scripts/generate_properties.js", | ||
"lint": "npm run generate && eslint .", | ||
"lint:fix": "eslint . --fix", | ||
"prepublishOnly": "npm run test-ci", | ||
"lint": "npm run generate && eslint . --max-warnings 0", | ||
"lint:fix": "eslint . --fix --max-warnings 0", | ||
"prepublishOnly": "test-ci", | ||
"test": "npm run generate && nodeunit tests", | ||
@@ -87,0 +75,0 @@ "test-ci": "npm run lint && npm run test" |
@@ -67,3 +67,3 @@ 'use strict'; | ||
(date_today.getMonth() + 1 + '/' + date_today.getDate() + '/' + date_today.getFullYear()) + | ||
'\n\n', | ||
'\n\n' | ||
); | ||
@@ -70,0 +70,0 @@ out_file.write('/*\n *\n * https://www.w3.org/Style/CSS/all-properties.en.html\n */\n\n'); |
@@ -21,3 +21,3 @@ 'use strict'; | ||
(date_today.getMonth() + 1 + '/' + date_today.getDate() + '/' + date_today.getFullYear()) + | ||
'\n\n', | ||
'\n\n' | ||
); | ||
@@ -31,5 +31,5 @@ out_file.write('/*\n *\n * https://www.w3.org/Style/CSS/all-properties.en.html\n */\n\n'); | ||
t.identifier('implementedProperties'), | ||
t.newExpression(t.identifier('Set'), []), | ||
t.newExpression(t.identifier('Set'), []) | ||
), | ||
]), | ||
]) | ||
); | ||
@@ -42,5 +42,5 @@ | ||
t.memberExpression(t.identifier('implementedProperties'), t.identifier('add')), | ||
[t.stringLiteral(property)], | ||
), | ||
), | ||
[t.stringLiteral(property)] | ||
) | ||
) | ||
); | ||
@@ -54,5 +54,5 @@ }); | ||
t.memberExpression(t.identifier('module'), t.identifier('exports')), | ||
t.identifier('implementedProperties'), | ||
), | ||
), | ||
t.identifier('implementedProperties') | ||
) | ||
) | ||
); | ||
@@ -59,0 +59,0 @@ |
@@ -33,3 +33,3 @@ 'use strict'; | ||
(date_today.getMonth() + 1 + '/' + date_today.getDate() + '/' + date_today.getFullYear()) + | ||
'\n\n', | ||
'\n\n' | ||
); | ||
@@ -96,3 +96,3 @@ out_file.write('/*\n *\n * https://www.w3.org/Style/CSS/all-properties.en.html\n */\n\n'); | ||
.concat([filename]) | ||
.join(' -> '), | ||
.join(' -> ') | ||
); | ||
@@ -124,3 +124,3 @@ } | ||
var id = t.identifier( | ||
'external_dependency_' + basename(filename, '.js').replace(/[^A-Za-z]/g, '') + '_' + i, | ||
'external_dependency_' + basename(filename, '.js').replace(/[^A-Za-z]/g, '') + '_' + i | ||
); | ||
@@ -136,5 +136,5 @@ moduleExportsByPath[filename] = { defaultExports: id }; | ||
id, | ||
t.callExpression(t.identifier('require'), [t.stringLiteral(relativePath)]), | ||
t.callExpression(t.identifier('require'), [t.stringLiteral(relativePath)]) | ||
), | ||
]), | ||
]) | ||
); | ||
@@ -212,3 +212,3 @@ }); | ||
declaration.id.name, | ||
file.property + '_local_var_' + declaration.id.name, | ||
file.property + '_local_var_' + declaration.id.name | ||
); | ||
@@ -244,3 +244,3 @@ }); | ||
return t.objectProperty(t.identifier(name), namedExports[name]); | ||
}), | ||
}) | ||
); | ||
@@ -256,4 +256,4 @@ moduleExportsByPath[file.filename] = { | ||
return t.variableDeclarator(namedExports[name]); | ||
}), | ||
), | ||
}) | ||
) | ||
); | ||
@@ -268,8 +268,8 @@ statements.push.apply(statements, file.ast.program.body); | ||
t.identifier(file.property), | ||
t.identifier(file.property + '_export_definition'), | ||
), | ||
t.identifier(file.property + '_export_definition') | ||
) | ||
); | ||
if (file.property !== dashed) { | ||
propertyDefinitions.push( | ||
t.objectProperty(t.stringLiteral(dashed), t.identifier(file.property + '_export_definition')), | ||
t.objectProperty(t.stringLiteral(dashed), t.identifier(file.property + '_export_definition')) | ||
); | ||
@@ -280,3 +280,3 @@ } | ||
t.memberExpression(t.identifier('Object'), t.identifier('defineProperties')), | ||
[t.identifier('prototype'), t.objectExpression(propertyDefinitions)], | ||
[t.identifier('prototype'), t.objectExpression(propertyDefinitions)] | ||
); | ||
@@ -291,6 +291,6 @@ statements.push( | ||
[t.identifier('prototype')], | ||
t.blockStatement([t.expressionStatement(definePropertiesCall)]), | ||
), | ||
), | ||
), | ||
t.blockStatement([t.expressionStatement(definePropertiesCall)]) | ||
) | ||
) | ||
) | ||
); | ||
@@ -297,0 +297,0 @@ out_file.write(generate(t.program(statements)).code + '\n'); |
@@ -12,3 +12,3 @@ 'use strict'; | ||
var implementedProperties = Array.from(require('../lib/implementedProperties')).map( | ||
dashedToCamelCase, | ||
dashedToCamelCase | ||
); | ||
@@ -26,3 +26,3 @@ var invalidProperties = implementedProperties.filter(function(property) { | ||
' invalid properties implemented: ' + | ||
Array.from(invalidProperties).join(', '), | ||
Array.from(invalidProperties).join(', ') | ||
); | ||
@@ -77,3 +77,3 @@ test.done(); | ||
'color: blue; background-color: red; width: 78%; height: 50vh;' === style.cssText, | ||
'cssText is wrong', | ||
'cssText is wrong' | ||
); | ||
@@ -85,3 +85,3 @@ test.ok('blue' === style.getPropertyValue('color'), "getPropertyValue('color') failed"); | ||
'red' === style.backgroundColor, | ||
'style.backgroundColor failed with "' + style.backgroundColor + '"', | ||
'style.backgroundColor failed with "' + style.backgroundColor + '"' | ||
); | ||
@@ -119,7 +119,7 @@ style.cssText = ''; | ||
'url(http://www.example.com/some_img.jpg)' === style.backgroundImage, | ||
'backgroundImage is wrong', | ||
'backgroundImage is wrong' | ||
); | ||
test.ok( | ||
'blue url(http://www.example.com/some_img.jpg)' === style.background, | ||
'background is different', | ||
'background is different' | ||
); | ||
@@ -171,3 +171,3 @@ style.border = '0 solid black'; | ||
'border-width: 0px;' === style.cssText, | ||
'cssText is not "border-width: 0px", "' + style.cssText + '"', | ||
'cssText is not "border-width: 0px", "' + style.cssText + '"' | ||
); | ||
@@ -190,3 +190,3 @@ test.done(); | ||
'top: 0px; left: 0%; right: 5em; bottom: 12pt;' === style.cssText, | ||
'text is not "top: 0px; left: 0%; right: 5em; bottom: 12pt;"', | ||
'text is not "top: 0px; left: 0%; right: 5em; bottom: 12pt;"' | ||
); | ||
@@ -214,3 +214,3 @@ test.done(); | ||
'rect(0px, 3em, 2pt, 50%)' === style.clip, | ||
'clip is not "rect(0px, 3em, 2pt, 50%)", "' + style.clip + '"', | ||
'clip is not "rect(0px, 3em, 2pt, 50%)", "' + style.clip + '"' | ||
); | ||
@@ -220,3 +220,3 @@ test.ok(2 === style.length, 'length is not 2'); | ||
'clear: both; clip: rect(0px, 3em, 2pt, 50%);' === style.cssText, | ||
'cssText is not "clear: both; clip: rect(0px, 3em, 2pt, 50%);"', | ||
'cssText is not "clear: both; clip: rect(0px, 3em, 2pt, 50%);"' | ||
); | ||
@@ -239,3 +239,3 @@ test.done(); | ||
'hsla(0, 1%, 2%, 0.5)' === style.color, | ||
'color is not hsla(0, 1%, 2%, 0.5) ' + style.color, | ||
'color is not hsla(0, 1%, 2%, 0.5) ' + style.color | ||
); | ||
@@ -254,11 +254,11 @@ style.color = 'hsl(0, 1%, 2%)'; | ||
'rgb(0, 0, 0)' === style.backgroundColor, | ||
'backgroundColor is not rgb(0, 0, 0): ' + style.backgroundColor, | ||
'backgroundColor is not rgb(0, 0, 0): ' + style.backgroundColor | ||
); | ||
test.ok( | ||
'url(/something/somewhere.jpg)' === style.backgroundImage, | ||
'backgroundImage is not url(/something/somewhere.jpg): ' + style.backgroundImage, | ||
'backgroundImage is not url(/something/somewhere.jpg): ' + style.backgroundImage | ||
); | ||
test.ok( | ||
'background: rgb(0, 0, 0) url(/something/somewhere.jpg);' === style.cssText, | ||
'cssText is not correct: ' + style.cssText, | ||
'cssText is not correct: ' + style.cssText | ||
); | ||
@@ -269,3 +269,3 @@ style = new cssstyle.CSSStyleDeclaration(); | ||
'1px solid black' === style.border, | ||
'multiple spaces not properly parsed: ' + style.border, | ||
'multiple spaces not properly parsed: ' + style.border | ||
); | ||
@@ -275,3 +275,3 @@ test.done(); | ||
'Setting shorthand properties to an empty string should clear all dependent properties': function( | ||
test, | ||
test | ||
) { | ||
@@ -283,3 +283,3 @@ var style = new cssstyle.CSSStyleDeclaration(); | ||
'border-width: 1px;' === style.cssText, | ||
'cssText is not "border-width: 1px;": ' + style.cssText, | ||
'cssText is not "border-width: 1px;": ' + style.cssText | ||
); | ||
@@ -291,3 +291,3 @@ style.border = ''; | ||
'Setting implicit properties to an empty string should clear all dependent properties': function( | ||
test, | ||
test | ||
) { | ||
@@ -299,3 +299,3 @@ var style = new cssstyle.CSSStyleDeclaration(); | ||
'border-top-width: 1px;' === style.cssText, | ||
'cssText is not "border-top-width: 1px;": ' + style.cssText, | ||
'cssText is not "border-top-width: 1px;": ' + style.cssText | ||
); | ||
@@ -307,3 +307,3 @@ style.borderWidth = ''; | ||
'Setting a shorthand property, whose shorthands are implicit properties, to an empty string should clear all dependent properties': function( | ||
test, | ||
test | ||
) { | ||
@@ -315,3 +315,3 @@ var style = new cssstyle.CSSStyleDeclaration(); | ||
'border-top-width: 1px;' === style.cssText, | ||
'cssText is not "border-top-width: 1px;": ' + style.cssText, | ||
'cssText is not "border-top-width: 1px;": ' + style.cssText | ||
); | ||
@@ -323,3 +323,3 @@ style.border = ''; | ||
'border-top: 1px solid black;' === style.cssText, | ||
'cssText is not "border-top: 1px solid black;": ' + style.cssText, | ||
'cssText is not "border-top: 1px solid black;": ' + style.cssText | ||
); | ||
@@ -336,3 +336,3 @@ style.border = ''; | ||
'border-top-width: 1px;' === style.cssText, | ||
'cssText is not "border-top-width: 1px;": ' + style.cssText, | ||
'cssText is not "border-top-width: 1px;": ' + style.cssText | ||
); | ||
@@ -344,3 +344,3 @@ style.border = 'none'; | ||
'border-top-width: 1px;' === style.cssText, | ||
'cssText is not "border-top-width: 1px;": ' + style.cssText, | ||
'cssText is not "border-top-width: 1px;": ' + style.cssText | ||
); | ||
@@ -352,3 +352,3 @@ style.borderTopStyle = 'none'; | ||
'border-top-width: 1px;' === style.cssText, | ||
'cssText is not "border-top-width: 1px;": ' + style.cssText, | ||
'cssText is not "border-top-width: 1px;": ' + style.cssText | ||
); | ||
@@ -361,3 +361,3 @@ style.borderTop = 'none'; | ||
'border-top-width: 1px; border-left-width: 1px;' === style.cssText, | ||
'cssText is not "border-top-width: 1px; border-left-width: 1px;": ' + style.cssText, | ||
'cssText is not "border-top-width: 1px; border-left-width: 1px;": ' + style.cssText | ||
); | ||
@@ -367,3 +367,3 @@ style.borderTop = 'none'; | ||
'border-left-width: 1px;' === style.cssText, | ||
'cssText is not "border-left-width: 1px;": ' + style.cssText, | ||
'cssText is not "border-left-width: 1px;": ' + style.cssText | ||
); | ||
@@ -380,3 +380,3 @@ test.done(); | ||
'Setting values implicit and shorthand properties via cssText and setProperty should propagate to dependent properties': function( | ||
test, | ||
test | ||
) { | ||
@@ -388,7 +388,7 @@ var style = new cssstyle.CSSStyleDeclaration(); | ||
'border: 1px solid black;' === style.cssText, | ||
'cssText is not "border: 1px solid black;": ' + style.cssText, | ||
'cssText is not "border: 1px solid black;": ' + style.cssText | ||
); | ||
test.ok( | ||
'1px solid black' === style.borderTop, | ||
'borderTop is not "1px solid black": ' + style.borderTop, | ||
'borderTop is not "1px solid black": ' + style.borderTop | ||
); | ||
@@ -400,3 +400,3 @@ style.border = ''; | ||
'border: 1px solid black;' === style.cssText, | ||
'cssText is not "border: 1px solid black;": ' + style.cssText, | ||
'cssText is not "border: 1px solid black;": ' + style.cssText | ||
); | ||
@@ -411,3 +411,3 @@ test.done(); | ||
'opacity: 0.75;' === style.cssText, | ||
'cssText is not "opacity: 0.75;": ' + style.cssText, | ||
'cssText is not "opacity: 0.75;": ' + style.cssText | ||
); | ||
@@ -517,3 +517,3 @@ style.opacity = '0.50'; | ||
'url(http://some/url/here1.png)' === style.backgroundImage, | ||
"background-image wasn't url(http://some/url/here1.png): " + style.backgroundImage, | ||
"background-image wasn't url(http://some/url/here1.png): " + style.backgroundImage | ||
); | ||
@@ -523,3 +523,3 @@ style.backgroundImage = "url('http://some/url/here2.png')"; | ||
'url(http://some/url/here2.png)' === style.backgroundImage, | ||
"background-image wasn't url(http://some/url/here2.png): " + style.backgroundImage, | ||
"background-image wasn't url(http://some/url/here2.png): " + style.backgroundImage | ||
); | ||
@@ -529,3 +529,3 @@ style.backgroundImage = 'url("http://some/url/here3.png")'; | ||
'url(http://some/url/here3.png)' === style.backgroundImage, | ||
"background-image wasn't url(http://some/url/here3.png): " + style.backgroundImage, | ||
"background-image wasn't url(http://some/url/here3.png): " + style.backgroundImage | ||
); | ||
@@ -650,3 +650,3 @@ test.done(); | ||
'auto', | ||
'flex-basis is not `auto` if flex: none;', | ||
'flex-basis is not `auto` if flex: none;' | ||
); | ||
@@ -661,3 +661,3 @@ style.removeProperty('flex'); | ||
'', | ||
'flex-shrink is not empty if flex: auto;', | ||
'flex-shrink is not empty if flex: auto;' | ||
); | ||
@@ -667,3 +667,3 @@ test.equal( | ||
'auto', | ||
'flex-basis is not `auto` if flex: auto;', | ||
'flex-basis is not `auto` if flex: auto;' | ||
); | ||
@@ -670,0 +670,0 @@ style.removeProperty('flex'); |
Sorry, the diff of this file is not supported yet
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
332052
100
9915
0