Socket
Socket
Sign inDemoInstall

neo4j-driver-core

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neo4j-driver-core - npm Package Compare versions

Comparing version 5.16.0 to 5.17.0

13

lib/internal/temporal-util.js

@@ -378,8 +378,19 @@ "use strict";

exports.assertValidNanosecond = assertValidNanosecond;
var timeZoneValidityCache = new Map();
var newInvalidZoneIdError = function (zoneId, fieldName) { return (0, error_1.newError)("".concat(fieldName, " is expected to be a valid ZoneId but was: \"").concat(zoneId, "\"")); };
function assertValidZoneId(fieldName, zoneId) {
var cachedResult = timeZoneValidityCache.get(zoneId);
if (cachedResult === true) {
return;
}
if (cachedResult === false) {
throw newInvalidZoneIdError(zoneId, fieldName);
}
try {
Intl.DateTimeFormat(undefined, { timeZone: zoneId });
timeZoneValidityCache.set(zoneId, true);
}
catch (e) {
throw (0, error_1.newError)("".concat(fieldName, " is expected to be a valid ZoneId but was: \"").concat(zoneId, "\""));
timeZoneValidityCache.set(zoneId, false);
throw newInvalidZoneIdError(zoneId, fieldName);
}

@@ -386,0 +397,0 @@ }

4

package.json
{
"name": "neo4j-driver-core",
"version": "5.16.0",
"version": "5.17.0",
"description": "Internals of neo4j-driver",

@@ -48,3 +48,3 @@ "main": "lib/index.js",

},
"gitHead": "532f3eaa7de85d4d762c1b30b4657dbd4d240b1e"
"gitHead": "b7f3e7a5322b8695671baeacc5ef067b761be65c"
}
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