Comparing version 0.3.0 to 0.3.1
@@ -52,3 +52,3 @@ var __create = Object.create; | ||
// node_modules/.pnpm/tsup@5.11.9_typescript@4.5.4/node_modules/tsup/assets/cjs_shims.js | ||
// node_modules/.pnpm/tsup@5.11.11_typescript@4.5.4/node_modules/tsup/assets/cjs_shims.js | ||
var getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href; | ||
@@ -175,3 +175,3 @@ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl(); | ||
function defaults(target, source) { | ||
return Object.assign(Object.create(null), source, target); | ||
return Object.assign(/* @__PURE__ */ Object.create(null), source, target); | ||
} | ||
@@ -319,3 +319,3 @@ function decodeSourceMap(map) { | ||
constructor() { | ||
this.indexes = Object.create(null); | ||
this.indexes = /* @__PURE__ */ Object.create(null); | ||
this.array = []; | ||
@@ -496,14 +496,18 @@ } | ||
function fixSourceMap(map) { | ||
Object.defineProperty(map, "toString", { | ||
enumerable: false, | ||
value: function toString() { | ||
return JSON.stringify(this); | ||
} | ||
}); | ||
Object.defineProperty(map, "toUrl", { | ||
enumerable: false, | ||
value: function toUrl() { | ||
return "data:application/json;charset=utf-8;base64," + Buffer.from(this.toString()).toString("base64"); | ||
} | ||
}); | ||
if (!("toString" in map)) { | ||
Object.defineProperty(map, "toString", { | ||
enumerable: false, | ||
value: function toString() { | ||
return JSON.stringify(this); | ||
} | ||
}); | ||
} | ||
if (!("toUrl" in map)) { | ||
Object.defineProperty(map, "toUrl", { | ||
enumerable: false, | ||
value: function toUrl() { | ||
return "data:application/json;charset=utf-8;base64," + Buffer.from(this.toString()).toString("base64"); | ||
} | ||
}); | ||
} | ||
return map; | ||
@@ -510,0 +514,0 @@ } |
{ | ||
"name": "unplugin", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Unified plugin system for build tools", | ||
@@ -40,18 +40,18 @@ "repository": "unjs/unplugin", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/node": "^17.0.5", | ||
"@types/node": "^17.0.8", | ||
"bumpp": "^7.1.1", | ||
"conventional-changelog-cli": "^2.2.2", | ||
"enhanced-resolve": "^5.8.3", | ||
"esbuild": "^0.13.4", | ||
"eslint": "^8.5.0", | ||
"fast-glob": "^3.2.7", | ||
"esbuild": "^0.14.11", | ||
"eslint": "^8.6.0", | ||
"fast-glob": "^3.2.10", | ||
"fs-extra": "^10.0.0", | ||
"jiti": "^1.12.9", | ||
"magic-string": "^0.25.7", | ||
"rollup": "^2.62.0", | ||
"tsup": "^5.11.9", | ||
"rollup": "^2.63.0", | ||
"tsup": "^5.11.11", | ||
"typescript": "^4.5.4", | ||
"vite": "^2.7.8", | ||
"vitest": "^0.0.118", | ||
"webpack": "^5.65.0", | ||
"vite": "^2.7.10", | ||
"vitest": "^0.0.141", | ||
"webpack": "^5.66.0", | ||
"webpack-cli": "^4.9.1" | ||
@@ -58,0 +58,0 @@ }, |
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
69782
1877
0