New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

restricted-input

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restricted-input - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

dist/supports-input-formatting.d.ts

1

dist/lib/restricted-input.d.ts

@@ -23,3 +23,4 @@ import { StrategyInterface, StrategyOptions } from "./strategies/strategy-interface";

setPattern(pattern: string): void;
static supportsFormatting(): boolean;
}
export = RestrictedInput;
"use strict";
var device_1 = require("./device");
var supportsInputFormatting = require("../supports-input-formatting");
var ios_1 = require("./strategies/ios");

@@ -48,4 +49,7 @@ var android_chrome_1 = require("./strategies/android-chrome");

};
RestrictedInput.supportsFormatting = function () {
return supportsInputFormatting();
};
return RestrictedInput;
}());
module.exports = RestrictedInput;

3

dist/lib/strategies/ios.js

@@ -50,5 +50,2 @@ "use strict";

});
this.inputElement.addEventListener("focus", function () {
_this.formatListener();
});
this.inputElement.addEventListener("paste", function (event) {

@@ -55,0 +52,0 @@ _this.pasteEventHandler(event);

{
"name": "restricted-input",
"version": "4.0.2",
"version": "4.0.3",
"description": "Restrict inputs to certain valid characters (e.g. formatting phone or card numbers)",

@@ -5,0 +5,0 @@ "author": "Braintree <code@getbraintree.com> (https://www.braintreepayments.com/)",

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