🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@maptalks/function-type

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maptalks/function-type - npm Package Compare versions

Comparing version
1.2.0
to
1.2.1
+11
-10
index.js
/*eslint-disable no-var, prefer-const*/
function createFunction(parameters, defaultType) {
var fun;
var isFeatureConstant, isZoomConstant;
if (!isFunctionDefinition(parameters)) {
fun = function () { return parameters; };
fun.isFeatureConstant = true;
fun.isZoomConstant = true;
isFeatureConstant = true;
isZoomConstant = true;

@@ -53,4 +53,4 @@ } else {

};
fun.isFeatureConstant = false;
fun.isZoomConstant = false;
isFeatureConstant = false;
isZoomConstant = false;

@@ -62,4 +62,4 @@ } else if (zoomDependent) {

};
fun.isFeatureConstant = true;
fun.isZoomConstant = false;
isFeatureConstant = true;
isZoomConstant = false;
} else {

@@ -70,7 +70,8 @@ fun = function (zoom, feature) {

};
fun.isFeatureConstant = false;
fun.isZoomConstant = true;
isFeatureConstant = false;
isZoomConstant = true;
}
}
fun.isZoomConstant = isZoomConstant;
fun.isFeatureConstant = isFeatureConstant;
return fun;

@@ -77,0 +78,0 @@ }

{
"name": "@maptalks/function-type",
"version": "1.2.0",
"version": "1.2.1",
"main": "./index.js",

@@ -5,0 +5,0 @@ "module": "./index.js",