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

skhema

Package Overview
Dependencies
Maintainers
3
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

skhema - npm Package Compare versions

Comparing version 5.2.3-cache-leak-cd186dab45f2c05cbc05c0af14646db509bb21e7 to 5.2.3

4

CHANGELOG.md

@@ -7,5 +7,5 @@ # Change Log

## 5.2.3 - 2019-04-10
## 5.2.3 - 2019-04-15
* Filter/match: Clear AJV instance cache on completion [Juan Cruz Viotti]
* Set addUsedSchema to false in all AJV instances [Juan Cruz Viotti]

@@ -12,0 +12,0 @@ ## 5.2.2 - 2019-03-20

@@ -510,3 +510,7 @@ /*

allErrors: true,
unknownFormats: 'ignore'
unknownFormats: 'ignore',
// Don't keep references to all used
// schemas in order to not leak memory.
addUsedSchema: false
})

@@ -538,3 +542,3 @@

const result = {
return {
valid,

@@ -544,8 +548,2 @@ errors: valid ? [] : ajv.errorsText().split(', '),

}
// Clear the cache so we don't leak it
// eslint-disable-next-line no-underscore-dangle
ajv._cache.clear()
return result
}

@@ -867,3 +865,7 @@ })()

removeAdditional: true,
unknownFormats: 'ignore'
unknownFormats: 'ignore',
// Don't keep references to all used
// schemas in order to not leak memory.
addUsedSchema: false
})

@@ -874,3 +876,7 @@

allErrors: true,
unknownFormats: 'ignore'
unknownFormats: 'ignore',
// Don't keep references to all used
// schemas in order to not leak memory.
addUsedSchema: false
})

@@ -961,11 +967,3 @@

const result = parse(schema)
// Clear the cache so we don't leak it
// eslint-disable-next-line no-underscore-dangle
filterAjv._cache.clear()
// eslint-disable-next-line no-underscore-dangle
matchAjv._cache.clear()
return result
return parse(schema)
}

@@ -972,0 +970,0 @@ })()

{
"name": "skhema",
"version": "5.2.3-cache-leak-cd186dab45f2c05cbc05c0af14646db509bb21e7",
"version": "5.2.3",
"description": "JSON Schema utility collection",

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

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