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

fwk-api

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fwk-api - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

12

index.js

@@ -10,7 +10,4 @@ import axios from 'axios'

console.log('api cfg: ', info)
srv = axios.create({
baseURL: info.url,
headers: {
const headersInfo ={
// 'Access-Control-Allow-Credentials':'true',
'Access-Control-Allow-Origin': (info.acao)? info.acao: '*',
'Accept': 'application/json, text/plain, */*',

@@ -22,2 +19,9 @@ 'Content-Type': (info.ctype)? info.ctype:'application/json',

}
if (info.acao)
headersInfo['Access-Control-Allow-Origin']: info.acao
srv = axios.create({
baseURL: info.url,
headers: headersInfo
})

@@ -24,0 +28,0 @@ console.log('API SERVICE initialization srv:', srv)

{
"name": "fwk-api",
"version": "0.0.16",
"version": "0.0.17",
"description": "Framework with api services access(only javascript)",

@@ -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