Organized package dependencies

- cleaned up unused dependencies
- adds missing dependencies that are used in the code
- this should help us be more explicit about the dependencies a package
  uses
This commit is contained in:
Daniel Lockyer 2022-08-18 11:36:16 +02:00
parent aa00fe5474
commit f51226e5fb
21 changed files with 35 additions and 46 deletions

View File

@ -18,6 +18,7 @@
"lib"
],
"devDependencies": {
"bluebird": "3.7.2",
"c8": "7.12.0",
"mocha": "10.0.0",
"should": "13.2.3",

View File

@ -78,7 +78,6 @@
"@tryghost/kg-card-factory": "3.1.4",
"@tryghost/kg-default-atoms": "3.1.3",
"@tryghost/kg-default-cards": "5.16.3",
"@tryghost/kg-markdown-html-renderer": "5.1.6",
"@tryghost/kg-mobiledoc-html-renderer": "5.3.6",
"@tryghost/limit-service": "1.2.3",
"@tryghost/logging": "2.2.4",
@ -86,6 +85,7 @@
"@tryghost/mailgun-client": "0.0.0",
"@tryghost/member-events": "0.0.0",
"@tryghost/members-api": "0.0.0",
"@tryghost/members-csv": "0.0.0",
"@tryghost/members-events-service": "0.0.0",
"@tryghost/members-importer": "0.0.0",
"@tryghost/members-offers": "0.0.0",
@ -105,7 +105,6 @@
"@tryghost/pretty-cli": "1.2.30",
"@tryghost/promise": "0.1.21",
"@tryghost/request": "0.1.29",
"@tryghost/root-utils": "0.3.16",
"@tryghost/security": "0.0.0",
"@tryghost/session-service": "0.0.0",
"@tryghost/settings-path-manager": "0.0.0",

View File

@ -19,7 +19,6 @@
"devDependencies": {
"c8": "7.12.0",
"mocha": "10.0.0",
"should": "13.2.3",
"sinon": "14.0.0"
"should": "13.2.3"
}
}

View File

@ -17,13 +17,10 @@
],
"devDependencies": {
"mocha": "10.0.0",
"nock": "13.2.9",
"should": "13.2.3",
"sinon": "14.0.0"
},
"dependencies": {
"@tryghost/email-analytics-service": "0.0.0",
"@tryghost/logging": "2.2.4",
"@tryghost/mailgun-client": "0.0.0",
"moment": "2.29.1"
}

View File

@ -19,11 +19,11 @@
],
"devDependencies": {
"c8": "7.12.0",
"mocha": "10.0.0",
"should": "13.2.3",
"sinon": "14.0.0"
"mocha": "10.0.0"
},
"dependencies": {
"html-to-text": "5.1.1"
"fs-extra": "10.1.0",
"html-to-text": "5.1.1",
"lodash": "4.17.21"
}
}

View File

@ -18,8 +18,7 @@
"devDependencies": {
"c8": "7.12.0",
"mocha": "10.0.0",
"should": "13.2.3",
"sinon": "14.0.0"
"should": "13.2.3"
},
"peerDependencies": {
"express": "^4.17.1"

View File

@ -26,6 +26,7 @@
},
"dependencies": {
"@breejs/later": "4.1.0",
"@tryghost/errors": "1.2.14",
"@tryghost/logging": "2.2.4",
"bree": "6.5.0",
"cron-validate": "1.4.3",

View File

@ -24,8 +24,7 @@
"sinon": "14.0.0"
},
"dependencies": {
"bluebird": "3.7.2",
"jsonwebtoken": "8.5.1",
"lodash": "4.17.21"
"@tryghost/errors": "1.2.15",
"jsonwebtoken": "8.5.1"
}
}

View File

