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

indefinite

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

indefinite - npm Package Compare versions

Comparing version 2.0.4 to 2.1.0

3

.eslint.json

@@ -80,5 +80,2 @@ {

"no-whitespace-before-property": "error",
"object-curly-newline": ["error", {
"minProperties": 1
}],
"object-curly-spacing": ["error", "always", {

@@ -85,0 +82,0 @@ "arraysInObjects": false,

16

dist/indefinite.js

@@ -1,3 +0,12 @@

window["indefinite"] =
/******/ (function(modules) { // webpackBootstrap
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["indefinite"] = factory();
else
root["indefinite"] = factory();
})(typeof self !== 'undefined' ? self : this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache

@@ -266,2 +275,3 @@ /******/ var installedModules = {};

/***/ })
/******/ ]);
/******/ ]);
});

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

window.indefinite=function(u){function e(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return u[t].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var r={};return e.m=u,e.c=r,e.d=function(u,r,t){e.o(u,r)||Object.defineProperty(u,r,{configurable:!1,enumerable:!0,get:t})},e.n=function(u){var r=u&&u.__esModule?function(){return u.default}:function(){return u};return e.d(r,"a",r),r},e.o=function(u,e){return Object.prototype.hasOwnProperty.call(u,e)},e.p="",e(e.s=1)}([function(u,e){e.check=function(u,r){if(r){var t=new RegExp(r+"$");u=u.replace(t,"")}return e.list.indexOf(u)>-1},e.list=["eunuch","eucalyptus","eugenics","eulogy","euphemism","euphony","euphoria","eureka","european","euphemistic","euphonic","euphoric","euphemistically","euphonically","euphorically","heir","heiress","herb","homage","honesty","honor","honour","hour","honest","honorous","honestly","hourly","one","ouija","once","ubiquity","udometer","ufo","uke","ukelele","ululate","unicorn","unicycle","uniform","unify","union","unison","unit","unity","universe","university","upas","ural","uranium","urea","ureter","urethra","urine","urology","urus","usage","use","usual","usurp","usury","utensil","uterus","utility","utopia","utricle","uvarovite","uvea","uvula","ubiquitous","ugandan","ukrainian","unanimous","unicameral","unified","unique","unisex","universal","urinal","urological","useful","useless","usurious","usurped","utilitarian","utopic","ubiquitously","unanimously","unicamerally","uniquely","universally","urologically","usefully","uselessly","usuriously","yttria","yggdrasil","ylem","yperite","ytterbia","ytterbium","yttrium","ytterbous","ytterbic","yttric"]},function(u,e,r){var t=r(0),n=r(2),i=n.startsWithVowel,o=n.xor,s=n.bothOrNeither,a=n.isAcronym,l=n.isIrregularAcronym,c=n.checkForIrregulars,y=n.capitalize,h=n.getFirst,p=function(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i(u);if(a(u,e.caseInsensitive)){var t=l(u),n=s(r,t)?"a":"an";return y(n,u,e)}var p=h(u),f=c(p),g=o(r,f)?"an":"a";return y(g,u,e)};p.irregularWords=t.list,u.exports=p},function(u,e,r){var t=r(0),n=/^[A-Z]+$/,i=/^[UFHLMNRSX]/,o=/^[aeiouAEIOU]/,s=/[\s'-]/;e.startsWithVowel=function(u){return o.test(u)},e.xor=function(u,e){return(u||e)&&!(u&&e)},e.bothOrNeither=function(u,e){return u===e},e.isAcronym=function(u,e){return!e&&n.test(u.split(" ")[0])},e.isIrregularAcronym=function(u){return i.test(u.charAt(0))},e.checkForIrregulars=function(u){return[null,"s","es","ed"].reduce(function(e,r){return e||t.check(u,r)},!1)},e.capitalize=function(u,e,r){return r.capitalize&&(u=""+u.charAt(0).toUpperCase()+u.slice(1)),u+" "+e},e.getFirst=function(u){return u.split(s)[0].toLowerCase()}}]);
!function(e,u){"object"==typeof exports&&"object"==typeof module?module.exports=u():"function"==typeof define&&define.amd?define([],u):"object"==typeof exports?exports.indefinite=u():e.indefinite=u()}("undefined"!=typeof self?self:this,function(){return function(e){function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}var r={};return u.m=e,u.c=r,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,u){return Object.prototype.hasOwnProperty.call(e,u)},u.p="",u(u.s=1)}([function(e,u){u.check=function(e,r){if(r){var t=new RegExp(r+"$");e=e.replace(t,"")}return u.list.indexOf(e)>-1},u.list=["eunuch","eucalyptus","eugenics","eulogy","euphemism","euphony","euphoria","eureka","european","euphemistic","euphonic","euphoric","euphemistically","euphonically","euphorically","heir","heiress","herb","homage","honesty","honor","honour","hour","honest","honorous","honestly","hourly","one","ouija","once","ubiquity","udometer","ufo","uke","ukelele","ululate","unicorn","unicycle","uniform","unify","union","unison","unit","unity","universe","university","upas","ural","uranium","urea","ureter","urethra","urine","urology","urus","usage","use","usual","usurp","usury","utensil","uterus","utility","utopia","utricle","uvarovite","uvea","uvula","ubiquitous","ugandan","ukrainian","unanimous","unicameral","unified","unique","unisex","universal","urinal","urological","useful","useless","usurious","usurped","utilitarian","utopic","ubiquitously","unanimously","unicamerally","uniquely","universally","urologically","usefully","uselessly","usuriously","yttria","yggdrasil","ylem","yperite","ytterbia","ytterbium","yttrium","ytterbous","ytterbic","yttric"]},function(e,u,r){var t=r(0),n=r(2),i=n.startsWithVowel,o=n.xor,s=n.bothOrNeither,a=n.isAcronym,l=n.isIrregularAcronym,c=n.checkForIrregulars,f=n.capitalize,y=n.getFirst,p=function(e){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i(e);if(a(e,u.caseInsensitive)){var t=l(e),n=s(r,t)?"a":"an";return f(n,e,u)}var p=y(e),h=c(p),d=o(r,h)?"an":"a";return f(d,e,u)};p.irregularWords=t.list,e.exports=p},function(e,u,r){var t=r(0),n=/^[A-Z]+$/,i=/^[UFHLMNRSX]/,o=/^[aeiouAEIOU]/,s=/[\s'-]/;u.startsWithVowel=function(e){return o.test(e)},u.xor=function(e,u){return(e||u)&&!(e&&u)},u.bothOrNeither=function(e,u){return e===u},u.isAcronym=function(e,u){return!u&&n.test(e.split(" ")[0])},u.isIrregularAcronym=function(e){return i.test(e.charAt(0))},u.checkForIrregulars=function(e){return[null,"s","es","ed"].reduce(function(u,r){return u||t.check(e,r)},!1)},u.capitalize=function(e,u,r){return r.capitalize&&(e=""+e.charAt(0).toUpperCase()+e.slice(1)),e+" "+u},u.getFirst=function(e){return e.split(s)[0].toLowerCase()}}])});
{
"name": "indefinite",
"description": "Prefix a noun with an indefinite article - a or an - based on whether it begins with a vowel",
"version": "2.0.4",
"version": "2.1.0",
"main": "lib/indefinite.js",
"browser": "dist/indefinite.js",
"scripts": {

@@ -7,0 +8,0 @@ "test": "gulp",

@@ -11,3 +11,3 @@ const webpack = require('webpack');

library: 'indefinite',
libraryTarget: 'window',
libraryTarget: 'umd',
path: `${__dirname}/dist`,

@@ -26,3 +26,3 @@ filename: '[name].js'

presets: [
['env', { modules: false }]
[ 'env', { modules: false }]
]

@@ -29,0 +29,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