Skip to content

Commit

Permalink
[Deps] update semver
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 19, 2024
1 parent f57bc0a commit abd2974
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions api.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import {
import { spawn } from 'child_process';

import inspect from 'object-inspect';
import semver from 'semver';
import major from 'semver/functions/major.js';
import { createRequire } from 'module';

import pargs from './pargs.mjs';

const require = createRequire(import.meta.url);

const { version } = require('./package.json');
const major = semver.major(version);
const majorV = major(version);

const help = readFileSync(join(import.meta.dirname, './help.txt'), 'utf8');

Expand Down Expand Up @@ -301,7 +301,7 @@ const validateModule = function validateAPIModule(t, nameOrFilePaths) {
};

moduleNames.forEach(([name, filePath]) => {
test(`es-shim API v${major}: testing module: ${name}`, (t) => {
test(`es-shim API v${majorV}: testing module: ${name}`, (t) => {
t.comment('* ----------------------------- * #');
t.error(validateModule(t, filePath), 'expected no error');
t.end();
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"exports": {
"./package.json": "./package.json"
},
"license": "MIT",
"license": "MIT",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"version": "auto-changelog && git add CHANGELOG.md",
Expand Down Expand Up @@ -46,7 +46,7 @@
"dependencies": {
"object-inspect": "^1.13.2",
"object.groupby": "^1.0.3",
"semver": "^6.3.1",
"semver": "^7.6.3",
"tape": "^5.8.1"
},
"devDependencies": {
Expand Down

0 comments on commit abd2974

Please sign in to comment.