create-canvas-context
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "create-canvas-context", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Create a canvas and get a rendering context from it.", | ||
@@ -41,6 +41,6 @@ "author": "Marc Bouchenoire", | ||
"@types/jest": "^26.0.20", | ||
"@typescript-eslint/eslint-plugin": "^4.14.1", | ||
"@typescript-eslint/parser": "^4.14.1", | ||
"@typescript-eslint/eslint-plugin": "^4.16.1", | ||
"@typescript-eslint/parser": "^4.16.1", | ||
"eslint": "^7.19.0", | ||
"eslint-config-prettier": "^7.2.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-import-resolver-typescript": "^2.3.0", | ||
@@ -58,5 +58,4 @@ "eslint-plugin-import": "^2.22.1", | ||
"ts-jest": "^26.5.0", | ||
"tslib": "^2.1.0", | ||
"typescript": "^4.1.3" | ||
} | ||
} |
@@ -8,3 +8,5 @@ import { isCanvas, isHTMLCanvasElement, isNumber } from "./guards" | ||
} from "./types" | ||
import { isBrowser, returnIf, supportsOffscreenCanvas } from "./utils" | ||
import { isBrowser } from "./utils/is-browser" | ||
import { returnIf } from "./utils/return-if" | ||
import { supportsOffscreenCanvas } from "./utils/supports-offscreen-canvas" | ||
@@ -11,0 +13,0 @@ const DEFAULT_WIDTH = 300 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
40446
18
0
23
245