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

vies-vat

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vies-vat - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

6

lib/index.js

@@ -73,3 +73,3 @@ // VIES-VAT - bitinix@gmail.com

headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Type': 'text/xml; charset=utf-8',
'Accept': 'text/html,application/xhtml+xml,application/xml,text/xml;q=0.9,*/*;q=0.8',

@@ -113,3 +113,3 @@ 'Accept-Encoding': 'none',

if (!response.body.includes('<valid>true</valid>')) {
if (!response.body.includes('<ns2:valid>true</ns2:valid>')) {
if (call.debug) console.error(`vies debug - Error 2019 - ${error} `)

@@ -137,3 +137,3 @@ resolve({ error: false, viesInfo: output })

try {
let fnd = new RegExp(`<${tag}>(.*?)<\/${tag}>`, 'ig')
let fnd = new RegExp(`<ns2:${tag}>(.*?)<\/ns2:${tag}>`, 'ig')
let rpl = new RegExp(`<\/?${tag}>`, 'ig')

@@ -140,0 +140,0 @@ str.match(fnd).map(function (val) {

{
"name": "vies-vat",
"version": "1.2.1",
"version": "1.2.2",
"description": "A EU VAT Number validation via European Union VIES API including company information",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -125,5 +125,7 @@

### 1.2.2
Apply EU Updates<br />
### 1.2.1
Make for public use on GITHUB<br />

@@ -133,3 +135,3 @@ ## License

Copyright (c) 2021 bitinix@gmail.com<br />
Copyright (c) 2022 bitinix@gmail.com<br />

@@ -136,0 +138,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

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