@bothrs/zero-height
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -29,4 +29,4 @@ #!/usr/bin/env node | ||
if (!argv.destination) { | ||
console.warn("No destination was given, file was created at \"" + fileName + "\"."); | ||
console.warn("No destination was given, file was created at \"".concat(fileName, "\".")); | ||
} | ||
(0, index_1.default)(zeroHeightWorkspace, token, fileName, framework); |
@@ -38,9 +38,9 @@ "use strict"; | ||
} | ||
fonts += key.toLowerCase() + "{" + fontKeys | ||
fonts += "".concat(key.toLowerCase(), "{").concat(fontKeys | ||
.map(function (k) { | ||
return k.toLowerCase() + ":" + (k.toLowerCase() === 'font-family' | ||
return "".concat(k.toLowerCase(), ":").concat(k.toLowerCase() === 'font-family' | ||
? duplicate[key][k] + ', sans-serif' | ||
: duplicate[key][k]); | ||
}) | ||
.join(';') + ";}"; | ||
.join(';'), ";}"); | ||
} | ||
@@ -51,3 +51,3 @@ else { | ||
keys_1.forEach(function (k) { | ||
cssVariables += "--" + k.toLowerCase() + ":" + flat_1[k].toLowerCase() + ";"; | ||
cssVariables += "--".concat(k.toLowerCase(), ":").concat(flat_1[k].toLowerCase(), ";"); | ||
}); | ||
@@ -54,0 +54,0 @@ } |
@@ -25,4 +25,4 @@ "use strict"; | ||
var originalFontFamily = value; | ||
var fixedFontFamily = originalFontFamily | ||
.split(', ')[framework === 'expo' ? 1 : 0].split("'") | ||
var fontFamilies = originalFontFamily.split(', '); | ||
var fixedFontFamily = fontFamilies[framework === 'expo' ? fontFamilies.length - 1 : 0].split("'") | ||
.join(''); | ||
@@ -29,0 +29,0 @@ if (fixedFontFamily) { |
@@ -55,3 +55,3 @@ "use strict"; | ||
case 0: | ||
url = "https://" + zeroHeightWorkspace + "/api/token_file/" + token + "/share"; | ||
url = "https://".concat(zeroHeightWorkspace, "/api/token_file/").concat(token, "/share"); | ||
return [4, new Promise(function (resolve) { | ||
@@ -61,3 +61,3 @@ var req = https_1.default.request({ | ||
port: 443, | ||
path: "/api/token_file/" + token + "/share", | ||
path: "/api/token_file/".concat(token, "/share"), | ||
method: 'GET', | ||
@@ -83,3 +83,3 @@ }, function (res) { | ||
if (typeof response.statusCode !== 'undefined') { | ||
console.error("Request to \"" + url + "\" failed with status " + response.statusCode + "."); | ||
console.error("Request to \"".concat(url, "\" failed with status ").concat(response.statusCode, ".")); | ||
} | ||
@@ -86,0 +86,0 @@ else { |
{ | ||
"name": "@bothrs/zero-height", | ||
"repository": "git@github.com:bothrs/open-source.git", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"publishConfig": { | ||
@@ -59,3 +59,3 @@ "access": "public" | ||
}, | ||
"gitHead": "5b2e234b12bb42f8ff39c6766c5a255d09d3988c" | ||
"gitHead": "7a47ac878a46c6809c92282f3f8cc7ab9ab7b7e8" | ||
} |
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
16101