Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 2, 2022
1 parent fb6f861 commit be29088
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
strategy:
matrix:
node:
- lts/erbium
- lts/fermium
- node
7 changes: 4 additions & 3 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env node
import fs from 'fs'
import {URL} from 'url'
import fs from 'node:fs'
import {URL} from 'node:url'
import process from 'node:process'
import {stemmer} from './index.js'

/** @type {Object.<string, unknown>} */
var pack = JSON.parse(
String(fs.readFileSync(new URL('./package.json', import.meta.url)))
String(fs.readFileSync(new URL('package.json', import.meta.url)))
)

var argv = process.argv.slice(2)
Expand Down
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ var sfxEED = /^(.+?)eed$/
var sfxS = /^.+?[^s]s$/
var sfxSsesOrIes = /^.+?(ss|i)es$/
var sfxMultiConsonantLike = /([^aeiouylsz])\1$/
var step2 = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/
var step2 =
/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/
var step3 = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/
var step4 = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/
var step4 =
/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/

/**
* Stem `value`.
Expand All @@ -83,7 +85,7 @@ export function stemmer(value) {

// Detect initial `y`, make sure it never matches.
if (
value.charCodeAt(0) === 121 // Lowercase Y
value.codePointAt(0) === 121 // Lowercase Y
) {
firstCharacterWasLowerCaseY = true
value = 'Y' + value.slice(1)
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"@types/tape": "^4.0.0",
"c8": "^7.0.0",
"prettier": "^2.0.0",
"remark-cli": "^9.0.0",
"remark-preset-wooorm": "^8.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"xo": "^0.38.0"
"xo": "^0.52.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
Expand Down
14 changes: 7 additions & 7 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import assert from 'assert'
import {exec} from 'child_process'
import fs from 'fs'
import path from 'path'
import {PassThrough} from 'stream'
import {URL} from 'url'
import {stemmer} from '../index.js'
import assert from 'node:assert'
import {exec} from 'node:child_process'
import fs from 'node:fs'
import path from 'node:path'
import {PassThrough} from 'node:stream'
import {URL} from 'node:url'
import test from 'tape'
import {stemmer} from '../index.js'

/** @type {Object.<string, unknown>} */
var pack = JSON.parse(
Expand Down

0 comments on commit be29088

Please sign in to comment.