epayco-tokenizer
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -121,2 +121,5 @@ import { v4 } from 'uuid'; | ||
res = _a.sent(); | ||
if (!res.status) { | ||
throw new Error(res.message); | ||
} | ||
token = res.data.token; | ||
@@ -126,2 +129,3 @@ return [2 /*return*/, token]; | ||
error_1 = _a.sent(); | ||
console.log('entra al catch?', error_1); | ||
throw error_1; | ||
@@ -128,0 +132,0 @@ case 4: return [2 /*return*/]; |
@@ -123,2 +123,5 @@ 'use strict'; | ||
res = _a.sent(); | ||
if (!res.status) { | ||
throw new Error(res.message); | ||
} | ||
token = res.data.token; | ||
@@ -128,2 +131,3 @@ return [2 /*return*/, token]; | ||
error_1 = _a.sent(); | ||
console.log('entra al catch?', error_1); | ||
throw error_1; | ||
@@ -130,0 +134,0 @@ case 4: return [2 /*return*/]; |
@@ -5,3 +5,2 @@ import 'whatwg-fetch'; | ||
value: string; | ||
required: boolean; | ||
} | ||
@@ -8,0 +7,0 @@ declare class Tokenizer { |
{ | ||
"name": "epayco-tokenizer", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Agnostic browser tokenizer for epayco", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/5h1rU/epayco-tokenizer", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21102
374