Skip to content

Commit

Permalink
Merge pull request #6 from localnerve/rc-1.0.1
Browse files Browse the repository at this point in the history
@1.0.1 - devdep updates, posttranspile update
  • Loading branch information
localnerve committed Sep 29, 2023
2 parents 6c41923 + 2c91adf commit c69d78b
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 48 deletions.
96 changes: 54 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@localnerve/hmac-symmetric",
"version": "1.0.0",
"version": "1.0.1",
"description": "A library to generate hmac and symmetrically encrypted payloads",
"main": "index.js",
"type": "module",
Expand Down Expand Up @@ -44,14 +44,14 @@
},
"homepage": "https://github.com/localnerve/hmac-symmetric#readme",
"devDependencies": {
"@babel/cli": "^7.22.15",
"@babel/cli": "^7.23.0",
"@babel/preset-env": "^7.22.20",
"cross-env": "^7.0.3",
"rimraf": "^5.0.1",
"jest": "^29.7.0",
"eslint": "^8.49.0",
"eslint": "^8.50.0",
"tar": "^6.2.0",
"glob": "^10.3.4"
"glob": "^10.3.10"
},
"engines": {
"node": ">= 18"
Expand Down
4 changes: 2 additions & 2 deletions posttranspile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const files = await fs.readdir(dir);
for (const file of files) {
const filename = `${dir}${path.sep}${file}`;
const data = await fs.readFile(filename, 'utf8');
const newData = data.replace(/(require\("[a-z./]+)(\.js"\);)/g, (m, req) => {
return `${req}.cjs");`;
const newData = data.replace(/(require\("[a-z./]+)(\.js")(.+)$/mg, (m, req, repl, rest) => {
return `${req}.cjs"${rest}`;
});
await fs.writeFile(filename, newData);
}

0 comments on commit c69d78b

Please sign in to comment.