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

crypttp-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypttp-parser - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

15

index.js

@@ -7,2 +7,4 @@ const atob = require('atob')

"id":"merchantId",
"successUrl": "successUrl",
"errorUrl": "errorUrl",
"params":[

@@ -15,4 +17,2 @@ [

"memo if required",
"success url",
"error url"
],

@@ -29,3 +29,12 @@ [

module.exports = function (url) {
return JSON.parse(atob(url.split("params=")[1]))
let source = JSON.parse(atob(url.split("params=")[1]))
source.params.map((el) => {
if (source.successUrl === undefined && source.errorUrl === undefined) {
source.successUrl = el[5]
source.errorUrl = el[6]
}
el.splice(5, 6)
})
return source
}

6

package.json
{
"name": "crypttp-parser",
"version": "0.0.1",
"version": "0.0.2",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"scripts": {},
"author": "",

@@ -10,0 +8,0 @@ "license": "ISC",

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