forked from TeamCodeStream/codestream-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ThirdPartyNotices.txt
4863 lines (3003 loc) · 752 KB
/
ThirdPartyNotices.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
codestream
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
This project incorporates components from the projects listed below. The original copyright notices and the licenses under which CodeStream received such components are set forth below. CodeStream reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-code-frame
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-generator
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-helper-annotate-as-pure
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-helper-function-name
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-helper-get-function-arity
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-helper-module-imports
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-helper-split-export-declaration
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-highlight
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-parser
@babel/[email protected] (MIT) https://github.com/babel/babel
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-runtime
@babel/[email protected] (MIT) https://github.com/babel/babel
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-template
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-traverse
@babel/[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-types
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/cache
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/core
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/css
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/hash
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/is-prop-valid
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/memoize
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/serialize
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/sheet
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/stylis
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/unitless
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/serialize
@emotion/[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/weak-memoize
@formatjs/[email protected] (MIT) https://github.com/formatjs/formatjs
@formatjs/[email protected] (MIT) https://github.com/formatjs/formatjs
@formatjs/[email protected] (MIT) https://github.com/formatjs/formatjs
@formatjs/[email protected] (MIT) https://github.com/formatjs/formatjs
@formatjs/[email protected] (MIT) https://github.com/formatjs/formatjs
@formatjs/[email protected] (MIT) https://github.com/formatjs/formatjs
@formatjs/[email protected] (MIT) https://github.com/formatjs/formatjs
@formatjs/[email protected] (MIT) https://github.com/formatjs/formatjs
@microsoft/[email protected] (MIT*) https://github.com/microsoftgraph/msgraph-sdk-javascript
@peculiar/[email protected] (MIT)
@peculiar/[email protected] (MIT) https://github.com/PeculiarVentures/json-schema
@peculiar/[email protected] (MIT) https://github.com/PeculiarVentures/webcrypto
@primer/[email protected] (MIT) https://github.com/primer/octicons
@segment/[email protected] (MIT*)
@sentry/[email protected] (BSD-3-Clause) https://github.com/getsentry/sentry-javascript
@sentry/[email protected] (BSD-3-Clause) https://github.com/getsentry/sentry-javascript
@sentry/[email protected] (BSD-3-Clause) https://github.com/getsentry/sentry-javascript
@sentry/[email protected] (BSD-3-Clause) https://github.com/getsentry/sentry-javascript
@sentry/[email protected] (BSD-3-Clause) https://github.com/getsentry/sentry-javascript
@sentry/[email protected] (BSD-3-Clause) https://github.com/getsentry/sentry-javascript
@slack/[email protected] (MIT) https://github.com/slackapi/node-slack-sdk
@slack/[email protected] (MIT) https://github.com/slackapi/node-slack-sdk
@slack/[email protected] (MIT) https://github.com/slackapi/node-slack-sdk
@tootallnate/[email protected] (MIT) https://github.com/TooTallNate/once
@types/[email protected] (MIT) https://github.com/DefinitelyTyped/DefinitelyTyped
@types/[email protected] (MIT) https://github.com/DefinitelyTyped/DefinitelyTyped
@types/[email protected] (MIT) https://github.com/DefinitelyTyped/DefinitelyTyped
@types/[email protected] (MIT) https://github.com/DefinitelyTyped/DefinitelyTyped
@types/[email protected] (MIT) https://github.com/DefinitelyTyped/DefinitelyTyped
@types/[email protected] (MIT) https://github.com/DefinitelyTyped/DefinitelyTyped
@types/[email protected] (MIT) https://github.com/DefinitelyTyped/DefinitelyTyped
@types/[email protected] (MIT) https://github.com/DefinitelyTyped/DefinitelyTyped
@types/[email protected] (MIT) https://github.com/DefinitelyTyped/DefinitelyTyped
@types/[email protected] (MIT) https://github.com/DefinitelyTyped/DefinitelyTyped
@types/[email protected] (MIT) https://github.com/DefinitelyTyped/DefinitelyTyped
@unimodules/[email protected] (MIT) https://github.com/expo/expo
@unimodules/[email protected] (MIT) https://github.com/expo/expo
[email protected] (MIT) https://github.com/mysticatea/abort-controller
[email protected] (MIT) https://github.com/yiminghe/add-dom-event-listener
[email protected] (MIT) https://github.com/SocketCluster/ag-channel
[email protected] (MIT) https://github.com/SocketCluster/ag-request
[email protected] (MIT) https://github.com/TooTallNate/node-agent-base
[email protected] (MIT) https://github.com/TooTallNate/node-agent-base
[email protected] (MIT) https://github.com/node-modules/agentkeepalive
[email protected] (MIT) https://github.com/segmentio/analytics-node
[email protected] (MIT) https://github.com/chalk/ansi-styles
[email protected] (ISC) https://github.com/micromatch/anymatch
[email protected] (MIT) https://github.com/nodeca/argparse
[email protected] (MIT) https://github.com/vibornoff/asmcrypto.js
[email protected] (BSD-3-Clause) https://github.com/PeculiarVentures/asn1.js
[email protected] (MIT) https://github.com/benjamn/ast-types
[email protected] (MIT) https://github.com/SocketCluster/async-stream-emitter
[email protected] (MIT) https://github.com/caolan/async
[email protected] (MIT) https://github.com/alexindigo/asynckit
[email protected] (MIT) https://github.com/atom/atom-languageclient
[email protected] (MIT) https://github.com/steelbrain/package-deps
[email protected] (Apache-2.0) https://github.com/softonic/axios-retry
[email protected] (MIT) https://github.com/axios/axios
[email protected] (MIT) https://github.com/axios/axios
[email protected] (MIT) https://github.com/kevlened/b64-lite
[email protected] (MIT) https://github.com/kevlened/b64u-lite
[email protected] (MIT) https://github.com/emotion-js/emotion/tree/master/packages/babel-plugin-emotion
[email protected] (MIT) https://github.com/kentcdodds/babel-plugin-macros
[email protected] (MIT) https://github.com/styled-components/babel-plugin-styled-components
[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-jsx
[email protected] (MIT) https://github.com/babel/babel/tree/master/packages/babel-runtime
[email protected] (MIT) https://github.com/juliangruber/balanced-match
[email protected] (MIT) https://github.com/mathiasbynens/base64
[email protected] (MIT) https://github.com/beatgammit/base64-js
[email protected] (MIT) https://github.com/sindresorhus/binary-extensions
[email protected] (MIT) https://github.com/juliangruber/brace-expansion
[email protected] (MIT) https://github.com/micromatch/braces
[email protected] (MIT) https://github.com/feross/buffer
[email protected] (MIT) https://github.com/feross/buffer
[email protected] (MIT) https://github.com/visionmedia/bytes.js
[email protected] (MIT) https://github.com/ljharb/call-bind
[email protected] (MIT) https://github.com/sindresorhus/caller-callsite
[email protected] (MIT) https://github.com/sindresorhus/caller-path
[email protected] (MIT) https://github.com/sindresorhus/callsites
[email protected] (MIT) https://github.com/substack/camelize
[email protected] (MIT) https://github.com/paroga/cbor-js
[email protected] (MIT) https://github.com/ARMmbed/cbor-sync
[email protected] (MIT) https://github.com/chalk/chalk
[email protected] (BSD-3-Clause) https://github.com/pvorb/node-charenc
[email protected] (MIT) https://github.com/paulmillr/chokidar
[email protected] (MIT) https://github.com/JedWatson/classnames
[email protected] (MIT) https://github.com/jonschlinkert/clone-deep
[email protected] (Apache-2.0) https://github.com/google/code-prettify
[email protected] (MIT) https://github.com/Qix-/color-convert
[email protected] (MIT) https://github.com/dfcreative/color-name
[email protected] (MIT) https://github.com/felixge/node-combined-stream
[email protected] (MIT) https://github.com/tj/commander.js
[email protected] (MIT) https://github.com/omichelsen/compare-versions
[email protected] (MIT) https://github.com/component/classes
[email protected] (MIT) https://github.com/component/emitter
[email protected] (MIT*) https://github.com/component/indexof
[email protected] (MIT) https://github.com/component/type
[email protected] (MIT) https://github.com/substack/node-concat-map
[email protected] (MIT) https://github.com/SocketCluster/consumable-stream
[email protected] (MIT) https://github.com/thlorenz/convert-source-map
[email protected] (MIT) https://github.com/jshttp/cookie
[email protected] (MIT) https://github.com/bmeck/node-cookiejar
[email protected] (MIT) https://github.com/sudodoki/copy-to-clipboard
[email protected] (MIT) https://github.com/zloirock/core-js
[email protected] (MIT) https://github.com/zloirock/core-js
[email protected] (MIT) https://github.com/isaacs/core-util-is
[email protected] (MIT) https://github.com/davidtheclark/cosmiconfig
[email protected] (MIT) https://github.com/lquixada/cross-fetch
[email protected] (BSD-3-Clause) https://github.com/pvorb/node-crypt
[email protected] (MIT) https://github.com/yiminghe/css-animation
[email protected] (ISC) https://github.com/sonicdoe/css-color-keywords
[email protected] (MIT) https://github.com/styled-components/css-to-react-native
[email protected] (MIT) https://github.com/frenic/csstype
[email protected] (MIT) https://github.com/TooTallNate/node-data-uri-to-buffer
[email protected] (MIT) https://github.com/date-fns/date-fns
[email protected] (MIT) https://github.com/visionmedia/debug
[email protected] (MIT) https://github.com/visionmedia/debug
[email protected] (MIT) https://github.com/visionmedia/debug
[email protected] (MIT) https://github.com/visionmedia/debug
[email protected] (MIT) https://github.com/thlorenz/deep-is
[email protected] (MIT) https://github.com/TooTallNate/node-degenerator
[email protected] (MIT) https://github.com/felixge/node-delayed-stream
[email protected] (MIT) https://github.com/dougwilson/nodejs-depd
[email protected] (Apache-2.0) https://github.com/JackuB/diff-match-patch
[email protected] (BSD-3-Clause) https://github.com/kpdecker/jsdiff
[email protected] (MIT) https://github.com/yiminghe/dom-align
[email protected] (MIT) https://github.com/jquense/dom-helpers
[email protected] (BSD-3-Clause) https://github.com/missive/emoji-mart
[email protected] (MIT) https://github.com/kikobeats/emojis-list
[email protected] (BSD-2-Clause) https://github.com/fb55/entities
[email protected] (MIT) https://github.com/ryanve/eol
[email protected] (MIT) https://github.com/qix-/node-error-ex
[email protected] (MIT) https://github.com/stefanpenner/es6-promise
[email protected] (MIT) https://github.com/digitaldesignlabs/es6-promisify
[email protected] (MIT) https://github.com/sindresorhus/escape-string-regexp
[email protected] (BSD-2-Clause) https://github.com/estools/escodegen
[email protected] (BSD-2-Clause) https://github.com/jquery/esprima
[email protected] (BSD-2-Clause) https://github.com/estools/estraverse
[email protected] (BSD) https://github.com/estools/esutils
[email protected] (BSD-2-Clause) https://github.com/estools/esutils
[email protected] (MIT) https://github.com/mysticatea/event-target-shim
[email protected] (MIT) https://github.com/primus/eventemitter3
[email protected] (MIT) https://github.com/primus/eventemitter3
[email protected] (MIT) https://github.com/expo/expo
[email protected] (MIT) https://github.com/justmoon/node-extend
[email protected] (MIT) https://github.com/hiddentao/fast-levenshtein
[email protected] (MIT) https://github.com/TooTallNate/file-uri-to-path
[email protected] (MIT) https://github.com/jonschlinkert/fill-range
[email protected] (MIT) https://github.com/js-n/find-root
[email protected] (MIT) https://github.com/follow-redirects/follow-redirects
[email protected] (MIT) https://github.com/follow-redirects/follow-redirects
[email protected] (MIT) https://github.com/form-data/form-data
[email protected] (MIT) https://github.com/form-data/form-data
[email protected] (MIT) https://github.com/node-formidable/formidable
[email protected] (MIT) https://github.com/jprichardson/node-fs-extra
[email protected] (MIT) https://github.com/atom/fs-plus
[email protected] (ISC) https://github.com/isaacs/fs.realpath
[email protected] (MIT) https://github.com/mscdex/node-ftp
[email protected] (MIT) https://github.com/Raynos/function-bind
[email protected] (MIT) https://github.com/jeancroy/fuzzaldrin-plus
[email protected] (MIT) https://github.com/ljharb/get-intrinsic
[email protected] (MIT) https://github.com/TooTallNate/node-get-uri
[email protected] (ISC) https://github.com/gulpjs/glob-parent
[email protected] (ISC) https://github.com/isaacs/node-glob
[email protected] (MIT) https://github.com/sindresorhus/globals
[email protected] (ISC) https://github.com/isaacs/node-graceful-fs
[email protected] (MIT) https://github.com/graphcool/graphql-request
[email protected] (MIT) https://github.com/sindresorhus/has-flag
[email protected] (MIT) https://github.com/inspect-js/has-symbols
[email protected] (MIT) https://github.com/tarruda/has
[email protected] (BSD-3-Clause) https://github.com/mridgway/hoist-non-react-statics
[email protected] (MIT) https://github.com/jshttp/http-errors
[email protected] (MIT) https://github.com/TooTallNate/node-http-proxy-agent
[email protected] (MIT) https://github.com/TooTallNate/node-https-proxy-agent
[email protected] (MIT) https://github.com/TooTallNate/node-https-proxy-agent
[email protected] (MIT) https://github.com/node-modules/humanize-ms
[email protected] (MIT) https://github.com/ashtuchkin/iconv-lite
[email protected] (BSD-3-Clause) https://github.com/feross/ieee754
[email protected] (MIT) https://github.com/kaelzhang/node-ignore
[email protected] (MIT) https://github.com/sindresorhus/import-fresh
[email protected] (MIT) https://github.com/jensyt/imurmurhash-js
[email protected] (ISC) https://github.com/npm/inflight
[email protected] (ISC) https://github.com/isaacs/inherits
[email protected] (BSD-3-Clause) https://github.com/formatjs/formatjs
[email protected] (BSD-3-Clause) https://github.com/formatjs/formatjs
[email protected] (BSD-3-Clause) https://github.com/formatjs/formatjs
[email protected] (BSD-3-Clause) https://github.com/formatjs/formatjs
[email protected] (MIT) https://github.com/zertosh/invariant
[email protected] (MIT) https://github.com/indutny/node-ip
[email protected] (MIT) https://github.com/qix-/node-is-arrayish
[email protected] (MIT) https://github.com/sindresorhus/is-binary-path
[email protected] (MIT) https://github.com/feross/is-buffer
[email protected] (MIT) https://github.com/jonschlinkert/is-directory
[email protected] (MIT) https://github.com/jonschlinkert/is-extglob
[email protected] (MIT) https://github.com/micromatch/is-glob
[email protected] (MIT) https://github.com/jonschlinkert/is-number
[email protected] (MIT) https://github.com/jonschlinkert/is-plain-object
[email protected] (MIT) https://github.com/KyleAMathews/isRetina
[email protected] (MIT) https://github.com/floatdrop/is-retry-allowed
[email protected] (MIT) https://github.com/sindresorhus/is-stream
[email protected] (MIT) https://github.com/hughsk/is-typedarray
[email protected] (MIT) https://github.com/wayfind/is-utf8
[email protected] (MIT) https://github.com/mesqueeb/is-what
[email protected] (MIT) https://github.com/sindresorhus/is-wsl
[email protected] (MIT) https://github.com/juliangruber/isarray
[email protected] (MIT) https://github.com/juliangruber/isarray
[email protected] (MIT) https://github.com/jonschlinkert/isobject
[email protected] (MIT) https://github.com/kevlened/isomorphic-webcrypto
[email protected] (MIT)
[email protected] (MIT) https://github.com/lydell/js-tokens
[email protected] (MIT) https://github.com/nodeca/js-yaml
[email protected] (MIT) https://github.com/mathiasbynens/jsesc
[email protected] (MIT) https://github.com/zkat/json-parse-better-errors
[email protected] (MIT) https://github.com/jprichardson/node-jsonfile
[email protected] (MIT) https://github.com/jonschlinkert/kind-of
[email protected] (MIT) https://github.com/gkz/levn
[email protected] (MIT) https://github.com/lil-js/uuid
[email protected] (MIT) https://github.com/wooorm/linked-list
[email protected] (MIT) https://github.com/markdown-it/linkify-it
[email protected] (MIT) https://github.com/lodash/lodash
[email protected] (MIT) https://github.com/lodash/lodash
[email protected] (MIT) https://github.com/lodash/lodash
[email protected] (MIT) https://github.com/lodash/lodash
[email protected] (MIT) https://github.com/lodash/lodash
[email protected] (MIT) https://github.com/zertosh/loose-envify
[email protected] (MIT) https://github.com/rsms/js-lru
[email protected] (ISC) https://github.com/isaacs/node-lru-cache
[email protected] (MIT) https://github.com/ivawzh/markdown-it-emoji-mart
[email protected] (MIT) https://github.com/markdown-it/markdown-it-emoji
[email protected] (MIT) https://github.com/invisible-tech/markdown-it-slack
[email protected] (MIT) https://github.com/markdown-it/markdown-it
[email protected] (BSD-3-Clause) https://github.com/pvorb/node-md5
[email protected] (MIT) https://github.com/markdown-it/mdurl
[email protected] (MIT) https://github.com/alexreardon/memoize-one
[email protected] (MIT) https://github.com/mesqueeb/merge-anything
[email protected] (MIT) https://github.com/jshttp/methods
[email protected] (MIT) https://github.com/jshttp/mime-db
[email protected] (MIT) https://github.com/jshttp/mime-types
[email protected] (MIT) https://github.com/broofa/node-mime
[email protected] (ISC) https://github.com/isaacs/minimatch
[email protected] (MIT) https://github.com/substack/minimist
[email protected] (MIT) https://github.com/substack/node-mkdirp
[email protected] (MIT) https://github.com/zeit/ms
[email protected] (MIT) https://github.com/zeit/ms
[email protected] (Apache-2.0) https://github.com/kevlened/msrCrypto
[email protected] (MIT) https://github.com/rs/node-netmask
[email protected] (MIT) https://github.com/bitinn/node-fetch
[email protected] (MIT) https://github.com/bitinn/node-fetch
[email protected] (MIT) https://github.com/jonschlinkert/normalize-path
[email protected] (MIT) https://github.com/ciaranj/node-oauth
[email protected] (MIT) https://github.com/sindresorhus/object-assign
[email protected] (MIT) https://github.com/inspect-js/object-inspect
[email protected] (MIT) https://github.com/miktam/sizeof
[email protected] (ISC) https://github.com/isaacs/once
[email protected] (MIT) https://github.com/sindresorhus/opn
[email protected] (MIT) https://github.com/gkz/optionator
[email protected] (MIT) https://github.com/sindresorhus/p-finally
[email protected] (MIT) https://github.com/sindresorhus/p-queue
[email protected] (MIT) https://github.com/sindresorhus/p-retry
[email protected] (MIT) https://github.com/sindresorhus/p-timeout
[email protected] (MIT) https://github.com/TooTallNate/node-pac-proxy-agent
[email protected] (MIT) https://github.com/TooTallNate/node-pac-resolver
[email protected] (MIT) https://github.com/sindresorhus/parse-json
[email protected] (MIT) https://github.com/browserify/path-browserify
[email protected] (MIT) https://github.com/sindresorhus/path-is-absolute
[email protected] (MIT) https://github.com/jbgutierrez/path-parse
[email protected] (MIT) https://github.com/braveg1rl/performance-now
[email protected] (MIT) https://github.com/micromatch/picomatch
[email protected] (MIT) https://github.com/micromatch/picomatch
[email protected] (MIT) https://github.com/styled-components/polished
[email protected] (MIT) https://github.com/TrySound/postcss-value-parser
[email protected] (MIT) https://github.com/gkz/prelude-ls
[email protected] (MIT) https://github.com/calvinmetcalf/process-nextick-args
[email protected] (MIT) https://github.com/facebook/prop-types
[email protected] (MIT) https://github.com/TooTallNate/node-proxy-agent
[email protected] (MIT) https://github.com/Rob--W/proxy-from-env
[email protected] (MIT) https://github.com/pubnub/javascript
[email protected] (MIT) https://github.com/bestiejs/punycode.js
[email protected] (MIT) https://github.com/PeculiarVentures/pvtsutils
[email protected] (MIT) https://github.com/PeculiarVentures/pvutils
[email protected] (BSD-3-Clause) https://github.com/ljharb/qs
[email protected] (MIT) https://github.com/sindresorhus/query-string
[email protected] (MIT) https://github.com/Gozala/querystring
[email protected] (MIT) https://github.com/chrisdickinson/raf
[email protected] (MIT) https://github.com/stream-utils/raw-body
[email protected] (MIT) https://github.com/react-component/align
[email protected] (MIT) https://github.com/react-component/animate
[email protected] (MIT) https://github.com/react-component/tooltip
[email protected] (MIT) https://github.com/react-component/trigger
[email protected] (MIT) https://github.com/react-component/util
[email protected] ( Apache-2.0) https://github.com/lovasoa/react-contenteditable
[email protected] (MIT) https://github.com/facebook/react
[email protected] (MIT) https://github.com/mzabriskie/react-draggable
[email protected] (MIT) https://github.com/KyleAMathews/react-gravatar
[email protected] (MIT) https://github.com/JedWatson/react-input-autosize
[email protected] (BSD-3-Clause) https://github.com/formatjs/react-intl
[email protected] (MIT) https://github.com/facebook/react
[email protected] (MIT) https://github.com/reactjs/react-lifecycles-compat
[email protected] (MIT) https://github.com/rh389/react-native-securerandom
[email protected] (MIT) https://github.com/reduxjs/react-redux
[email protected] (MIT) https://github.com/JedWatson/react-select
[email protected] (MIT) https://github.com/zillow/react-slider
[email protected] (BSD-3-Clause) https://github.com/reactjs/react-transition-group
[email protected] (MIT) https://github.com/facebook/react
[email protected] (MIT) https://github.com/isaacs/readable-stream
[email protected] (MIT) https://github.com/nodejs/readable-stream
[email protected] (MIT) https://github.com/paulmillr/readdirp
[email protected] (MIT) https://github.com/tappleby/redux-batched-subscribe
[email protected] (MIT) https://github.com/zalmoxisus/redux-devtools-extension
[email protected] (MIT) https://github.com/reduxjs/redux-thunk
[email protected] (MIT) https://github.com/reduxjs/redux
[email protected] (MIT) https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime
[email protected] (MIT) https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime
[email protected] (MIT) https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime
[email protected] (MIT) https://github.com/stephenmathieson/remove-trailing-slash
[email protected] (MIT) https://github.com/reduxjs/reselect
[email protected] (MIT) https://github.com/sindresorhus/resolve-from
[email protected] (MIT) https://github.com/browserify/resolve
[email protected] (MIT) https://github.com/tim-kos/node-retry
[email protected] (ISC) https://github.com/isaacs/rimraf
[email protected] (MIT) https://github.com/feross/safe-buffer
[email protected] (MIT) https://github.com/ChALkeR/safer-buffer
[email protected] (MIT) https://github.com/steelbrain/fs
[email protected] (MIT) https://github.com/SocketCluster/sc-errors
[email protected] (MIT) https://github.com/SocketCluster/sc-formatter
[email protected] (MIT) https://github.com/facebook/react
[email protected] (ISC) https://github.com/npm/node-semver
[email protected] (ISC) https://github.com/npm/node-semver
[email protected] (ISC) https://github.com/npm/node-semver
[email protected] (ISC) https://github.com/wesleytodd/setprototypeof
[email protected] (MIT) https://github.com/jonschlinkert/shallow-clone
[email protected] (MIT) https://github.com/moroshko/shallow-equal
[email protected] (MIT) https://github.com/dashed/shallowequal
[email protected] (MIT) https://github.com/ljharb/side-channel
[email protected] (ISC) https://github.com/tapjs/signal-exit
[email protected] (MIT) https://github.com/JoshGlazebrook/smart-buffer
[email protected] (MIT) https://github.com/SocketCluster/socketcluster-client
[email protected] (MIT) https://github.com/TooTallNate/node-socks-proxy-agent
[email protected] (MIT) https://github.com/JoshGlazebrook/socks
[email protected] (BSD-3-Clause) https://github.com/mozilla/source-map
[email protected] (BSD-3-Clause) https://github.com/mozilla/source-map
[email protected] (BSD-3-Clause) https://github.com/alexei/sprintf.js
[email protected] (MIT) https://github.com/jshttp/statuses
[email protected] (MIT) https://github.com/kevlened/str2buf
[email protected] (MIT) https://github.com/SocketCluster/stream-demux
[email protected] (MIT) https://github.com/kevva/strict-uri-encode
[email protected] (MIT) https://github.com/rvagg/string_decoder
[email protected] (MIT) https://github.com/nodejs/string_decoder
[email protected] (ISC) https://github.com/aceakash/string-similarity
[email protected] (MIT) https://github.com/sindresorhus/strip-bom-buf
[email protected] (MIT) https://github.com/styled-components/styled-components
[email protected] (MIT) https://github.com/thysultan/stylis.js
[email protected] (MIT) https://github.com/thysultan/stylis.js
[email protected] (MIT) https://github.com/TooTallNate/superagent-proxy
[email protected] (MIT) https://github.com/visionmedia/superagent
[email protected] (MIT) https://github.com/chalk/supports-color
[email protected] (MIT) https://github.com/blesh/symbol-observable
[email protected] (MIT) https://github.com/raszi/node-tmp
[email protected] (MIT) https://github.com/sindresorhus/to-fast-properties
[email protected] (MIT) https://github.com/micromatch/to-regex-range
[email protected] (MIT) https://github.com/component/toidentifier
[email protected] (Apache-2.0) https://github.com/Microsoft/tslib
[email protected] (0BSD) https://github.com/Microsoft/tslib
[email protected] (MIT) https://github.com/gkz/type-check
[email protected] (MIT) https://github.com/feross/typedarray-to-buffer
[email protected] (MIT) https://github.com/markdown-it/uc.micro
[email protected] (MIT) https://github.com/atom/underscore-plus
[email protected] (MIT) https://github.com/jashkenas/underscore
[email protected] (MIT) https://github.com/RyanZim/universalify
[email protected] (MIT) https://github.com/stream-utils/unpipe
[email protected] (MIT) https://github.com/defunctzombie/node-url
[email protected] (MIT) https://github.com/TooTallNate/util-deprecate
[email protected] (MIT) https://github.com/kelektiv/node-uuid
[email protected] (MIT) https://github.com/Microsoft/vscode-languageserver-node
[email protected] (MIT) https://github.com/Microsoft/vscode-languageserver-node
[email protected] (MIT) https://github.com/Microsoft/vscode-languageserver-node
[email protected] (MIT) https://github.com/Microsoft/vscode-languageserver-node
[email protected] (MIT) https://github.com/Microsoft/vscode-languageserver-node
[email protected] (MIT) https://github.com/Microsoft/vscode-languageserver-node
[email protected] (MIT) https://github.com/Microsoft/vscode-languageserver-node
[email protected] (MIT) https://github.com/Microsoft/vscode-languageserver-node
[email protected] (MIT) https://github.com/Microsoft/vscode-uri
[email protected] (MIT) https://github.com/microsoft/vscode-uri
[email protected] (MIT) https://github.com/PeculiarVentures/webcrypto-core
[email protected] (MIT) https://github.com/vibornoff/webcrypto-shim
[email protected] (MIT) https://github.com/github/fetch
[email protected] (MIT) https://github.com/substack/node-wordwrap
[email protected] (ISC) https://github.com/npm/wrappy
[email protected] (MIT) https://github.com/SocketCluster/writable-consumable-stream
[email protected] (ISC) https://github.com/npm/write-file-atomic
[email protected] (MIT) https://github.com/websockets/ws
[email protected] (MIT) https://github.com/slevithan/XRegExp
[email protected] (ISC) https://github.com/isaacs/yallist
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
Copyright (C) 2012-2014 by various contributors (see AUTHORS) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @babel/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
# @emotion/cache ### createCache `createCache` allows for low level customization of how styles get inserted by emotion. It's intended to be used with the [`<CacheProvider/>`](https://emotion.sh/docs/cache-provider) component to override the default cache, which is created with sensible defaults for most applications. ```javascript import createCache from '@emotion/cache' export const myCache = createCache({ key: 'my-prefix-key', stylisPlugins: [ /* your plugins here */ ] }) ``` ### Primary use cases - Using emotion in embedded contexts such as an `<iframe/>` - Setting a [nonce](#nonce-string) on any `<style/>` tag emotion creates for security purposes - Using emotion with a developer defined `<style/>` tag - Using emotion with custom Stylis plugins ## Options ### `nonce` `string` A nonce that will be set on each style tag that emotion inserts for [Content Security Policies](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP). ### `stylisPlugins` `Function` | `Array<Function>` A Stylis plugin or plugins that will be run by Stylis during preprocessing. [Read the Stylis docs to find out more](https://github.com/thysultan/stylis.js#plugins). This can be used for many purposes such as RTL. ### `prefix` `boolean` | `Function`, defaults to `true` Allows changing Stylis's vendor prefixing settings. It can be a boolean or a function to dynamically set which properties are prefixed. [More information can be found in the Stylis docs](https://github.com/thysultan/stylis.js#vendor-prefixing). ### `key` `string`, defaults to `"css"` The prefix before class names. It will also be set as the value of the `data-emotion` attribute on the style tags that emotion inserts and it's used in the attribute name that marks style elements in `renderStylesToString` and `renderStylesToNodeStream`. This is **required if using multiple emotion caches in the same app**. ### `container` `HTMLElement` A DOM node that emotion will insert all of its style tags into. This is useful for inserting styles into iframes.
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
# @emotion/core > Simple styling in React. ## Install ```bash yarn add @emotion/core ``` ## Usage ```jsx /** @jsx jsx */ import { jsx, css, Global, ClassNames } from '@emotion/core' render( <div css={{ color: 'hotpink' }}> <div css={css` color: green; `} /> <Global styles={{ body: { margin: 0, padding: 0 } }} /> <ClassNames> {({ css, cx }) => ( <div className={cx( 'some-class', css` color: yellow; ` )} /> )} </ClassNames> </div> ) ``` More documentation is available at https://emotion.sh.
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
n/a
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
# @emotion/hash > A MurmurHash2 implementation ```jsx import hash from '@emotion/hash' hash('some-string') // 12fj1d ``` The source of this is from https://github.com/garycourt/murmurhash-js/blob/master/murmurhash2_gc.js.
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
# @emotion/is-prop-valid > Check whether a prop is valid for HTML and SVG elements ```bash yarn add @emotion/is-prop-valid ``` ```jsx import isPropValid from '@emotion/is-prop-valid' isPropValid('href') // true isPropValid('someRandomProp') // false ```
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
n/a
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
n/a
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
# @emotion/sheet > A StyleSheet for css-in-js libraries ```bash yarn add @emotion/sheet ``` ```jsx import { StyleSheet } from '@emotion/sheet' const sheet = new StyleSheet({ key: '', container: document.head }) sheet.insert('html { color: hotpink; }') ``` > **Note:** > This is not useful for server-side rendering, you should implement SSR seperately ## StyleSheet ### Options ```ts type Options = { nonce?: string key: string container: HTMLElement speedy?: boolean maxLength?: number } ``` #### nonce A nonce that will be set on each style tag that the sheet inserts for [Content Security Policies](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP). #### container A DOM Node that the sheet will insert all of it's style tags into, this is useful for inserting styles into iframes. #### key This will be set as the value of the `data-emotion` attribute on the style tags that get inserted. This is useful to identify different sheets. #### speedy This defines how rules are inserted. If it is true, rules will be inserted with [`insertRule`](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule) which is very fast but doesn't allow rules to be edited in DevTools. If it is false, rules will be inserted by appending text nodes to style elements which is much slower than insertRule but allows rules to be edited in DevTools. By default, speedy is enabled in production and disabled in development. #### maxLength This defines the number of rules that are inserted into each style tag. This generally shouldn't be modified. ### Methods #### insert This method inserts a single rule into the document. It **must** be a single rule otherwise an error will be thrown in speedy mode which is enabled by default in production. #### flush This method will remove all style tags that were inserted into the document. ### Example with all options ```jsx import { StyleSheet } from '@emotion/sheet' const container = document.createElement('div') document.head.appendChild(container) const sheet = new StyleSheet({ nonce: 'some-nonce', key: 'some-key', container, maxLength: 20 }) sheet.insert('html { color: hotpink; }') sheet.flush() ``` # Thanks This StyleSheet is based on [glamor's StyleSheet](https://github.com/threepointone/glamor) written by [Sunil Pai](https://github.com/threepointone). ❤️
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
# @emotion/stylis > A custom build of Stylis `@emotion/stylis` is a version of [Stylis](https://github.com/thysultan/stylis.js) that has been modified slightly to make it smaller. The only Stylis option that can be changed is `prefix`, the rest of the options are already set to the values shown below and cannot be changed. This package also only exports the constructer, so you have to do `new Stylis()` and use the result from that rather than directly calling `Stylis`. The result of that function also cannot be used to create a stylis instance unlike stylis. ```js type Options = { global: false, preserve: false, keyframe: false, semicolon: true, cascade: true, compress: false, prefix: boolean | ((key: string, value: string, context: number) => boolean) } ``` ```jsx import Stylis from '@emotion/stylis' const stylis = new Stylis() stylis('.css-hash', 'display:flex;') // .css-hash{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;} ``` ## Building this package To build this package from a newer version of stylis, update the version of stylis that is installed as a devDependency and run `node build.js` in the directory of this package. This will read the source of stylis, transform it slightly, use the [Google Closure Compiler REST API](https://developers.google.com/closure/compiler/docs/gettingstarted_api) to minify it, format it with Prettier and then write it to `src/stylis.min.js`. # Thanks Stylis was written by [Sultan Tarimo](https://github.com/thysultan). ❤️
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
# @emotion/unitless > An object of css properties that don't accept values with units ```jsx import unitless from '@emotion/unitless' unitless.flex === 1 unitless.padding === undefined ```
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
n/a
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @emotion/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
# @emotion/weak-memoize > A memoization function that uses a WeakMap ## Install ```bash yarn add @emotion/weak-memoize ``` ## Usage Because @emotion/weak-memoize uses a WeakMap the argument must be a non primitive type, e.g. objects, functions, arrays and etc. The function passed to `weakMemoize` must also only accept a single argument. ```jsx import weakMemoize from '@emotion/weak-memoize' let doThing = weakMemoize(({ someProperty }) => { return { newName: someProperty } }) let obj = { someProperty: true } let firstResult = doThing(obj) let secondResult = doThing(obj) firstResult === secondResult // true let newObj = { someProperty: true } let thirdResult = doThing(newObj) thirdResult === firstResult // false ```
=========================================
END OF @emotion/[email protected] NOTICES AND INFORMATION
%% @formatjs/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2019 FormatJS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @formatjs/[email protected] NOTICES AND INFORMATION
%% @formatjs/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2019 FormatJS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @formatjs/[email protected] NOTICES AND INFORMATION
%% @formatjs/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2019 FormatJS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @formatjs/[email protected] NOTICES AND INFORMATION
%% @formatjs/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2019 FormatJS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @formatjs/[email protected] NOTICES AND INFORMATION
%% @formatjs/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2019 FormatJS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @formatjs/[email protected] NOTICES AND INFORMATION
%% @formatjs/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2019 FormatJS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @formatjs/[email protected] NOTICES AND INFORMATION
%% @formatjs/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2019 FormatJS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @formatjs/[email protected] NOTICES AND INFORMATION
%% @formatjs/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
n/a
=========================================
END OF @formatjs/[email protected] NOTICES AND INFORMATION
%% @microsoft/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2018 Microsoft Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @microsoft/[email protected] NOTICES AND INFORMATION
%% @peculiar/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2020 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @peculiar/[email protected] NOTICES AND INFORMATION
%% @peculiar/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2018 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @peculiar/[email protected] NOTICES AND INFORMATION
%% @peculiar/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2020 Peculiar Ventures, LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @peculiar/[email protected] NOTICES AND INFORMATION
%% @primer/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2019 GitHub Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @primer/[email protected] NOTICES AND INFORMATION
%% @segment/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
The MIT License Copyright (c) 2017 Segment.io [email protected] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @segment/[email protected] NOTICES AND INFORMATION
%% @sentry/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
BSD 3-Clause License Copyright (c) 2019, Sentry All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=========================================
END OF @sentry/[email protected] NOTICES AND INFORMATION
%% @sentry/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
BSD 3-Clause License Copyright (c) 2019, Sentry All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=========================================
END OF @sentry/[email protected] NOTICES AND INFORMATION
%% @sentry/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
BSD 3-Clause License Copyright (c) 2019, Sentry All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=========================================
END OF @sentry/[email protected] NOTICES AND INFORMATION
%% @sentry/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
BSD 3-Clause License Copyright (c) 2019, Sentry All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=========================================
END OF @sentry/[email protected] NOTICES AND INFORMATION
%% @sentry/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
BSD 3-Clause License Copyright (c) 2019, Sentry All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=========================================
END OF @sentry/[email protected] NOTICES AND INFORMATION
%% @sentry/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
BSD 3-Clause License Copyright (c) 2019, Sentry All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=========================================
END OF @sentry/[email protected] NOTICES AND INFORMATION
%% @slack/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) 2014-2019 Slack Technologies, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF @slack/[email protected] NOTICES AND INFORMATION
%% @slack/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
=========================================
END OF @slack/[email protected] NOTICES AND INFORMATION
%% @slack/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
# Slack Web API [![build-ci](https://github.com/slackapi/node-slack-sdk/workflows/CI%20Build/badge.svg)](https://github.com/slackapi/node-slack-sdk/actions?query=workflow%3A%22CI+Build%22) <!-- TODO: per-flag badge https://docs.codecov.io/docs/flags#section-flag-badges-and-graphs --> [![codecov](https://codecov.io/gh/slackapi/node-slack-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/slackapi/node-slack-sdk) <!-- TODO: npm versions with scoped packages: https://github.com/rvagg/nodei.co/issues/24 --> The `@slack/web-api` package contains a simple, convenient, and configurable HTTP client for making requests to Slack's [Web API](https://api.slack.com/web). Use it in your app to call any of the over 130 [methods](https://api.slack.com/methods), and let it handle formatting, queuing, retrying, pagination, and more. ## Installation ```shell $ npm install @slack/web-api ``` <!-- START: Remove before copying into the docs directory --> ## Usage These examples show the most common features of the `WebClient`. You'll find even more extensive [documentation on the package's website](https://slack.dev/node-slack-sdk/web-api). <!-- END: Remove before copying into the docs directory --> --- ### Initialize the client The package exports a `WebClient` class. All you need to do is instantiate it, and you're ready to go. You'll typically initialize it with a `token`, so that you don't have to provide the token each time you call a method. A token usually begins with `xoxb` or `xoxp`. You get them from each workspace an app is installed onto. The app configuration pages help you get your first token for your development workspace. ```javascript const { WebClient } = require('@slack/web-api'); // Read a token from the environment variables const token = process.env.SLACK_TOKEN; // Initialize const web = new WebClient(token); ``` <details> <summary markdown="span"> <strong><i>Initializing without a token</i></strong> </summary> Alternatively, you can create a client without a token, and use it with multiple workspaces as long as you supply a `token` when you call a method. ```javascript const { WebClient } = require('@slack/web-api'); // Initialize a single instance for the whole app const web = new WebClient(); // Find a token in storage (database) before making an API method call (async () => { // Some fictitious database const token = await db.findTokenByTeam(teamId, enterpriseId) // Call the method const result = web.auth.test({ token }); })(); ``` </details> --- ### Call a method The client instance has a named method for each of the public methods in the Web API. The most popular one is called `chat.postMessage`, and it's used to send a message to a conversation. For every method, you pass arguments as properties of an options object. This helps with the readability of your code since every argument has a name. All named methods return a `Promise` which resolves with the response data or rejects with an error. ```javascript // Given some known conversation ID (representing a public channel, private channel, DM or group DM) const conversationId = '...'; (async () => { // Post a message to the channel, and await the result. // Find more arguments and details of the response: https://api.slack.com/methods/chat.postMessage const result = await web.chat.postMessage({ text: 'Hello world!', channel: conversationId, }); // The result contains an identifier for the message, `ts`. console.log(`Successfully send message ${result.ts} in conversation ${conversationId}`); })(); ``` **Tip**: If you're using an editor that supports TypeScript, even if you're not using TypeScript to write your code, you'll get hints for all the arguments each method supports. This helps you save time by reducing the number of times you need to pop out to a webpage to check the reference. There's more information about [using TypeScript](https://slack.dev/node-slack-sdk/typescript) with this package in the documentation website. **Tip**: Use the [Block Kit Builder](https://api.slack.com/tools/block-kit-builder) for a playground where you can prototype your message's look and feel. <details> <summary markdown="span"> <strong><i>Using a dynamic method name</i></strong> </summary> If you want to provide the method name as a string so that you can decide which method to call dynamically or to call a method that might not be available in your version of the client, use the `WebClient.apiCall(methodName, [options])` method. The API method call above can also be written as follows: ```javascript const conversationId = '...'; (async () => { // Using apiCall() allows the app to call any method and to do it programmatically const response = await web.apiCall('chat.postMessage', { text: 'Hello world!', channel: conversationId, }); })(); ``` </details> --- ### Handle errors Errors can happen for many reasons: maybe the token doesn't have the proper [scopes](https://api.slack.com/scopes) to call a method, maybe its been revoked by a user, or maybe you just used a bad argument. In these cases, the returned `Promise` will reject with an `Error`. You should catch the error and use the information it contains to decide how your app can proceed. Each error contains a `code` property, which you can check against the `ErrorCode` export to understand the kind of error you're dealing with. For example, when Slack responds to your app with an error, that is an `ErrorCode.PlatformError`. These types of errors provide Slack's response body as the `data` property. ```javascript // Import ErrorCode from the package const { WebClient, ErrorCode } = require('@slack/web-api'); (async () => { try { // This method call should fail because we're giving it a bogus user ID to lookup. const response = await web.users.info({ user: '...' }); } catch (error) { // Check the code property, and when its a PlatformError, log the whole response. if (error.code === ErrorCode.PlatformError) { console.log(error.data); } else { // Some other error, oh no! console.log('Well, that was unexpected.'); } } })(); ``` <details> <summary markdown="span"> <strong><i>More error types</i></strong> </summary> There are a few more types of errors that you might encounter, each with one of these `code`s: * `ErrorCode.RequestError`: A request could not be sent. A common reason for this is that your network connection is not available, or `api.slack.com` could not be reached. This error has an `original` property with more details. * `ErrorCode.RateLimitedError`: The Web API cannot fulfill the API method call because your app has made too many requests too quickly. This error has a `retryAfter` property with the number of seconds you should wait before trying again. See [the documentation on rate limit handling](https://slack.dev/node-slack-sdk/web-api/#rate-limits) to understand how the client will automatically deal with these problems for you. * `ErrorCode.HTTPError`: The HTTP response contained an unfamiliar status code. The Web API only responds with `200` (yes, even for errors) or `429` (rate limiting). If you receive this error, it's likely due to a problem with a proxy, a custom TLS configuration, or a custom API URL. This error has the `statusCode`, `statusMessage`, `headers`, and `body` properties containing more details. </details> --- ### Pagination [Many of the Web API's methods](https://api.slack.com/docs/pagination#methods_supporting_cursor-based_pagination) return lists of objects, and are known to be **cursor-paginated**. The result of calling these methods will contain a part of the list, or a page, and also provide you with information on how to continue to the next page on a subsequent API call. Instead of calling many times manually, the `WebClient` can manage to get each page, allowing you to determine when to stop, and help you process the results. The process of retrieving multiple pages from Slack's API can be described as **asynchronous iteration**, which means you're processing items in a collection, but getting each item is an asynchronous operation. Fortunately, JavaScript has this concept built-in, and in newer versions of the language there's a syntax to make it even simpler: [`for await...of`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of). ```javascript (async () => { let result; // Async iteration is similar to a simple for loop. // Use only the first two parameters to get an async iterator. for await (const page of web.paginate('something.list', { name: 'value' })) { // You can inspect each page, find your result, and stop the loop with a `break` statement if (containsTheThing(page.something)) { result = page.something.thing; break; } } }); ``` The `for await...of` syntax is available in Node v10.0.0 and above. If you're using an older version of Node, see functional iteration below. <details> <summary markdown="span"> <strong><i>Using functional iteration</i></strong> </summary> The `.paginate()` method can accept up to two additional parameters. The third parameter, `stopFn`, is a function that is called once for each page of the result, and should return `true` when the app no longer needs to get another page. The fourth parameter is `reducerFn`, which is a function that gets called once for each page of the result, but can be used to aggregate a result. The value it returns is used to call it the next time as the `accumulator`. The first time it gets called, the `accumulator` is undefined. ```javascript (async () => { // The first two parameters are the method name and the options object. const done = await web.paginate('something.list', { name: 'value' }, // The third is a function that receives each page and should return true when the next page isn't needed. (page) => { /* ... */ }, // The fourth is a reducer function, similar to the callback parameter of Array.prototype.reduce(). // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce // The accumulator is initialized to undefined. (accumulator, page, index) => { /* ... */ }, ); }); ``` The returned value is a `Promise`, but what it resolves to depends on whether or not you include the fourth (optional) parameter. If you don't include it, the resolved value is always `undefined`. In this case, its used for control flow purposes (resuming the rest of your program), and the function in the third parameter is used to capture a result. If you do include the fourth parameter, then the resolved value is the value of the `accumulator`. This is a familiar pattern for people that use _functional programming_. </details> --- ### Logging The `WebClient` will log interesting information to the console by default. You can use the `logLevel` to decide how much information, or how interesting the information needs to be, in order for it to be output. There are a few possible log levels, which you can find in the `LogLevel` export. By default, the value is set to `LogLevel.INFO`. While you're in development, its sometimes helpful to set this to the most verbose: `LogLevel.DEBUG`. ```javascript // Import LogLevel from the package const { WebClient, LogLevel } = require('@slack/web-api'); // Log level is one of the options you can set in the constructor const web = new WebClient(token, { logLevel: LogLevel.DEBUG, }); ``` All the log levels, in order of most to least information, are: `DEBUG`, `INFO`, `WARN`, and `ERROR`. <details> <summary markdown="span"> <strong><i>Sending log output somewhere besides the console</i></strong> </summary> You can also choose to have logs sent to a custom logger using the `logger` option. A custom logger needs to implement specific methods (known as the `Logger` interface): | Method | Parameters | Return type | |--------------|-------------------|-------------| | `setLevel()` | `level: LogLevel` | `void` | | `setName()` | `name: string` | `void` | | `debug()` | `...msgs: any[]` | `void` | | `info()` | `...msgs: any[]` | `void` | | `warn()` | `...msgs: any[]` | `void` | | `error()` | `...msgs: any[]` | `void` | A very simple custom logger might ignore the name and level, and write all messages to a file. ```javascript const { createWriteStream } = require('fs'); const logWritable = createWriteStream('/var/my_log_file'); // Not shown: close this stream const web = new WebClient(token, { // Creating a logger as a literal object. It's more likely that you'd create a class. logger: { debug(...msgs): { logWritable.write('debug: ' + JSON.stringify(msgs)); }, info(...msgs): { logWritable.write('info: ' + JSON.stringify(msgs)); }, warn(...msgs): { logWritable.write('warn: ' + JSON.stringify(msgs)); }, error(...msgs): { logWritable.write('error: ' + JSON.stringify(msgs)); }, setLevel(): { }, setName(): { }, }, }); ``` </details> --- ### Automatic retries In production systems, you want your app to be resilient to short hiccups and temporary outages. Solving for this problem usually involves building a queuing system that handles retrying failed tasks. The `WebClient` comes with this queuing system out of the box, and it's on by default! The client will retry a failed API method call up to 10 times, spaced out over about 30 minutes. If the request doesn't succeed within that time, then the returned `Promise` will reject. You can observe each of the retries in your logs by [setting the log level to DEBUG](#logging). Try running the following code with your network disconnected, and then re-connect after you see a couple of log messages: ```javascript const { WebClient, LogLevel } = require('@slack/web-api'); const web = new WebClient('bogus token'); (async () => { await web.auth.test(); console.log('Done!'); })(); ``` Shortly after re-connecting your network, you should see the `Done!` message. Did you notice the program doesn't use a valid token? The client is doing something clever and helpful here. It knows the difference between an error such as not being able to reach `api.slack.com` and an error in the response from Slack about an invalid token. The former is something that can be resolved with a retry, so it was retried. The invalid token error means that the call isn't going to succeed until your app does something differently, so it stops attempting retries. You might not think 10 reties in 30 minutes is a good policy for your app. No problem, you can set the `retryConfig` to one that works better for you. The `retryPolicies` export contains a few well known options, and you can always write your own. ```javascript const { WebClient, retryPolicies } = require('@slack/web-api'); const web = new WebClient(token, { retryConfig: retryPolicies.fiveRetriesInFiveMinutes, }); ``` Here are some other values that you might want to use for `retryConfig`: | `retryConfig` | Description | |------------------------------------------------|---------------------------------| | `retryPolicies.tenRetriesInAboutThirtyMinutes` | (default) | | `retryPolicies.fiveRetriesInFiveMinutes` | Five attempts in five minutes | | `retryPolicies.rapidRetryPolicy` | Used to keep tests running fast | | `{ retries: 0 }` | No retries ([other options](https://github.com/tim-kos/node-retry#retryoperationoptions)) | **Note**: If an API call results in a rate limit being exceeded, you might still notice the client automatically retrying the API call. If you'd like to opt out of that behavior, set the `rejectRateLimitedCalls` option to `true`. --- ### More The [documentation website](https://slack.dev/node-slack-sdk/web-api) has information about these additional features of the `WebClient`: * Upload a file with a `Buffer` or a `ReadableStream`. * Using a custom agent for proxying * Rate limit handling * Request concurrency * Custom TLS configuration * Custom API URL * Exchange an OAuth grant for a token --- ## Requirements This package supports Node v8 LTS and higher. It's highly recommended to use [the latest LTS version of node](https://github.com/nodejs/Release#release-schedule), and the documentation is written using syntax and features from that version. ## Getting Help If you get stuck, we're here to help. The following are the best ways to get assistance working through your issue: * [Issue Tracker](http://github.com/slackapi/node-slack-sdk/issues) for questions, feature requests, bug reports and general discussion related to these packages. Try searching before you create a new issue. * [Email us](mailto:[email protected]) in Slack developer support: `[email protected]` * [Bot Developers Hangout](https://community.botkit.ai/): a Slack community for developers building all types of bots. You can find the maintainers and users of these packages in **#sdk-node-slack-sdk**.
=========================================
END OF @slack/[email protected] NOTICES AND INFORMATION
%% @tootallnate/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
n/a
=========================================
END OF @tootallnate/[email protected] NOTICES AND INFORMATION
%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
=========================================
END OF @types/[email protected] NOTICES AND INFORMATION
%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) Microsoft Corporation. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
=========================================
END OF @types/[email protected] NOTICES AND INFORMATION
%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) Microsoft Corporation. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
=========================================
END OF @types/[email protected] NOTICES AND INFORMATION
%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) Microsoft Corporation. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
=========================================
END OF @types/[email protected] NOTICES AND INFORMATION
%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) Microsoft Corporation. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
=========================================
END OF @types/[email protected] NOTICES AND INFORMATION
%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) Microsoft Corporation. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
=========================================
END OF @types/[email protected] NOTICES AND INFORMATION
%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) Microsoft Corporation. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
=========================================
END OF @types/[email protected] NOTICES AND INFORMATION
%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) Microsoft Corporation. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
=========================================
END OF @types/[email protected] NOTICES AND INFORMATION
%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) Microsoft Corporation. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
=========================================
END OF @types/[email protected] NOTICES AND INFORMATION
%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) Microsoft Corporation. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
=========================================
END OF @types/[email protected] NOTICES AND INFORMATION
%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
=========================================
END OF @types/[email protected] NOTICES AND INFORMATION
%% @unimodules/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
# @unimodules/core ## JavaScript installation ```sh $ yarn add @unimodules/core # or $ npm install @unimodules/core --save ``` ## Installation If you are using `react-native-unimodules`, this package will already be installed and configured! ### iOS (Cocoapods) If you're using Cocoapods, add the following dependency to your `Podfile`: `pod 'UMCore', path: '../node_modules/@unimodules/core/ios'` and run `npx pod-install`. ### Android 1. Append the following lines to `android/settings.gradle`: ```gradle include ':unimodules-core' project(':unimodules-core').projectDir = new File(rootProject.projectDir, '../node_modules/@unimodules/core/android') ``` 2. Insert the following lines inside the dependencies block in `android/app/build.gradle`: ```gradle compile project(':unimodules-core') ``` 3. If you're using ProGuard, you'll need to append these lines to your ProGuard rules file for it not to strip out methods required for Expo modules to work. ```pro -keepclassmembers class * { @org.unimodules.interfaces.ExpoProp *; } -keepclassmembers class * { @org.unimodules.interfaces.ExpoMethod *; } ``` ## Usage ### Glossary - **Native code** — iOS/Android native code. - **Client code** — code _over the bridge_, for React Native it's the JavaScript app. - **Internal module** — a class implementing `UMInternalModule`/`org.unimodules.interfaces.InternalModule` interface. Its instance can be exposed internally to other modules via *Module Registry* (how dependants reference modules differs between platforms). - **Module interface** — an interface that should be implemented by the dependency so it can act as an implementation of it. On Android modules implement an external interface (`expo-file-system` package implements interface provided by `expo-file-system-interface`). Dependants may access the implementations by calling ```java public <T> T getModule(Class<T> interfaceClass); ``` method on the module registry. On iOS its the consumer who defines required protocol. Implementations are identified by a protocol. Dependants access the implementation by calling ```objc - (id)getModuleImplementingProtocol:(Protocol *)protocol; ``` method on the module registry. - **Module Registry** — well, a registry of modules. Instance of this class is used to fetch another internal or exported module. - **Exported methods** — a subset of instance methods of a given module that should get exposed to client code by specific platform adapter. - **Exported module** — a subclass of `{UM,org.unimodules.}ExportedModule`. Its methods annotated with `org.unimodules.ExpoMethod`/`UM_EXPORT_METHOD_AS` are exported to client code. - **View manager** — a class capable of providing platform adapter with custom views. ### Registering modules in the registry #### iOS 1. Open the header file for your module. 2. Import `<UMCore/UMInternalModule.h>`. 3. Add `UMModule` to a list of implemented interfaces by the module instances (eg. `NSObject <UMInternalModule>`). 4. Open the implementation file for your module and implement methods required by the protocol. 5. Use `UM_REGISTER_MODULE();` macro to register the module. 6. That's it! #### Android 1. Add `org.unimodules.interfaces.InternalModule` to your class's imports. 2. Make your module class implement `InternalModule` interface. 1. Implement `public List<Class> getExportedInterfaces();`. Return a list of module interfaces implemented by the class, for example: ```java return Collections.singletonList((Class) org.unimodules.interfaces.filesystem.FileSystem.class); ``` 3. Create a `Package` class for your module, unless you already have one. 1. A `Package` class should implement `org.unimodules.Package` interface (a `BasePackage` class is provided for you not to have to implement all the initialization flavors at once). 2. Add the `Package` to a `List` provided to `ModuleRegistryBuilder`. ```java new ModuleRegistryBuilder( Arrays.<Package>asList( new FileSystemPackage() ) ) ``` 4. Add your module to be returned by `List<InternalModule> createInternalModules(Context context);`. 5. You're good to go! ### Exporting module to client code #### iOS When registering your module for export to client code, you must first decide whether the class will only be exported to client code or will it be both internal and exported module. If the former is applicable, you easily just subclass `UMExportedModule` and use macro `UM_EXPORT_MODULE(clientCodeName)` to provide a name under which it should be exported. If your module should be both internal and exported module, you also have to subclass `UMExportedModule`, but this time use `UM_REGISTER_MODULE()` in the implementation and then manually override methods `exportedInterfaces` and `exportedModuleName`. #### Android Subclass `org.unimodules.ExportedModule` and add your module to a list returned by `Package` in `createExportedModules()`. ### Exporting methods and calling exported methods #### iOS Use `UM_EXPORT_METHOD_AS(exportedName, definition)` macro to export given method to client code. Note that for the module to be available in the client code you have to provide a non-empty client code name in `UM_EXPORT_MODULE(clientCodeName)` or `- (const NSString *)exportedModuleName`. For now, arguments have to use basic, object types, like `NSString *`, `NSDictionary *`, `NSNumber *`. Methods are required to receive `UMPromiseResolveBlock` and `UMPromiseRejectBlock` as two last arguments. #### Android Given that your module subclasses `org.unimodules.ExportedModule` and it is returned by the respective `Package`, you just have to annotate the given method with `@ExpoMethod` annotation. Methods are required to receive `org.unimodules.Promise` as the last argument. ### Exporting constants to client code #### iOS Implement `- (NSDictionary *)constantsToExport` method to export constants to client code. #### Android Override `public Map<String, Object> getConstants();` method to export constants to client code. ### Creating a custom view manager #### iOS Subclass `UMViewManager` and override at least `- (UIView *)view` and `- (NSString *)viewName`. Register it with `UM_REGISTER_MODULE()`. Use `UM_VIEW_PROPERTY(propName, propClass, viewClass)` to define custom view properties. #### Android TODO: ViewManager from interface to a class Implement `org.unimodules.interfaces.ViewManager` in your class and respond with its instance in `List<ViewManager> createViewManagers(Context context);` in corresponding `Package`. Annotate prop setter methods with `@ExpoProp(name = <name>)` to define custom view properties.
=========================================
END OF @unimodules/[email protected] NOTICES AND INFORMATION
%% @unimodules/[email protected] NOTICES AND INFORMATION BEGIN HERE:
=========================================
# @unimodules/react-native-adapter A React Native adapter for Expo Universal Modules. It requires [`@unimodules/core`](https://github.com/expo/expo/tree/master/packages/@unimodules/core) to be installed and linked. ## JavaScript installation ```sh $ yarn add @unimodules/react-native-adapter # or $ npm install @unimodules/react-native-adapter --save ``` ## Installation If you are using `react-native-unimodules`, this package will already be installed and configured! ### iOS (Cocoapods) If you're using Cocoapods, add the dependency to your `Podfile`: `pod 'UMReactNativeAdapter', path: '../node_modules/@unimodules/react-native-adapter/ios', inhibit_warnings: true` and run `npx pod-install`. ### Android 1. Append the following lines to `android/settings.gradle`: ```gradle include ':unimodules-react-native-adapter' project(':unimodules-react-native-adapter').projectDir = new File(rootProject.projectDir, '../node_modules/@unimodules/react-native-adapter/android') ``` 2. Insert the following lines inside the dependencies block in `android/app/build.gradle`: ```gradle compile project(':unimodules-react-native-adapter') ``` ## Additional required setup #### iOS 1. Open the `AppDelegate.m` of your application. 2. Import `<UMCore/UMModuleRegistry.h>`, `<UMReactNativeAdapter/UMNativeModulesProxy.h>` and `<UMReactNativeAdapter/UMModuleRegistryAdapter.h>`. 3. Make `AppDelegate` implement `RCTBridgeDelegate` protocol (`@interface AppDelegate () <RCTBridgeDelegate>`). 4. Add a new instance variable to your `AppDelegate`: ```objc @interface AppDelegate () <RCTBridgeDelegate> // add this line @property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter; @end ``` 5. In `-application:didFinishLaunchingWithOptions:` add the following at the top of the implementation: ```objc self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]]; ``` 6. Add two methods to the `AppDelegate`'s implementation: ```objc - (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge { NSArray<id<RCTBridgeModule>> *extraModules = [_moduleRegistryAdapter extraModulesForBridge:bridge]; // If you'd like to export some custom RCTBridgeModules that are not Expo modules, add them here! return extraModules; } - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; } ``` 7. When initializing `RCTBridge`, make the `AppDelegate` a delegate of the bridge: ```objc RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; ``` or, if you use `react-native-navigation`, add the `bridgeManagerDelegate` parameter of `self`, like: ```diff -[ReactNativeNavigation bootstrap:jsCodeLocation launchOptions:launchOptions]; +[ReactNativeNavigation bootstrap:jsCodeLocation launchOptions:launchOptions bridgeManagerDelegate:self]; ``` 8. That's it! All in all, your `AppDelegate.m` should look similar to: <details> <summary>Click to expand</summary> <p> ```objc #import "AppDelegate.h" #import <React/RCTBundleURLProvider.h> #import <React/RCTRootView.h> #import <UMCore/UMModuleRegistry.h> #import <UMReactNativeAdapter/UMNativeModulesProxy.h> #import <UMReactNativeAdapter/UMModuleRegistryAdapter.h> @interface AppDelegate () <RCTBridgeDelegate> @property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter; @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]]; RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"YOUR_MODULE_NAME" initialProperties:nil]; rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UIViewController *rootViewController = [UIViewController new]; rootViewController.view = rootView; self.window.rootViewController = rootViewController; [self.window makeKeyAndVisible]; return YES; } - (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge { NSArray<id<RCTBridgeModule>> *extraModules = [_moduleRegistryAdapter extraModulesForBridge:bridge]; // If you'd like to export some custom RCTBridgeModules that are not universal modules, add them here! return extraModules; } - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; } @end ``` </details> #### Android 1. Open the `MainApplication.java` of your application. 2. Add to the imports: ```java import org.unimodules.adapters.react.ModuleRegistryAdapter; import org.unimodules.adapters.react.ReactAdapterPackage; import org.unimodules.adapters.react.ReactModuleRegistryProvider; import org.unimodules.core.interfaces.Package; ``` 3. Create an instance variable on the `Application`: ```java private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>asList( new ReactAdapterPackage() // more packages, like // new CameraPackage(), if you use expo-camera // etc. ), /* singletonModules */ null); ``` 4. Add `new ModuleRegistryAdapter(mModuleRegistryProvider)` to the list returned by `protected List<ReactPackage> getPackages()`. 5. You're good to go! ## Usage ### Calling methods on native modules Native modules are available behind the proxy (`NativeModulesProxy` of `@unimodules/core`). To call an exported method, use `NativeModulesProxy[clientCodeName].exportedMethod(...arguments)`, like this: ```js // For UM_REGISTER_MODULE(FileSystem,) or UM_REGISTER_UMPORTED_MODULE(FileSystem) // and UM_EXPORT_METHOD_AS(getInfo, getInfo:(NSString *)path) // or for method // @ExpoMethod // public void getInfo(String path, Promise promise) // defined in native module with name FileSystem import { NativeModulesProxy } from '@unimodules/core'; const { FileSystem } = NativeModulesProxy; FileSystem.getInfo('file:///...'); ``` Note that all the methods return `Promise`s. ### Synthetic Platform Events When creating web universal modules, you may find that you need to send events back to the API layer. In this case you will want to use the shared `SyntheticPlatformEmitter` instance from `@unimodules/core`. The shared emitter emit events to `react-native`'s `NativeEventEmitter` and `@unimodules/core`'s `EventEmitter` . `ExponentGyroscope.web.ts` ```js // Example from expo-sensors native web gyroscope sensor import { SyntheticPlatformEmitter } from '@unimodules/core'; SyntheticPlatformEmitter.emit('gyroscopeDidUpdate', { x, y, z }); ``` This emitted event is then received with a `EventEmitter` in the developer-facing API. ```js import { EventEmitter } from '@unimodules/core'; import ExponentGyroscope from './ExponentGyroscope'; const nativeEmitter = new EventEmitter(ExponentGyroscope); // On Android and iOS, `nativeEmitter` receives events sent from Objective-C and Java. On web, it // receives events from the shared `SyntheticPlatformEmitter` instance. nativeEmitter.addListener('gyroscopeDidUpdate', ({ x, y, z }) => {}); ```