Commit Graph

259 Commits

Author SHA1 Message Date
Renovate Bot
38af1013b7 Update dependency sinon to v9.2.0 2020-10-06 19:10:59 +00:00
Renovate Bot
09a5f584c3 Update dependency @tryghost/string to v0.1.12 2020-09-30 03:05:47 +00:00
Renovate Bot
a7e0e73f16 Update dependency sinon to v9.1.0 2020-09-29 22:07:11 +00:00
Renovate Bot
7dc6f3e7f6 Update dependency @types/sinon to v9.0.7 2020-09-29 20:05:14 +00:00
Renovate Bot
7f2accca8d Update dependency moleculer to v0.14.11 2020-09-28 04:05:59 +00:00
Renovate Bot
e582d07a85 Update dependency @types/sinon to v9.0.6 2020-09-28 00:05:49 +00:00
Renovate Bot
8566984603 Update dependency supertest to v5 2020-09-25 13:36:18 +00:00
Nazar Gargol
1f73b85e5e Published new versions
- @tryghost/adapter-manager@0.1.11
 - @tryghost/bootstrap-socket@0.2.2
 - @tryghost/constants@0.1.1
 - @tryghost/errors@0.2.4
 - @tryghost/image-transform@1.0.4
 - @tryghost/job-manager@0.1.1
 - @tryghost/moleculer-service-from-class@0.2.6
 - @tryghost/mw-session-from-token@0.1.8
 - @tryghost/pretty-cli@1.2.10
 - @tryghost/promise@0.1.1
 - @tryghost/release-utils@0.6.7
 - @tryghost/security@0.2.0
 - @tryghost/session-service@0.1.9
 - @tryghost/vhost-middleware@1.0.9
 - @tryghost/zip@1.1.4
2020-09-22 15:36:49 +12:00
Nazar Gargol
d33b377c6a Corrected "declared in uppper scope" linting errors 2020-09-22 15:33:30 +12:00
Nazar Gargol
07972312ed Extended resetToken.compare return result with reason for comparison failure
refs https://github.com/TryGhost/Ghost/issues/11878

- To be able to identify the reason behind comparison failure on more granular level (like token expiration) had to provide additional information in return result for falsy token comparisons
2020-09-22 15:31:15 +12:00
Nazar Gargol
54f9ff24c2 Extended test coverage for tokens module
refs https://github.com/TryGhost/Ghost/issues/11878

- There are multiple reasons why the token can be invalid. This coverage is meant cover these reasons and pave the way for introduction of more rganular errors causing the invlid token
2020-09-22 13:17:07 +12:00
Renovate Bot
01f6345c08 Update dependency sharp to v0.26.1 2020-09-21 00:05:28 +00:00
Renovate Bot
c4edcbce63 Update dependency typescript to v4.0.3 2020-09-18 20:18:17 +00:00
Renovate Bot
6addf093a9 Update dependency folder-hash to v3.3.3 2020-09-02 11:32:41 +00:00
Renovate Bot
0633b9a7fe Update dependency mocha to v8.1.3 2020-08-28 21:05:06 +00:00
Renovate Bot
155daf42c8 Update dependency mocha to v8.1.2 2020-08-25 20:08:54 +00:00
Renovate Bot
8fe0c84005 Update dependency sharp to v0.26.0 2020-08-25 19:02:24 +00:00
Renovate Bot
d1d244b935 Update dependency moleculer to v0.14.10 2020-08-24 00:06:15 +00:00
Renovate Bot
c121c95721 Update dependency @types/sinon to v9.0.5 2020-08-21 18:56:05 +00:00
Renovate Bot
521ad81727 Update dependency typescript to v4 2020-08-20 16:03:03 +00:00
Renovate Bot
a134e8460d Update dependency @types/mocha to v8.0.3 2020-08-17 21:03:40 +00:00
Renovate Bot
e5ba7185ee Update dependency lodash to v4.17.20 2020-08-13 17:20:11 +00:00
Renovate Bot
cfa076f739 Update dependency @tryghost/string to v0.1.11 2020-08-13 09:25:00 +00:00
Renovate Bot
0a6c935153 Update dependency sinon to v9.0.3 2020-08-11 21:07:08 +00:00
Renovate Bot
831ec9f980 Update dependency @types/mocha to v8.0.2 2020-08-11 21:06:10 +00:00
Hannah Wolfe
7501b19557 Published new versions
- @tryghost/job-manager@0.1.0
2020-08-11 21:22:33 +01:00
Hannah Wolfe
2c1417da88 Added new job manager package
- Minimal working version of a job manager
- Uses fastq for handling the queue
- Exposes 2 methods: addJob and shutdown
2020-08-11 21:17:52 +01:00
Daniel Lockyer
e303baa184 Published new versions
- @tryghost/promise@0.1.0
 - @tryghost/release-utils@0.6.6
