Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

path2d-polyfill

Package Overview
Dependencies
0
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-beta.0 to 2.0.0

CHANGELOG.md

3

dist/path2d-polyfill.esm.js

@@ -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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc