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

@platformatic/sql-mapper

Package Overview
Dependencies
Maintainers
6
Versions
332
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platformatic/sql-mapper - npm Package Compare versions

Comparing version 0.21.1 to 0.22.0

6

mapper.js

@@ -174,3 +174,7 @@ 'use strict'

// would need to use this same namespace
app.decorate('platformatic', mapper)
if (app.hasDecorator('platformatic')) {
Object.assign(app.platformatic, mapper)
} else {
app.decorate('platformatic', mapper)
}

@@ -177,0 +181,0 @@ app.decorateRequest('platformaticContext', null)

6

package.json
{
"name": "@platformatic/sql-mapper",
"version": "0.21.1",
"version": "0.22.0",
"description": "A data mapper utility for SQL databases",

@@ -17,7 +17,7 @@ "main": "mapper.js",

"devDependencies": {
"fastify": "^4.13.0",
"fastify": "^4.17.0",
"snazzy": "^9.0.0",
"standard": "^17.0.0",
"tap": "^16.3.4",
"tsd": "^0.28.0"
"tsd": "^0.28.1"
},

@@ -24,0 +24,0 @@ "dependencies": {

@@ -224,1 +224,14 @@

})
test('platformatic decorator already present', async ({ teardown }) => {
async function onDatabaseLoad (db, sql) {
}
const app = fastify()
app.decorate('platformatic', {})
teardown(() => app.close())
app.register(plugin, {
connectionString: connInfo.connectionString,
onDatabaseLoad
})
await app.ready()
})
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