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

@autheur/generator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@autheur/generator - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

7

dist/index.d.ts

@@ -22,2 +22,5 @@ import { Gender, DeterminantType } from '@autheur/datasets';

};
nextWordConfig: ({
word?: string;
} & SpacerConfig) | null;
}) => Omit<GeneratedConfig, 'form'>;

@@ -48,4 +51,6 @@ };

declare const oneOf: (words: string[]) => Generator;
declare function nounPhrase(): Generator[];
export { adjective, adverb, comma, determinant, generate, noun, nounPhrase, word };
export { adjective, adverb, comma, determinant, generate, noun, nounPhrase, oneOf, word };

4

package.json
{
"name": "@autheur/generator",
"version": "1.0.2",
"version": "1.1.0",
"description": "Random french sentence generator",

@@ -37,3 +37,3 @@ "funding": "https://github.com/sponsors/CorentinTh",

"dependencies": {
"@autheur/datasets": "^1.0.2",
"@autheur/datasets": "^1.0.3",
"@autheur/operators": "^1.0.0",

@@ -40,0 +40,0 @@ "defu": "^6.0.0"

@@ -107,2 +107,12 @@ # @autheur/generator

### `oneOf`
Get a random word/sentence from a list that you specify.
```typescript
import { generate, oneOf } from '@autheur/generator';
generate([oneOf(['foobar', 'yolo'])]); // yolo
```
## Other packages

@@ -109,0 +119,0 @@

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