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

attr-accept

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

attr-accept - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

dist/es/index.js

2

dist/index.js

@@ -1,1 +0,1 @@

module.exports=function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var t={};return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="",r(r.s=0)}([function(e,r,t){"use strict";r.__esModule=!0,r.default=function(e,r){if(e&&r){var t=Array.isArray(r)?r:r.split(","),n=e.name||"",o=e.type||"",u=o.replace(/\/.*$/,"");return t.some(function(e){var r=e.trim();return"."===r.charAt(0)?n.toLowerCase().endsWith(r.toLowerCase()):r.endsWith("/*")?u===r.replace(/\/.*$/,""):o===r})}return!0}}]);
module.exports=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){"use strict";r.__esModule=!0,r.default=function(e,r){if(e&&r){var t=Array.isArray(r)?r:r.split(","),n=e.name||"",o=e.type||"",u=o.replace(/\/.*$/,"");return t.some((function(e){var r=e.trim();return"."===r.charAt(0)?n.toLowerCase().endsWith(r.toLowerCase()):r.endsWith("/*")?u===r.replace(/\/.*$/,""):o===r}))}return!0}}]);
{
"name": "attr-accept",
"description": "JavaScript implementation of the \"accept\" attribute for HTML5 <input type=\"file\">",
"version": "2.2.0",
"version": "2.2.1",
"main": "dist/index.js",
"module": "src/index.js",
"module": "dist/es/index.js",
"types": "index.d.ts",
"scripts": {
"build": "webpack -p",
"clean": "rimraf ./dist",
"build": "npm run clean && npm run build:cjs && npm run build:es",
"build:cjs": "webpack -p",
"build:es": "cross-env BABEL_ENV=es babel ./src --out-dir ./dist/es --ignore '**/*.spec.js'",
"prepublish": "npm test && npm run build",
"pretest": "npm run lint",
"test": "mocha --compilers js:babel-core/register --recursive",
"test": "mocha --compilers js:@babel/register --recursive",
"test:watch": "npm test -- --watch",

@@ -43,8 +46,22 @@ "lint": "eslint src/ test/",

"devDependencies": {
"@babel/cli": "^7.6.4",
"@babel/core": "^7.10.5",
"@babel/plugin-external-helpers": "^7.2.0",
"@babel/plugin-proposal-do-expressions": "^7.6.0",
"@babel/plugin-proposal-export-default-from": "^7.5.2",
"@babel/plugin-proposal-logical-assignment-operators": "^7.2.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
"@babel/plugin-proposal-optional-chaining": "^7.6.0",
"@babel/plugin-proposal-pipeline-operator": "^7.5.0",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"@babel/preset-react": "^7.6.3",
"@babel/register": "^7.6.2",
"@commitlint/cli": "^8.2.0",
"@size-limit/preset-small-lib": "^2.1.6",
"babel-core": "^6.26.0",
"babel-eslint": "^8.0.0",
"babel-loader": "^7.1.2",
"babel-loader": "^8.0.0",
"babel-preset-env": "^1.6.0",
"core-js": "^3.1.4",
"cross-env": "^6.0.3",
"cz-conventional-changelog": "^1.2.0",

@@ -66,3 +83,5 @@ "eslint": "^4.6.1",

"prettier": "^1.6.1",
"webpack": "^3.5.5"
"rimraf": "^3.0.0",
"webpack": "^4.0.0",
"webpack-cli": "^3.3.12"
},

@@ -69,0 +88,0 @@ "engines": {

@@ -10,7 +10,9 @@ module.exports = {

module: {
loaders: [
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
}
}

@@ -17,0 +19,0 @@ ]

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