Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4581 from withspectrum/2.6.2
Browse files Browse the repository at this point in the history
2.6.2
  • Loading branch information
brianlovin authored Jan 25, 2019
2 parents 9342550 + de0c832 commit 4ba3dff
Show file tree
Hide file tree
Showing 19 changed files with 852 additions and 93 deletions.
13 changes: 8 additions & 5 deletions api/mutations/thread/publishThread.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @flow
const debug = require('debug')('api:mutations:thread:publish-thread');
import stringSimilarity from 'string-similarity';
import { convertToRaw } from 'draft-js';
import { stateFromMarkdown } from 'draft-js-import-markdown';
import type { GraphQLContext } from '../../';
import UserError from '../../utils/UserError';
Expand Down Expand Up @@ -71,11 +72,13 @@ export default requireAuth(
type = 'DRAFTJS';
if (thread.content.body) {
thread.content.body = JSON.stringify(
stateFromMarkdown(thread.content.body, {
parserOptions: {
breaks: true,
},
})
convertToRaw(
stateFromMarkdown(thread.content.body, {
parserOptions: {
breaks: true,
},
})
)
);
}
}
Expand Down
10 changes: 5 additions & 5 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"babel-preset-env": "^1.7.0",
"backpack-core": "^0.8.3",
"body-parser": "^1.18.3",
"bull": "^3.5.2",
"bull": "^3.6.0",
"casual": "^1.5.12",
"compression": "^1.7.3",
"cookie-parser": "^1.4.3",
Expand Down Expand Up @@ -54,8 +54,8 @@
"graphql-date": "^1.0.3",
"graphql-depth-limit": "^1.1.0",
"graphql-log": "^0.1.3",
"graphql-rate-limit": "^1.1.0",
"graphql-tools": "^4.0.3",
"graphql-rate-limit": "^1.2.2",
"graphql-tools": "^4.0.4",
"helmet": "^3.15.0",
"highlight.js": "^9.13.1",
"history": "^4.6.1",
Expand All @@ -65,7 +65,7 @@
"hpp": "^0.2.2",
"hsts": "^2.1.0",
"imgix-core-js": "^1.2.0",
"immutability-helper": "^2.9.0",
"immutability-helper": "^2.9.1",
"ioredis": "3.2.2",
"isomorphic-fetch": "^2.2.1",
"iterall": "^1.2.2",
Expand All @@ -78,7 +78,7 @@
"lodash": "^4.17.11",
"lodash.intersection": "^4.4.0",
"longjohn": "^0.2.12",
"moment": "^2.23.0",
"moment": "^2.24.0",
"ms": "^2.1.1",
"node-env-file": "^0.1.8",
"node-localstorage": "^1.3.1",
Expand Down
111 changes: 87 additions & 24 deletions api/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2238,7 +2238,7 @@ binary@~0.3.0:
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-2.11.0.tgz#534b9033c022c9579c56ba3b3e5a5caafbb650e1"
integrity sha1-U0uQM8AiyVecVro7Plpcqvu2UOE=

"bluebird@>= 3.0.1", bluebird@^3.3.4, bluebird@^3.5.1, bluebird@^3.5.3:
"bluebird@>= 3.0.1", bluebird@^3.3.4, bluebird@^3.5.1:
version "3.5.3"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.3.tgz#7d01c6f9616c9a51ab0f8c549a79dfe6ec33efa7"
integrity sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw==
Expand Down Expand Up @@ -2477,17 +2477,19 @@ builtin-status-codes@^3.0.0:
resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"
integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=

bull@^3.5.2:
version "3.5.2"
resolved "https://registry.yarnpkg.com/bull/-/bull-3.5.2.tgz#9c85f205b17686efab2ee28aaa4388887360de32"
integrity sha512-tuL4Uj0kUeaQ7Cow3POkca20fk+VSsR8AiTFeNkyMmuicBnE1ZMwvF1NRDY7vIH43pD9PiMCSEP4Li/934Pw1w==
bull@^3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/bull/-/bull-3.6.0.tgz#9d137a4470d9f5a0df54801ca4390656e5054a42"
integrity sha512-705Vf3weiRr8D49/+lsPSxV/1NejhjfmVviv9qG2srIYPr7IS2euLwHa+2GNfaVDA2tmx8xyJFW9bPw3fPfHPg==
dependencies:
bluebird "^3.5.3"
cron-parser "^2.5.0"
cron-parser "^2.7.3"
debuglog "^1.0.0"
ioredis "^3.1.4"
ioredis "^4.5.1"
lodash "^4.17.11"
p-timeout "^2.0.1"
promise.prototype.finally "^3.1.0"
semver "^5.6.0"
util.promisify "^1.0.0"
uuid "^3.2.1"

