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

@sacquer/omdb-api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sacquer/omdb-api - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

27

index.js

@@ -1,10 +0,23 @@

const value = 42
const axios = require('axios')
function sum(a, b) {
return a + b
class OpenMovieDatabase {
constructor(apiKey) {
this.apiKey = apiKey
}
async get(parameters) {
try {
const { data } = await axios({
method: 'GET',
url: 'http://www.omdbapi.com',
params: { apikey: this.apiKey, ...parameters },
})
return data
} catch (error) {
console.log(error.response)
throw error.response.data
}
}
}
module.exports = {
value,
sum
}
module.exports = OpenMovieDatabase
{
"name": "@sacquer/omdb-api",
"version": "0.0.2"
"version": "0.0.3",
"dependencies": {
"axios": "^0.24.0"
}
}
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