@ -20,10 +20,11 @@
"devDependencies": {
"c8": "7.12.0",
"mocha": "10.0.0",
"should": "13.2.3",
"nock": "13.2.9",
"sinon": "14.0.0"
},
"dependencies": {
"@tryghost/debug": "0.1.18",
"@tryghost/logging": "2.2.4",
"form-data": "4.0.0",
"lodash": "4.17.21",

View File

@ -27,7 +27,6 @@
"sinon": "14.0.0"
},
"dependencies": {
"@tryghost/debug": "0.1.18",
"@tryghost/domain-events": "0.0.0",
"@tryghost/errors": "1.2.15",
"@tryghost/logging": "2.2.4",
@ -36,18 +35,16 @@
"@tryghost/member-events": "0.0.0",
"@tryghost/members-analytics-ingress": "0.0.0",
"@tryghost/members-payments": "0.0.0",
"@tryghost/members-stripe-service": "0.0.0",
"@tryghost/nql": "0.9.2",
"@tryghost/tpl": "0.1.18",
"@types/jsonwebtoken": "8.5.8",
"bluebird": "3.7.2",
"body-parser": "1.20.0",
"bson-objectid": "2.0.3",
"cookies": "0.8.0",
"express": "4.18.1",
"got": "9.6.0",
"jsonwebtoken": "8.5.1",
"lodash": "4.17.21",
"moment": "2.29.4",
"node-jose": "2.1.1"
}
}

View File

@ -18,11 +18,13 @@
"devDependencies": {
"c8": "7.12.0",
"mocha": "10.0.0",
"moment": "2.29.4",
"should": "13.2.3",
"sinon": "14.0.0"
},
"dependencies": {
"@tryghost/domain-events": "0.0.0",
"@tryghost/errors": "1.2.14",
"@tryghost/member-events": "0.0.0",
"moment-timezone": "0.5.34"
}

View File

@ -17,6 +17,7 @@
],
"devDependencies": {
"c8": "7.12.0",
"fs-extra": "10.1.0",
"mocha": "10.0.0",
"should": "13.2.3",
"sinon": "14.0.0"

View File

@ -26,10 +26,7 @@
"dependencies": {
"@tryghost/debug": "0.1.18",
"@tryghost/errors": "1.2.15",
"bluebird": "3.7.2",
"concat-stream": "2.0.0",
"cookies": "0.8.0",
"jsonwebtoken": "8.5.1",
"lodash": "4.17.21"
"jsonwebtoken": "8.5.1"
}
}

View File

@ -18,6 +18,7 @@
"lib"
],
"devDependencies": {
"@tryghost/errors": "1.2.15",
"c8": "7.12.0",
"mocha": "10.0.0",
"sinon": "14.0.0"

View File

@ -19,14 +19,13 @@
],
"devDependencies": {
"c8": "7.12.0",
"mocha": "10.0.0",
"should": "13.2.3",
"sinon": "14.0.0"
"mocha": "10.0.0"
},
"dependencies": {
"@tryghost/errors": "1.2.15",
"@tryghost/logging": "2.2.4",
"@tryghost/tpl": "0.1.18",
"cheerio": "0.22.0",
"lodash": "4.17.21",
"metascraper": "5.30.2",
"metascraper-author": "5.30.2",

View File

@ -16,13 +16,17 @@
"lib"
],
"devDependencies": {
"bson-objectid": "2.0.3",
"c8": "7.12.0",
"mocha": "10.0.0",
"should": "13.2.3",
"sinon": "14.0.0"
},
"dependencies": {
"@tryghost/domain-events": "0.0.0",
"@tryghost/errors": "1.2.15",
"@tryghost/mongo-utils": "0.3.5",
"@tryghost/string": "0.1.27"
"@tryghost/string": "0.1.27",
"lodash": "4.17.21"
}
}

View File

