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

Commit 5fadf98

Browse files
authored
Merge pull request #3758 from withspectrum/alpha
Prod cut
2 parents dbb05da + 24e4e7d commit 5fadf98

File tree

10 files changed

+54
-42
lines changed

10 files changed

+54
-42
lines changed

analytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"raven": "^2.6.3",
1313
"rethinkdbdash": "^2.3.29",
1414
"sha1": "^1.1.1",
15-
"source-map-support": "^0.5.6",
15+
"source-map-support": "^0.5.8",
1616
"toobusy-js": "^0.5.1"
1717
}
1818
}

analytics/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@ sha1@^1.1.1:
353353
charenc ">= 0.0.1"
354354
crypt ">= 0.0.1"
355355

356-
source-map-support@^0.5.6:
357-
version "0.5.6"
358-
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.6.tgz#4435cee46b1aab62b8e8610ce60f788091c51c13"
356+
source-map-support@^0.5.8:
357+
version "0.5.8"
358+
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.8.tgz#04f5581713a8a65612d0175fbf3a01f80a162613"
359359
dependencies:
360360
buffer-from "^1.0.0"
361361
source-map "^0.6.0"

hyperion/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ app.get('/static/js/:name', (req: express$Request, res, next) => {
145145
return res.sendFile(
146146
path.resolve(__dirname, '..', 'build', 'static', 'js', req.params.name)
147147
);
148-
const match = req.params.name.match(/(\w+?)\.(\w+?\.)?js/i);
148+
// Match the first part of the file name, i.e. from "UserSettings.asdf123.chunk.js" match "UserSettings"
149+
const match = req.params.name.match(/(\w+?)\..+js/i);
149150
if (!match) return next();
150151
const actualFilename = jsFiles.find(file => file.startsWith(match[1]));
151152
if (!actualFilename) return next();

mobile/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"private": true,
44
"dependencies": {
55
"@expo/react-native-action-sheet": "^1.0.2",
6-
"apollo-cache-inmemory": "^1.2.6",
7-
"apollo-client": "^2.3.7",
6+
"apollo-cache-inmemory": "^1.2.7",
7+
"apollo-client": "^2.3.8",
88
"apollo-link": "^1.2.2",
99
"apollo-link-error": "^1.1.0",
1010
"apollo-link-http": "^1.5.4",

mobile/yarn.lock

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -875,29 +875,29 @@ anymatch@^1.3.0:
875875
micromatch "^2.1.5"
876876
normalize-path "^2.0.0"
877877

878-
apollo-cache-inmemory@^1.2.6:
879-
version "1.2.6"
880-
resolved "https://registry.yarnpkg.com/apollo-cache-inmemory/-/apollo-cache-inmemory-1.2.6.tgz#85e2a52d63ea275117596c93a46a4e3b42b89b13"
878+
apollo-cache-inmemory@^1.2.7:
879+
version "1.2.7"
880+
resolved "https://registry.yarnpkg.com/apollo-cache-inmemory/-/apollo-cache-inmemory-1.2.7.tgz#80517c4b5e910022ab8d318f47d9364f99db8541"
881881
dependencies:
882-
apollo-cache "^1.1.13"
883-
apollo-utilities "^1.0.17"
884-
graphql-anywhere "^4.1.15"
882+
apollo-cache "^1.1.14"
883+
apollo-utilities "^1.0.18"
884+
graphql-anywhere "^4.1.16"
885885

886-
apollo-cache@^1.1.13:
887-
version "1.1.13"
888-
resolved "https://registry.yarnpkg.com/apollo-cache/-/apollo-cache-1.1.13.tgz#75c28091825992b2eec9fb63c9a367db3b4714a8"
886+
apollo-cache@^1.1.14:
887+
version "1.1.14"
888+
resolved "https://registry.yarnpkg.com/apollo-cache/-/apollo-cache-1.1.14.tgz#c7d54cdbc7f544161f78fa5e4bae56650e22f7ad"
889889
dependencies:
890-
apollo-utilities "^1.0.17"
890+
apollo-utilities "^1.0.18"
891891

892-
apollo-client@^2.3.7:
893-
version "2.3.7"
894-
resolved "https://registry.yarnpkg.com/apollo-client/-/apollo-client-2.3.7.tgz#891cd2392851f861a62fe334fa76fc629ed19fd3"
892+
apollo-client@^2.3.8:
893+
version "2.3.8"
894+
resolved "https://registry.yarnpkg.com/apollo-client/-/apollo-client-2.3.8.tgz#0384a7210eb601ab88b1c13750da076fc9255b95"
895895
dependencies:
896896
"@types/zen-observable" "^0.8.0"
897-
apollo-cache "^1.1.13"
897+
apollo-cache "^1.1.14"
898898
apollo-link "^1.0.0"
899899
apollo-link-dedup "^1.0.0"
900-
apollo-utilities "^1.0.17"
900+
apollo-utilities "^1.0.18"
901901
symbol-observable "^1.0.2"
902902
zen-observable "^0.8.0"
903903
optionalDependencies:
@@ -947,9 +947,9 @@ apollo-utilities@^1.0.0:
947947
version "1.0.11"
948948
resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-1.0.11.tgz#cd36bfa6e5c04eea2caf0c204a0f38a0ad550802"
949949

950-
apollo-utilities@^1.0.17:
951-
version "1.0.17"
952-
resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-1.0.17.tgz#04cd22db5c5dba8dbd349e28b0d9f9f525ab8e8a"
950+
apollo-utilities@^1.0.18:
951+
version "1.0.18"
952+
resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-1.0.18.tgz#e4ee91534283fde2b744a26caaea120fe6a94f67"
953953
dependencies:
954954
fast-json-stable-stringify "^2.0.0"
955955

@@ -3555,11 +3555,11 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.6,
35553555
version "4.1.11"
35563556
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
35573557

3558-
graphql-anywhere@^4.1.15:
3559-
version "4.1.15"
3560-
resolved "https://registry.yarnpkg.com/graphql-anywhere/-/graphql-anywhere-4.1.15.tgz#09ac33970e85930aa8682fc3276b76df2637e042"
3558+
graphql-anywhere@^4.1.16:
3559+
version "4.1.16"
3560+
resolved "https://registry.yarnpkg.com/graphql-anywhere/-/graphql-anywhere-4.1.16.tgz#82bb59643e30183cfb7b485ed4262a7b39d8a6c1"
35613561
dependencies:
3562-
apollo-utilities "^1.0.17"
3562+
apollo-utilities "^1.0.18"
35633563

35643564
graphql-tag@^2.9.2:
35653565
version "2.9.2"
@@ -6118,8 +6118,8 @@ rc@^1.1.7:
61186118
strip-json-comments "~2.0.1"
61196119

61206120
6121-
version "2.1.9"
6122-
resolved "https://registry.yarnpkg.com/react-apollo/-/react-apollo-2.1.9.tgz#1fd30ea2116375197bd53daa725e6fb8ab43ab80"
6121+
version "2.1.11"
6122+
resolved "https://registry.yarnpkg.com/react-apollo/-/react-apollo-2.1.11.tgz#ef4805f07af1d732ec94caebf7ba0728e2d162ca"
61236123
dependencies:
61246124
fbjs "^0.8.16"
61256125
hoist-non-react-statics "^2.5.0"

now.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
{
2-
"regions": ["sfo1"],
2+
"scale": {
3+
"bru1": {
4+
"min": 0,
5+
"max": 0
6+
},
7+
"sfo1": {
8+
"min": 1,
9+
"max": "auto"
10+
}
11+
},
312
"env": {
413
"S3_TOKEN": "@s3-token",
514
"S3_SECRET": "@s3-secret",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Spectrum",
3-
"version": "2.4.22",
3+
"version": "2.4.24",
44
"license": "BSD-3-Clause",
55
"devDependencies": {
66
"babel-cli": "^6.24.1",

pluto/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"rethinkdb-changefeed-reconnect": "^0.3.2",
1717
"rethinkdbdash": "^2.3.31",
1818
"shortid": "^2.2.12",
19-
"source-map-support": "^0.5.6",
19+
"source-map-support": "^0.5.8",
2020
"stripe": "^5.10.0",
2121
"toobusy-js": "^0.5.1"
2222
},

pluto/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,9 @@ shortid@^2.2.12:
657657
dependencies:
658658
nanoid "^1.0.7"
659659

660-
source-map-support@^0.5.6:
661-
version "0.5.6"
662-
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.6.tgz#4435cee46b1aab62b8e8610ce60f788091c51c13"
660+
source-map-support@^0.5.8:
661+
version "0.5.8"
662+
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.8.tgz#04f5581713a8a65612d0175fbf3a01f80a162613"
663663
dependencies:
664664
buffer-from "^1.0.0"
665665
source-map "^0.6.0"

src/components/message/view.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ export const Body = (props: BodyProps) => {
3030
const emojiOnly =
3131
message.messageType === 'draftjs' &&
3232
draftOnlyContainsEmoji(JSON.parse(message.content.body));
33-
if (emojiOnly)
34-
return (
35-
<Emoji>{toPlainText(toState(JSON.parse(message.content.body)))}</Emoji>
36-
);
3733
const WrapperComponent = bubble ? Text : QuotedParagraph;
3834
switch (message.messageType) {
3935
case 'text':
@@ -55,7 +51,13 @@ export const Body = (props: BodyProps) => {
5551
// $FlowIssue
5652
<QuotedMessage message={message.parent} />
5753
)}
58-
{redraft(JSON.parse(message.content.body), messageRenderer)}
54+
{emojiOnly ? (
55+
<Emoji>
56+
{toPlainText(toState(JSON.parse(message.content.body)))}
57+
</Emoji>
58+
) : (
59+
redraft(JSON.parse(message.content.body), messageRenderer)
60+
)}
5961
</WrapperComponent>
6062
);
6163
}

0 commit comments

Comments
 (0)