Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rails-request-json

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rails-request-json - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

7

index.js

@@ -9,4 +9,5 @@ import { FetchRequest } from '@rails/request.js'

return request.perform().then(response => {
if(response.statusCode === 204) return ''
return response.json()
if(response.response.headers.get('Content-Length') > 0) {
return response.json
}
})

@@ -19,4 +20,4 @@ }

const patch = (url, payload) => makeRequest('patch', url, payload)
const destroy = (url, payload) => makeRequest('destroy', url, payload)
const destroy = (url, payload) => makeRequest('delete', url, payload)
export { get, post, put, patch, destroy }
{
"name": "rails-request-json",
"version": "0.0.0",
"version": "0.0.1",
"description": "JSON shorthand functions for @rails/request.js",

@@ -5,0 +5,0 @@ "main": "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