mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Updated semver dependency
no issue - required code change for new API
This commit is contained in:
parent
c3125dd19f
commit
474f0a2184
3 changed files with 9 additions and 9 deletions
|
@ -33,12 +33,12 @@ module.exports = (packageJson) => {
|
|||
if (version === 'canary') {
|
||||
availableApiVersions.canary = version;
|
||||
} else {
|
||||
availableApiVersions[semver(semver.coerce(version).version).major] = version;
|
||||
availableApiVersions[semver.major(semver.coerce(version).version)] = version;
|
||||
}
|
||||
});
|
||||
|
||||
const apiVersion = packageJson.engines['ghost-api'];
|
||||
const apiVersionMajor = apiVersion === 'canary' ? 'canary' : semver(semver.coerce(apiVersion).version).major;
|
||||
const apiVersionMajor = apiVersion === 'canary' ? 'canary' : semver.major(semver.coerce(apiVersion).version);
|
||||
|
||||
if (availableApiVersions[apiVersionMajor]) {
|
||||
packageJson.engines['ghost-api'] = availableApiVersions[apiVersionMajor];
|
||||
|
|
|
@ -122,7 +122,7 @@
|
|||
"probe-image-size": "5.0.0",
|
||||
"rss": "1.2.2",
|
||||
"sanitize-html": "1.22.0",
|
||||
"semver": "6.3.0",
|
||||
"semver": "7.1.3",
|
||||
"simple-dom": "0.3.2",
|
||||
"simple-html-tokenizer": "0.5.9",
|
||||
"uuid": "3.4.0",
|
||||
|
|
12
yarn.lock
12
yarn.lock
|
@ -7906,16 +7906,16 @@ secure-keys@^1.0.0:
|
|||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
|
||||
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
|
||||
|
||||
semver@6.3.0, semver@^6.0.0, semver@^6.1.2:
|
||||
version "6.3.0"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
|
||||
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
|
||||
|
||||
semver@^7.1.3:
|
||||
semver@7.1.3, semver@^7.1.3:
|
||||
version "7.1.3"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-7.1.3.tgz#e4345ce73071c53f336445cfc19efb1c311df2a6"
|
||||
integrity sha512-ekM0zfiA9SCBlsKa2X1hxyxiI4L3B6EbVJkkdgQXnSEEaHlGdvyodMruTiulSRWMMB4NeIuYNMC9rTKTz97GxA==
|
||||
|
||||
semver@^6.0.0, semver@^6.1.2:
|
||||
version "6.3.0"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
|
||||
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
|
||||
|
||||
send@0.17.1:
|
||||
version "0.17.1"
|
||||
resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8"
|
||||
|
|
Loading…
Add table
Reference in a new issue