path2d-polyfill
Advanced tools
Comparing version 2.0.0-beta.0 to 2.0.0
@@ -591,2 +591,3 @@ /****************************************************************************** | ||
export { Path2D, parsePath, polyfillPath2D, polyfillRoundRect }; | ||
polyfillPath2D(window); | ||
polyfillRoundRect(window); |
{ | ||
"name": "path2d-polyfill", | ||
"version": "2.0.0-beta.0", | ||
"version": "2.0.0", | ||
"description": "Polyfills Path2D api for canvas rendering", | ||
@@ -18,5 +18,11 @@ "scripts": { | ||
}, | ||
"browser": "dist/path2d-polyfill.min.js", | ||
"module": "dist/path2d-polyfill.esm.js", | ||
"main": "dist/path2d-polyfill.cjs.js", | ||
"exports": { | ||
"node": { | ||
"import": "./dist/path2d-node.mjs", | ||
"require": "./dist/path2d-node.cjs" | ||
}, | ||
"development": "./dist/path2d-polyfill.dev.js", | ||
"module": "./dist/path2d-polyfill.esm.js", | ||
"default": "./dist/path2d-polyfill.min.js" | ||
}, | ||
"files": [ | ||
@@ -32,3 +38,4 @@ "dist" | ||
"polyfill", | ||
"canvas" | ||
"canvas", | ||
"roundRect" | ||
], | ||
@@ -42,4 +49,2 @@ "author": "nilzona", | ||
"devDependencies": { | ||
"@babel/core": "7.20.7", | ||
"@babel/preset-env": "7.20.2", | ||
"@commitlint/cli": "17.3.0", | ||
@@ -46,0 +51,0 @@ "@commitlint/config-conventional": "17.3.0", |
@@ -64,5 +64,5 @@ # path2d-polyfill | ||
let polyfilled = { CanvasRenderingContext2D, Path2D: null }; | ||
polyfillPath2D(polyfilled); | ||
const Path2D = polyfilled.Path2D; | ||
global.CanvasRenderingContext2D = CanvasRenderingContext2D; | ||
polyfillPath2D(global); | ||
// Path2D has now been added to global object | ||
@@ -69,0 +69,0 @@ const canvas = createCanvas(200, 200); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
102090
27
9
2370
0
0