proj4-fully-loaded
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "proj4-fully-loaded", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Proj4JS Projector Fully Loaded with Projections", | ||
@@ -5,0 +5,0 @@ "main": "proj4-fully-loaded.js", |
let proj4 = require("proj4"); | ||
const defs = require("proj4js-definitions"); | ||
if (typeof proj4 === "object" && typeof proj4.defs !== "function" && typeof proj4.default === "function") { | ||
// probably inside an Angular project | ||
// - inside an Angular project, proj4 could be an object | ||
// - inside a Vite project, proj4 could be the proj4 function | ||
// but with the defs property/function mysteriously removed | ||
if ((typeof proj4 === "object" || typeof proj4 === "function") && typeof proj4.defs !== "function" && typeof proj4.default === "function" && typeof proj4.default.defs === "function") { | ||
proj4 = proj4.default; | ||
@@ -7,0 +9,0 @@ } |
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
11146
16