@onfido/api
Advanced tools
Comparing version 1.5.2 to 1.5.3
/// <reference types="node" /> | ||
import FormData from "form-data"; | ||
import { Readable } from "stream"; | ||
import { IFormData } from "./types/formData"; | ||
export declare type SimpleObject = { | ||
@@ -15,3 +15,3 @@ [key: string]: unknown; | ||
export declare const convertObjectToCamelCase: (responseBody: SimpleObject) => SimpleObject; | ||
export declare const toFormData: (object: SimpleObject) => FormData; | ||
export declare const toFormData: (object: SimpleObject) => IFormData; | ||
export {}; |
import axios from 'axios'; | ||
import { PassThrough, Readable } from 'stream'; | ||
import FormData from 'form-data'; | ||
var version = "1.5.2"; | ||
var version = "1.5.3"; | ||
@@ -65,2 +64,5 @@ class OnfidoError extends Error { | ||
// Using require because "form-data" exports this object as a default export which breaks integration when esModuleInterop: false | ||
// tslint:disable-next-line: no-var-requires | ||
const FormData = require("form-data"); | ||
const snakeCase = (s) => s.replace(/[A-Z]/g, char => `_${char.toLowerCase()}`); | ||
@@ -67,0 +69,0 @@ const camelCase = (s) => s.replace(/_[a-z]/g, underscoreChar => underscoreChar[1].toUpperCase()); |
@@ -9,5 +9,4 @@ 'use strict'; | ||
var stream = require('stream'); | ||
var FormData = _interopDefault(require('form-data')); | ||
var version = "1.5.2"; | ||
var version = "1.5.3"; | ||
@@ -72,2 +71,5 @@ class OnfidoError extends Error { | ||
// Using require because "form-data" exports this object as a default export which breaks integration when esModuleInterop: false | ||
// tslint:disable-next-line: no-var-requires | ||
const FormData = require("form-data"); | ||
const snakeCase = (s) => s.replace(/[A-Z]/g, char => `_${char.toLowerCase()}`); | ||
@@ -74,0 +76,0 @@ const camelCase = (s) => s.replace(/_[a-z]/g, underscoreChar => underscoreChar[1].toUpperCase()); |
{ | ||
"name": "@onfido/api", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Node.js library for the Onfido API", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"ts-jest": { | ||
"tsConfig": "test/tsconfig.json" | ||
"tsconfig": "test/tsconfig.json" | ||
} | ||
@@ -47,4 +47,4 @@ } | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@types/jest": "^25.1.4", | ||
"jest": "^25.2.4", | ||
"@types/jest": "^26.0.15", | ||
"jest": "^26.6.3", | ||
"nock": "^11.7.0", | ||
@@ -54,7 +54,7 @@ "prettier": "^1.18.2", | ||
"rollup-plugin-typescript2": "^0.25.3", | ||
"ts-jest": "^25.3.0", | ||
"ts-jest": "^26.4.4", | ||
"tslint": "^5.20.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"tslint-plugin-prettier": "^2.0.1", | ||
"typescript": "^3.6.4" | ||
"typescript": "^4.0.5" | ||
}, | ||
@@ -61,0 +61,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
130844
28
1356