busboy@^0.2.14:
Expand Down Expand Up @@ -3018,7 +3020,7 @@ create-react-class@^15.6.0:
loose-envify "^1.3.1"
object-assign "^4.1.1"

cron-parser@^2.5.0:
cron-parser@^2.7.3:
version "2.7.3"
resolved "https://registry.yarnpkg.com/cron-parser/-/cron-parser-2.7.3.tgz#12603f89f5375af353a9357be2543d3172eac651"
integrity sha512-t9Kc7HWBWPndBzvbdQ1YG9rpPRB37Tb/tTviziUOh1qs3TARGh3b1p+tnkOHNe1K5iI3oheBPgLqwotMM7+lpg==
Expand Down Expand Up @@ -3767,7 +3769,19 @@ es-abstract@^1.5.1:
is-callable "^1.1.3"
is-regex "^1.0.4"

es-to-primitive@^1.1.1:
es-abstract@^1.9.0:
version "1.13.0"
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.13.0.tgz#ac86145fdd5099d8dd49558ccba2eaf9b88e24e9"
integrity sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==
dependencies:
es-to-primitive "^1.2.0"
function-bind "^1.1.1"
has "^1.0.3"
is-callable "^1.1.4"
is-regex "^1.0.4"
object-keys "^1.0.12"

es-to-primitive@^1.1.1, es-to-primitive@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377"
integrity sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==
Expand Down Expand Up @@ -4589,13 +4603,14 @@ graphql-log@^0.1.3:
deep-for-each "^1.0.6"
is-function "^1.0.1"

graphql-rate-limit@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/graphql-rate-limit/-/graphql-rate-limit-1.1.0.tgz#209462f8f978e820a4c8e5b61622277e246388a5"
integrity sha512-xBEmAu2pE3coAqEhG5WbGnn9FxP9T40SpSpuej96hfgdy+ZhZytxLQphl5pN1mERjGR2L+nzPkZ/l4EaE787OA==
graphql-rate-limit@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/graphql-rate-limit/-/graphql-rate-limit-1.2.2.tgz#4c97e7bcb5b8c8ca1ee67aaf194d22b88bba6f53"
integrity sha512-Osns7iZkKLAANZokorAKKIehQ3Wm03nXts2aBBy15r/QhKTNPxVwc71sXTn3IPJ7SzAfoARvPN1Jm3bmblHtiQ==
dependencies:
"@types/redis-mock" "^0.17.0"
graphql-tools "^4.0.3"
lodash.get "^4.4.2"
ms "^2.1.1"

graphql-subscriptions@^1.0.0:
Expand All @@ -4621,6 +4636,17 @@ graphql-tools@^4.0.0, graphql-tools@^4.0.3:
iterall "^1.1.3"
uuid "^3.1.0"

graphql-tools@^4.0.4:
version "4.0.4"
resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-4.0.4.tgz#ca08a63454221fdde825fe45fbd315eb2a6d566b"
integrity sha512-chF12etTIGVVGy3fCTJ1ivJX2KB7OSG4c6UOJQuqOHCmBQwTyNgCDuejZKvpYxNZiEx7bwIjrodDgDe9RIkjlw==
dependencies:
apollo-link "^1.2.3"
apollo-utilities "^1.0.1"
deprecated-decorator "^0.1.6"
iterall "^1.1.3"
uuid "^3.1.0"

graphql-upload@^8.0.2:
version "8.0.2"
resolved "https://registry.yarnpkg.com/graphql-upload/-/graphql-upload-8.0.2.tgz#1c1f116f15b7f8485cf40ff593a21368f0f58856"
Expand Down Expand Up @@ -4737,7 +4763,7 @@ has-values@^1.0.0:
is-number "^3.0.0"
kind-of "^4.0.0"

has@^1.0.1:
has@^1.0.1, has@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
Expand Down Expand Up @@ -5008,10 +5034,10 @@ imgix-core-js@^1.2.0:
js-base64 "^2.1.9"
md5 "^2.2.1"

immutability-helper@^2.9.0:
version "2.9.0"
resolved "https://registry.yarnpkg.com/immutability-helper/-/immutability-helper-2.9.0.tgz#04a1c646300cd3a68aa5dc1daa7758da2ca75292"
integrity sha512-2LYtDuGugMLyoFV0qGvblnq39E2VVQ9m4dDktlRLVBBVV1LnUMK0rlqkbtlUjfT1UJO876OobtPlNZTEbOOYVQ==
immutability-helper@^2.9.1:
version "2.9.1"
resolved "https://registry.yarnpkg.com/immutability-helper/-/immutability-helper-2.9.1.tgz#71c423ba387e67b6c6ceba0650572f2a2a6727df"
integrity sha512-r/RmRG8xO06s/k+PIaif2r5rGc3j4Yhc01jSBfwPCXDLYZwp/yxralI37Df1mwmuzcCsen/E/ITKcTEvc1PQmQ==
dependencies:
invariant "^2.2.0"

