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

french-contractions

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

french-contractions - npm Package Compare versions

Comparing version 2.16.9 to 2.16.10

8

dist/index.d.ts
export * from './hmuet';
export * from './vowel';
export declare function contracts(word: string): boolean;
interface ContractData {
contracts: boolean;
}
export interface ContractsData {
[key: string]: ContractData;
}
export declare function contracts(word: string, contractsData: ContractsData): boolean;

7

dist/index.js

@@ -18,4 +18,7 @@ "use strict";

const vowel_1 = require("./vowel");
function contracts(word) {
if (vowel_1.beginsWithVowel(word) && vowel_1.isContractedVowelWord(word)) {
function contracts(word, contractsData) {
if (contractsData && contractsData[word] && contractsData[word].contracts != null) {
return contractsData[word].contracts;
}
else if (vowel_1.beginsWithVowel(word) && vowel_1.isContractedVowelWord(word)) {
return true;

@@ -22,0 +25,0 @@ }

{
"name": "french-contractions",
"version": "2.16.9",
"version": "2.16.10",
"description": "French contractions: le hérisson, l'homme, ce yaourt, cet arbre",

@@ -56,3 +56,3 @@ "main": "dist/index.js",

"license": "MIT",
"gitHead": "cad6ab45154f6680478ace7af2b4eb3b233f9392"
"gitHead": "c4be3bba693b9c5e1564b6da828850c26c7e030f"
}

@@ -26,2 +26,7 @@ # french-contractions

One function `contracts` that take 2 arguments:
- the word (noun or adjective)
- a map of custom exceptions (optional): the word is the key, the value must be an object having a `contracts` property with a boolean value
```javascript

@@ -28,0 +33,0 @@ const lib = require('french-contractions');

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

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