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.26.1 to 0.27.0

11

mapper.d.ts

@@ -1,2 +0,2 @@

import { FastifyPluginAsync } from 'fastify'
import { FastifyPluginAsync, FastifyInstance, FastifyReply, FastifyRequest } from 'fastify'
import { SQL, SQLQuery } from '@databases/sql'

@@ -309,2 +309,7 @@

export interface PlatformaticContext {
app: FastifyInstance,
reply: FastifyReply
}
declare module 'fastify' {

@@ -314,2 +319,6 @@ interface FastifyInstance {

}
interface FastifyRequest {
platformaticContext: PlatformaticContext
}
}

@@ -316,0 +325,0 @@

8

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

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

"devDependencies": {
"fastify": "^4.17.0",
"fastify": "^4.18.0",
"snazzy": "^9.0.0",
"standard": "^17.0.0",
"tap": "^16.3.4",
"standard": "^17.1.0",
"tap": "^16.3.6",
"tsd": "^0.28.1"

@@ -23,0 +23,0 @@ },

@@ -0,1 +1,2 @@

'use strict'

@@ -2,0 +3,0 @@ const { test } = require('tap')

import { expectType } from 'tsd'
import { SQL, SQLQuery } from '@databases/sql'
import { fastify, FastifyInstance } from 'fastify'
import { fastify, FastifyInstance, FastifyReply } from 'fastify'
import {

@@ -75,4 +75,11 @@ connect,

instance.register(plugin, { connectionString: '', autoTimestamp: true })
instance.register((instance) => { expectType<SQLMapperPluginInterface>(instance.platformatic) })
instance.register((instance) => {
expectType<SQLMapperPluginInterface>(instance.platformatic)
instance.get('/', async (request, reply) => {
const ctx = request.platformaticContext
expectType<FastifyInstance>(ctx.app)
expectType<FastifyReply>(ctx.reply)
})
})
expectType<(str: string) => string>(utils.toSingular)
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