terraformer-wkt-parser
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "terraformer-wkt-parser", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Well-Known Text parser", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git@github.com:Geoloqi/Terraformer.git" | ||
"url": "git@github.com:esri/Terraformer.git" | ||
}, | ||
@@ -17,0 +17,0 @@ "keywords": [ |
(function (root, factory) { | ||
// Node. | ||
if(typeof module === 'object' && typeof module.exports === 'object') { | ||
// Node. Does not work with strict CommonJS, but | ||
// only CommonJS-like enviroments that support module.exports, | ||
// like Node. | ||
Terraformer = require('terraformer'); | ||
exports = module.exports = factory(); | ||
}else if(typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module and pass in Terraformer core as a requirement... | ||
} | ||
// AMD. | ||
if(typeof define === 'function' && define.amd) { | ||
define(["terraformer/terraformer"],factory); | ||
} else { | ||
if (typeof root.Terraformer === "undefined") { | ||
root.Terraformer = { }; | ||
} | ||
root.Terraformer.WKT = factory(); | ||
} | ||
if(typeof jasmine === "object") { | ||
if (typeof Terraformer === undefined){ | ||
root.Terraformer = { }; | ||
// Browser Global. | ||
if(typeof navigator === "object") { | ||
if (typeof root.Terraformer === "undefined"){ | ||
root.Terraformer = {}; | ||
} | ||
//root.Terraformer.WKT = factory(); | ||
root.Terraformer.WKT = factory(); | ||
} | ||
@@ -29,6 +23,17 @@ | ||
var exports = { }; | ||
var Terraformer; | ||
// if we are in AMD terraformer core got passed in as our first requirement so we should set it. | ||
// Local Reference To Browser Global | ||
if(typeof this.navigator === "object") { | ||
Terraformer = this.Terraformer; | ||
} | ||
// Setup Node Dependencies | ||
if(typeof module === 'object' && typeof module.exports === 'object') { | ||
Terraformer = require('terraformer'); | ||
} | ||
// Setup AMD Dependencies | ||
if(arguments[0] && typeof define === 'function' && define.amd) { | ||
this.Terraformer = arguments[0]; | ||
Terraformer = arguments[0]; | ||
} | ||
@@ -764,7 +769,7 @@ | ||
}; | ||
function _parse () { | ||
return parser.parse.apply(parser, arguments); | ||
} | ||
function parse (element) { | ||
@@ -771,0 +776,0 @@ var res, primitive; |
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
1350
52401