2020-08-11 18:37:00 +01:00
Daniel Lockyer
16f11b929f Added index.js file to export lib packages 2020-08-11 18:33:30 +01:00
Daniel Lockyer
db19e1605e Added Bluebird dependency 2020-08-11 18:33:21 +01:00
Daniel Lockyer
8c8fad3403 Updated tests filenames and fixed local requires
- fixed local requires to point to this new package
2020-08-11 18:28:51 +01:00
Daniel Lockyer
ee2f417298 Merged promise files and history from TryGhost/Ghost
* extracted promise lib files and tests from Ghost
* includes commits:
  Updated var declarations to const/let and no lists
  Move tests from core to root (#11700)
  Extended sequence utility
  Moved pipeline/sequence to lib/promise
2020-08-11 18:24:26 +01:00
Daniel Lockyer
ffe83649e4 Created @tryghost/promise package 2020-08-11 18:24:26 +01:00
Daniel Lockyer
c4de1841d0 Fixed files remaining in root after changelog test
- we didn't clear up the files after we were done with them so they
  stuck around in the root folder
2020-08-11 16:34:35 +01:00
Daniel Lockyer
dcc269b9a9 Published new versions
- @tryghost/security@0.1.0
2020-08-11 13:49:57 +01:00
Daniel Lockyer
ccf0f074c7 Added missing dependencies for new @tryghost/security package 2020-08-11 13:47:34 +01:00
Daniel Lockyer
ec0ed397d9 Moved test files to correct name
- `yarn test` will look for files matching `*.test.js`, so this commit
  fixes the name for the tests
2020-08-11 13:45:21 +01:00
Daniel Lockyer
14a53f696e Populated index.js with exports to package components
- pulled lib/index.js up to root and fixed paths
2020-08-11 13:38:44 +01:00
Daniel Lockyer
aa1c597e71 Removed template test file
- real tests have been pulled in so we don't need this
2020-08-11 13:35:40 +01:00
Daniel Lockyer
ff9e980fcb Merged security files and history from TryGhost/Ghost
* included commits:
  Updated var declarations to const/let and no lists
  Move tests from core to root (#11700)
  Updated to use slugify method from SDK for safe string
  Added Node v10 Support (#10058)
  Dynamic Routing: Added migration for routes.yaml file (#9692)
  Fixed missing Bluebird require in `security/password.js` (#9624)
  🔥  Drop Node v4 Support
  Added unit tests for models.Invite.add
  Added lib.security.password lib
  Moved unique identifier generation to lib/security
  Moved tokens, url safe and safe string utility to lib/security
2020-08-11 13:30:09 +01:00
Daniel Lockyer
82a698ec0b Created @tryghost/security package 2020-08-11 13:29:32 +01:00
Daniel Lockyer
ab5ced6bdd Published new versions
- @tryghost/adapter-manager@0.1.10
 - @tryghost/bootstrap-socket@0.2.1
 - @tryghost/constants@0.1.0
 - @tryghost/errors@0.2.3
 - @tryghost/image-transform@1.0.3
 - @tryghost/moleculer-service-from-class@0.2.5
 - @tryghost/mw-session-from-token@0.1.7
 - @tryghost/pretty-cli@1.2.9
 - @tryghost/release-utils@0.6.5
 - @tryghost/session-service@0.1.8
 - @tryghost/vhost-middleware@1.0.8
 - @tryghost/zip@1.1.3
2020-08-11 12:42:52 +01:00
Daniel Lockyer
592c3068fc Merged constants file and history from TryGhost/Ghost
- extracted from `core/server/lib` of TryGhost/Ghost
2020-08-11 12:41:01 +01:00
Daniel Lockyer
f1c26f7ebe Created @tryghost/constants package 2020-08-11 12:24:16 +01:00
Renovate Bot
9e11010f6a Update dependency sinon to v9.0.3 2020-08-11 08:02:08 +00:00
Daniel Lockyer
26452f0d3a Published new versions
- @tryghost/adapter-manager@0.1.9
 - @tryghost/errors@0.2.2
 - @tryghost/image-transform@1.0.2
 - @tryghost/session-service@0.1.7
 - @tryghost/vhost-middleware@1.0.7
2020-08-10 17:10:00 +01:00
Renovate Bot
33e070a152 Update dependency ghost-ignition to v4.2.2 2020-08-10 10:43:54 +00:00
Hannah Wolfe
71e1c309d9 Published new versions
- @tryghost/bootstrap-socket@0.2.0
2020-08-09 17:18:30 +01:00
Hannah Wolfe
a01d44fa6a Refactored bootstrap-socket API for testability
- this makes it much easier to stub this behaviour in tests
- also makes more sense
2020-08-09 17:15:46 +01:00
Hannah Wolfe
ab291cb922 Published new versions
- @tryghost/bootstrap-socket@0.1.0
2020-08-07 17:02:41 +01:00