Expand Down Expand Up @@ -5082,7 +5108,7 @@ invert-kv@^1.0.0:
resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
integrity sha1-EEqOSqym09jNFXqO+L+rLXo//bY=

[email protected], ioredis@^3.1.4:
[email protected]:
version "3.2.2"
resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-3.2.2.tgz#b7d5ff3afd77bb9718bb2821329b894b9a44c00b"
integrity sha512-g+ShTQYLsCcOUkNOK6CCEZbj3aRDVPw3WOwXk+LxlUKvuS9ujEqP2MppBHyRVYrNNFW/vcPaTBUZ2ctGNSiOCA==
Expand Down Expand Up @@ -5127,6 +5153,22 @@ ioredis@^4.0.0:
redis-parser "^3.0.0"
standard-as-callback "^1.0.0"

ioredis@^4.5.1:
version "4.5.1"
resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-4.5.1.tgz#b1c1c1657697caa3a617acb9370e3c0694edb775"
integrity sha512-p1BblrFZdb5Oc5EBsEb4EoycDqn7xi/NTNT4bDvo/w6B08eMNO1E7RAOOEA1GAb65+8Hbs2LgUyz3cZOTiP3xg==
dependencies:
cluster-key-slot "^1.0.6"
debug "^3.1.0"
denque "^1.1.0"
flexbuffer "0.0.6"
lodash.defaults "^4.2.0"
lodash.flatten "^4.4.0"
redis-commands "1.4.0"
redis-errors "^1.2.0"
redis-parser "^3.0.0"
standard-as-callback "^1.0.0"

[email protected]:
version "1.8.0"
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.8.0.tgz#eaa33d6ddd7ace8f7f6fe0c9ca0440e706738b1e"
Expand Down Expand Up @@ -6225,6 +6267,11 @@ lodash.foreach@^4.5.0:
resolved "https://registry.yarnpkg.com/lodash.foreach/-/lodash.foreach-4.5.0.tgz#1a6a35eace401280c7f06dddec35165ab27e3e53"
integrity sha1-Gmo16s5AEoDH8G3d7DUWWrJ+PlM=

lodash.get@^4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=

lodash.includes@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f"
Expand Down Expand Up @@ -6667,10 +6714,10 @@ moment-timezone@^0.5.23:
resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.2.tgz#3c257f9839fc0e93ff53149632239eb90783ff66"
integrity sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=

moment@^2.23.0:
version "2.23.0"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.23.0.tgz#759ea491ac97d54bac5ad776996e2a58cc1bc225"
integrity sha512-3IE39bHVqFbWWaPOMHZF98Q9c3LDKGTmypMiTM2QygGXXElkFWIH7GxfmlwmY2vwa+wmNsoYZmG2iusf1ZjJoA==
moment@^2.24.0:
version "2.24.0"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"
integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==

move-concurrently@^1.0.1:
version "1.0.1"
Expand Down Expand Up @@ -7156,6 +7203,13 @@ p-timeout@^1.1.1:
dependencies:
p-finally "^1.0.0"

p-timeout@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-2.0.1.tgz#d8dd1979595d2dc0139e1fe46b8b646cb3cdf038"
integrity sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==
dependencies:
p-finally "^1.0.0"

p-try@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"
Expand Down Expand Up @@ -7510,6 +7564,15 @@ promise-inflight@^1.0.1:
resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3"
integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM=

promise.prototype.finally@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/promise.prototype.finally/-/promise.prototype.finally-3.1.0.tgz#66f161b1643636e50e7cf201dc1b84a857f3864e"
integrity sha512-7p/K2f6dI+dM8yjRQEGrTQs5hTQixUAdOGpMEA3+pVxpX5oHKRSKAXyLw9Q9HUWDTdwtoo39dSHGQtN90HcEwQ==
dependencies:
define-properties "^1.1.2"
es-abstract "^1.9.0"
function-bind "^1.1.1"

promise@^6.0.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/promise/-/promise-6.1.0.tgz#2ce729f6b94b45c26891ad0602c5c90e04c6eef6"
Expand Down
2 changes: 1 addition & 1 deletion chronos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"dependencies": {
"aws-sdk": "^2.383.0",
"bull": "^3.5.2",
"bull": "^3.6.0",
"datadog-metrics": "^0.8.1",
"debug": "^4.1.1",
"decode-uri-component": "^0.2.0",
Expand Down
Loading

0 comments on commit 4ba3dff

Please sign in to comment.