Git Product home page Git Product logo

verifalia / verifalia-js-sdk Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 3.0 709 KB

Verifalia REST API - Javascript SDK and helper library, for Node.js and the browser: verify email addresses in real-time and check whether they are deliverable, invalid, or otherwise risky.

Home Page: https://verifalia.com

License: Other

JavaScript 85.35% TypeScript 14.65%
data-verification data-verifier e-mail email-validation email-validator email-verification javascript node nodejs typescript verifalia

verifalia-js-sdk's People

Contributors

verifalia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

verifalia-js-sdk's Issues

Problem with webpack

I had installed the sdk using yarn. When I follow the example on the read.me I get this error

verifalia__WEBPACK_IMPORTED_MODULE_8__.VerifaliaRestClient is not a constructor
TypeError: verifalia__WEBPACK_IMPORTED_MODULE_8__.VerifaliaRestClient is not a constructor

Is it due to I installed the SDK on Angular ? .

TSLint is deprecated

The new recommended linter is ESLint
Exemple of configuration :

module.exports = {
  root: true,
  parser: '@typescript-eslint/parser',
  plugins: [
    '@typescript-eslint',
  ],
  extends: [
    'eslint:recommended',
    'plugin:@typescript-eslint/eslint-recommended',
    'plugin:@typescript-eslint/recommended',
    'eslint-config-prettier',
  ],
  rules: {
  }
};

Max Timeout

Hi!

I am integrating your SDK into my app, so far so good, just wondering what the maximum timeout can be for the basic case below. I.e - Maximum amount of time before the promise gets rejected or resolved.

const validation = await verifalia .emailValidations .submit('[email protected]', true);

Thanks

Invalid TypeScript interface

In the documentation, and in previous versions, this is used to initialize the SDK:

const verifalia = new verifaliaModule.VerifaliaRestClient({
    username: 'samantha',
    password: '42istheanswer'
});

however in https://github.com/verifalia/verifalia-js-sdk/blob/master/src/VerifaliaRestClientConfiguration.ts#L59 baseUris, cert, key and passphrase are not optional and will therefore prevent proper typing with the following error:
error TS2345: Argument of type '{ password: string; username: string; }' is not assignable to parameter of type 'VerifaliaRestClientConfiguration'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.