@less-is-more/less-js 1.5.0-13 → 1.5.0-14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cache.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@less-is-more/less-js",
3
- "version": "1.5.0-13",
3
+ "version": "1.5.0-14",
4
4
  "description": "Fast develop kit for nodejs",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/cache.js CHANGED
@@ -103,7 +103,7 @@ module.exports = class Cache {
103
103
  } else {
104
104
  console.log("Found cache" + (hasLocal ? " local" : ""), fullKey);
105
105
  savedData = Cache._unzip(savedData);
106
- if (savedData instanceof String) {
106
+ if (typeof savedData === "string") {
107
107
  // 优先转成json
108
108
  try {
109
109
  return JSON.parse(savedData);