Comparing version 0.8.0 to 0.8.1
@@ -69,7 +69,3 @@ "use strict"; | ||
if (key == null) { | ||
throw new Error(`class name ${classList[0]} not recognized, please report your code to code-fns`); | ||
} | ||
if (codeStyle[key] != null) { | ||
if (key != null && codeStyle[key] != null) { | ||
var _codeStyle$key; | ||
@@ -76,0 +72,0 @@ |
@@ -47,7 +47,3 @@ import { createStarryNight, all } from '@wooorm/starry-night'; | ||
if (key == null) { | ||
throw new Error(`class name ${classList[0]} not recognized, please report your code to code-fns`); | ||
} | ||
if (codeStyle[key] != null) { | ||
if (key != null && codeStyle[key] != null) { | ||
return codeStyle[key]?.text; | ||
@@ -54,0 +50,0 @@ } |
{ | ||
"name": "code-fns", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "A library for visualizing code.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
36405
1121