@ -19,7 +19,8 @@
"c8": "7.12.0",
"mocha": "10.0.0",
"should": "13.2.3",
"sinon": "14.0.0"
"sinon": "14.0.0",
"uuid": "8.3.2"
},
"dependencies": {
"@tryghost/string": "0.1.27",

View File

@ -19,7 +19,8 @@
"c8": "7.12.0",
"mocha": "10.0.0",
"should": "13.2.3",
"sinon": "14.0.0"
"sinon": "14.0.0",
"uuid": "8.3.2"
},
"dependencies": {
"@tryghost/debug": "0.1.18",

View File

@ -23,6 +23,7 @@
},
"dependencies": {
"@tryghost/domain-events": "0.0.0",
"@tryghost/errors": "1.2.15",
"@tryghost/member-events": "0.0.0"
}
}

View File

@ -20,7 +20,6 @@
"devDependencies": {
"c8": "7.12.0",
"mocha": "10.0.0",
"should": "13.2.3",
"sinon": "14.0.0"
}
}

View File

@ -3361,7 +3361,7 @@
lodash "^4.17.21"
luxon "^2.1.1"
"@tryghost/kg-markdown-html-renderer@5.1.6", "@tryghost/kg-markdown-html-renderer@^5.1.6":
"@tryghost/kg-markdown-html-renderer@^5.1.6":
version "5.1.6"
resolved "https://registry.yarnpkg.com/@tryghost/kg-markdown-html-renderer/-/kg-markdown-html-renderer-5.1.6.tgz#be932439a4aed1994101c800d993a7b4b844256d"
integrity sha512-GUNNCZtGx4QqQtyKQfnLjkvmVt1hK6yxTC9ykKKnigzJuQx7byEvORrWE9WD5AkcjoPQBggAVS/RRKRfPGgYKA==
@ -3548,7 +3548,7 @@
got "9.6.0"
lodash "^4.17.21"
"@tryghost/root-utils@0.3.16", "@tryghost/root-utils@^0.3.15", "@tryghost/root-utils@^0.3.16":
"@tryghost/root-utils@^0.3.15", "@tryghost/root-utils@^0.3.16":
version "0.3.16"
resolved "https://registry.yarnpkg.com/@tryghost/root-utils/-/root-utils-0.3.16.tgz#a3dca3c9edccab494ca5968e460af2d49da4ce2b"
integrity sha512-+X79NBxHwJW9tiO/B+uJbCmcgv/MotY+g3p/+bwIWjGfuC7VUXBDHNswERtJrx6b374b1N1zXXl1iWJNtSavdg==
@ -7823,16 +7823,6 @@ concat-map@0.0.1:
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
concat-stream@2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-2.0.0.tgz#414cf5af790a48c60ab9be4527d56d5e41133cb1"
integrity sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==
dependencies:
buffer-from "^1.0.0"
inherits "^2.0.3"
readable-stream "^3.0.2"
typedarray "^0.0.6"
concat-stream@^1.5.0, concat-stream@^1.5.2:
version "1.6.2"
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"
@ -16510,7 +16500,7 @@ moment-timezone@0.5.23, moment-timezone@0.5.34, moment-timezone@^0.5.13, moment-
dependencies:
moment ">= 2.9.0"
moment@2.24.0, moment@2.27.0, moment@2.29.1, "moment@>= 2.9.0", moment@^2.10.2, moment@^2.18.1, moment@^2.19.3, moment@^2.27.0, moment@^2.29.1, moment@^2.29.3:
moment@2.24.0, moment@2.27.0, moment@2.29.1, moment@2.29.4, "moment@>= 2.9.0", moment@^2.10.2, moment@^2.18.1, moment@^2.19.3, moment@^2.27.0, moment@^2.29.1, moment@^2.29.3:
version "2.24.0"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"
integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==
@ -19275,7 +19265,7 @@ readable-stream@1.1.x:
isarray "0.0.1"
string_decoder "~0.10.x"
"readable-stream@2 || 3", readable-stream@^3.0.2, readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.6.0:
"readable-stream@2 || 3", readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198"
integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==