New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@enonic/js-utils

Package Overview
Dependencies
Maintainers
4
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enonic/js-utils - npm Package Compare versions

Comparing version 0.33.2 to 0.33.3

6

dist/cjs/storage/index.js

@@ -211,4 +211,3 @@ var __defProp = Object.defineProperty;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = v;
if (!isNumber(lat) && !isNumber(lon)) {

@@ -238,4 +237,3 @@ return false;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = array;
if (!isString(lat) || !isString(lon)) {

@@ -242,0 +240,0 @@ return false;

@@ -166,4 +166,3 @@ var __defProp = Object.defineProperty;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = v;
if (!isNumber(lat) && !isNumber(lon)) {

@@ -193,4 +192,3 @@ return false;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = array;
if (!isString(lat) || !isString(lon)) {

@@ -197,0 +195,0 @@ return false;

@@ -64,4 +64,3 @@ var __defProp = Object.defineProperty;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = v;
if (!isNumber(lat) && !isNumber(lon)) {

@@ -91,4 +90,3 @@ return false;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = array;
if (!isString(lat) || !isString(lon)) {

@@ -95,0 +93,0 @@ return false;

@@ -92,4 +92,3 @@ var __defProp = Object.defineProperty;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = v;
if (!isNumber(lat) && !isNumber(lon)) {

@@ -119,4 +118,3 @@ return false;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = array;
if (!isString(lat) || !isString(lon)) {

@@ -123,0 +121,0 @@ return false;

@@ -94,4 +94,3 @@ var __defProp = Object.defineProperty;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = v;
if (!isNumber(lat) && !isNumber(lon)) {

@@ -121,4 +120,3 @@ return false;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = array;
if (!isString(lat) || !isString(lon)) {

@@ -125,0 +123,0 @@ return false;

@@ -40,4 +40,3 @@ var __defProp = Object.defineProperty;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = v;
if (!isNumber(lat) && !isNumber(lon)) {

@@ -67,4 +66,3 @@ return false;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = array;
if (!isString(lat) || !isString(lon)) {

@@ -71,0 +69,0 @@ return false;

@@ -40,4 +40,3 @@ var __defProp = Object.defineProperty;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = v;
if (!isNumber(lat) && !isNumber(lon)) {

@@ -44,0 +43,0 @@ return false;

@@ -40,4 +40,3 @@ var __defProp = Object.defineProperty;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = v;
if (!isNumber(lat) && !isNumber(lon)) {

@@ -67,4 +66,3 @@ return false;

}
const lat = v[0];
const lon = v[1];
const [lat, lon] = array;
if (!isString(lat) || !isString(lon)) {

@@ -71,0 +69,0 @@ return false;

@@ -8,2 +8,3 @@ {

"@babel/register": "^7.16.5",
"@enonic/test-data": "^0.1.1",
"@types/chai": "^4.3.0",

@@ -23,2 +24,3 @@ "@types/expect": "^24.3.0",

"swc": "^1.0.11",
"tslib": "^2.3.1",
"typedoc": "^0.22.10",

@@ -60,3 +62,3 @@ "typescript": "^4.5.4"

},
"version": "0.33.2"
"version": "0.33.3"
}

@@ -12,5 +12,7 @@ import type {GeoPointArray} from '../index.d';

//const [lat, lon] :number[] = v; // error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
const lat = v[0];
const lon = v[1];
// tslib is required (transpile time) to support Array deconstruction.
// Even though it's easy to avoid using Array deconstruction,
// since tslib is already used for export {} from,
// it's kept as a development dependency.
const [lat, lon] :number[] = v;

@@ -17,0 +19,0 @@ if (!isNumber(lat) && !isNumber(lon)) { return false; }

@@ -15,5 +15,7 @@ import type {GeoPointString} from '../index.d';

//const [lat, lon] :string[] = array; error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
const lat = v[0];
const lon = v[1];
// tslib is required (transpile time) to support Array deconstruction.
// Even though it's easy to avoid using Array deconstruction,
// since tslib is already used for export {} from,
// it's kept as a development dependency.
const [lat, lon] :string[] = array;

@@ -20,0 +22,0 @@ if (!isString(lat) || !isString(lon)) { return false; }

Sorry, the diff of this file is too big to display

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

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

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc