@nuxtjp/localized-site 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/module.json +1 -1
- package/package.json +3 -2
- package/security/LICENSE-simple-git +20 -0
- package/security/README.md +2 -0
- package/security/dependency-security.check.cjs +11 -0
- package/security/patches/simple-git@4.0.2.patch +11 -0
- package/security/project.mjs +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Generate a Japanese/English introduction site from one validated configuration.
|
|
|
6
6
|
|
|
7
7
|
## Install and configure
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Install the package version `0.1.4` after it is available on npm. Use Node.js 22.19+ or 24.11+, Nuxt 4.5.1+ in major 4, and Vue `^3.5.40`.
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
12
|
pnpm add --save-exact @nuxtjp/localized-site@0.1.0 nuxt@4.5.1 vue@3.5.43
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtjp/localized-site",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Contract-first Japanese and English public-site module for Nuxt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -96,7 +96,8 @@
|
|
|
96
96
|
},
|
|
97
97
|
"patchedDependencies": {
|
|
98
98
|
"braces@3.0.3": "patches/braces@3.0.3.patch",
|
|
99
|
-
"node-forge@1.4.0": "patches/node-forge@1.4.0.patch"
|
|
99
|
+
"node-forge@1.4.0": "patches/node-forge@1.4.0.patch",
|
|
100
|
+
"simple-git@4.0.2": "security/patches/simple-git@4.0.2.patch"
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Steve King
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/security/README.md
CHANGED
|
@@ -19,3 +19,5 @@ The RSA test creates an ephemeral key in memory and never reads a user key. Patc
|
|
|
19
19
|
Run `pnpm audit --json` on the installed application and retain the report. Only the two backported braces/node-forge advisories may remain; any other advisory, including simple-git, its argument parser, or esbuild, blocks validation. Run the dependency regression command on each install to reject missing or older active versions.
|
|
20
20
|
|
|
21
21
|
The code patch inputs retain third-party notices in `LICENSE-braces` (MIT) and `LICENSE-node-forge`. The original dependencies remain registry packages; the shipped files configure and test the consumer rather than silently replacing its package manager.
|
|
22
|
+
|
|
23
|
+
The simple-git 4.0.2 compatibility patch restores only the legacy ESM default factory used by Nuxt devtools. It aliases the existing, fixed `simpleGit` factory and does not change argument validation, executable selection, or Git execution. The named factory remains identical. `LICENSE-simple-git` retains its upstream MIT notice. A fresh consumer build and type check with devtools enabled are mandatory release checks.
|
|
@@ -57,3 +57,14 @@ test('active dependency graph uses every required upstream security version', ()
|
|
|
57
57
|
for (const manifest of matches) assert.equal(JSON.parse(fs.readFileSync(manifest, 'utf8')).version, version, name);
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
|
|
61
|
+
// Preserve the ESM entry point expected by current Nuxt devtools without downgrading Git protections.
|
|
62
|
+
test('fixed simple-git retains named and legacy ESM factory exports', async () => {
|
|
63
|
+
const { pathToFileURL } = require('node:url');
|
|
64
|
+
const { installedDependencies } = require('./resolved-dependency.cjs');
|
|
65
|
+
for (const manifest of installedDependencies(process.cwd(), 'simple-git', '4.0.2')) {
|
|
66
|
+
const module = await import(pathToFileURL(path.join(path.dirname(manifest), 'dist/index.mjs')).href);
|
|
67
|
+
assert.equal(typeof module.simpleGit, 'function');
|
|
68
|
+
assert.equal(module.default, module.simpleGit);
|
|
69
|
+
}
|
|
70
|
+
});
|
package/security/project.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { existsSync, lstatSync, readFileSync, mkdirSync, writeFileSync, renameSy
|
|
|
3
3
|
import { join, resolve } from 'node:path'
|
|
4
4
|
import { randomUUID } from 'node:crypto'
|
|
5
5
|
|
|
6
|
-
const patches = ['braces@3.0.3', 'node-forge@1.4.0']
|
|
6
|
+
const patches = ['braces@3.0.3', 'node-forge@1.4.0', 'simple-git@4.0.2']
|
|
7
7
|
function regular(path) {
|
|
8
8
|
const stat = lstatSync(path)
|
|
9
9
|
if (stat.isSymbolicLink() || !stat.isFile() || stat.size > 1024 * 1024) {
|