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

class-validator

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-validator - npm Package Compare versions

Comparing version 0.12.0-refactor.2 to 0.12.0-refactor.3

3

esm2015/decorator/string/IsPhoneNumber.js
import { buildMessage, ValidateBy } from "../common/ValidateBy";
import * as libphonenumber from "google-libphonenumber";
const phoneUtil = libphonenumber.PhoneNumberUtil.getInstance();
const phoneUtil = require("google-libphonenumber").PhoneNumberUtil.getInstance();
export const IS_PHONE_NUMBER = "isPhoneNumber";

@@ -5,0 +4,0 @@ /**

import { buildMessage, ValidateBy } from "../common/ValidateBy";
import * as libphonenumber from "google-libphonenumber";
var phoneUtil = libphonenumber.PhoneNumberUtil.getInstance();
var phoneUtil = require("google-libphonenumber").PhoneNumberUtil.getInstance();
export var IS_PHONE_NUMBER = "isPhoneNumber";

@@ -5,0 +4,0 @@ /**

{
"name": "class-validator",
"private": false,
"version": "0.12.0-refactor.2",
"version": "0.12.0-refactor.3",
"description": "Class-based validation with Typescript / ES6 / ES5 using decorators or validation schemas. Supports both node.js and browser",

@@ -32,3 +32,3 @@ "license": "MIT",

"@types/validator": "12.0.1",
"google-libphonenumber": "^3.1.6",
"google-libphonenumber": "^3.2.8",
"validator": "12.2.0"

@@ -40,3 +40,2 @@ },

"@types/del": "^4.0.0",
"@types/google-libphonenumber": "^7.4.17",
"@types/gulp": "^4.0.2",

@@ -43,0 +42,0 @@ "@types/gulp-istanbul": "^0.9.32",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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