newrelic 10.2.0 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NEWS.md CHANGED
@@ -1,3 +1,13 @@
1
+ ### v10.3.0 (2023-06-13)
2
+
3
+ #### Features
4
+
5
+ * Added Interactive Application Security Testing(IAST) mode of security agent when `config.security.agent.enabled` is true. ([#1664](https://github.com/newrelic/node-newrelic/pull/1664)) ([3e926e5](https://github.com/newrelic/node-newrelic/commit/3e926e59ab5feba4b2759d8a108c424b237b5eda))
6
+
7
+ **NOTE**: The security agent IAST mode is in public preview and should only be used in non-production environments.
8
+
9
+ * To enable the security agent set `config.security.agent.enabled` and `config.security.enabled` to true.
10
+
1
11
  ### v10.2.0 (2023-06-06)
2
12
 
3
13
  #### Features
@@ -19,6 +19,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
19
19
  * [@mrleebo/prisma-ast](#mrleeboprisma-ast)
20
20
  * [@newrelic/aws-sdk](#newrelicaws-sdk)
21
21
  * [@newrelic/koa](#newrelickoa)
22
+ * [@newrelic/security-agent](#newrelicsecurity-agent)
22
23
  * [@newrelic/superagent](#newrelicsuperagent)
23
24
  * [@tyriar/fibonacci-heap](#tyriarfibonacci-heap)
24
25
  * [concat-stream](#concat-stream)
@@ -89,7 +90,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
89
90
 
90
91
  ### @grpc/grpc-js
91
92
 
92
- This product includes source derived from [@grpc/grpc-js](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js) ([v1.8.12](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js/tree/v1.8.12)), distributed under the [Apache-2.0 License](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js/blob/v1.8.12/LICENSE):
93
+ This product includes source derived from [@grpc/grpc-js](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js) ([v1.8.14](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js/tree/v1.8.14)), distributed under the [Apache-2.0 License](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js/blob/v1.8.14/LICENSE):
93
94
 
94
95
  ```
95
96
  Apache License
@@ -298,7 +299,7 @@ This product includes source derived from [@grpc/grpc-js](https://github.com/grp
298
299
 
299
300
  ### @grpc/proto-loader
300
301
 
301
- This product includes source derived from [@grpc/proto-loader](https://github.com/grpc/grpc-node) ([v0.7.5](https://github.com/grpc/grpc-node/tree/v0.7.5)), distributed under the [Apache-2.0 License](https://github.com/grpc/grpc-node/blob/v0.7.5/LICENSE):
302
+ This product includes source derived from [@grpc/proto-loader](https://github.com/grpc/grpc-node) ([v0.7.7](https://github.com/grpc/grpc-node/tree/v0.7.7)), distributed under the [Apache-2.0 License](https://github.com/grpc/grpc-node/blob/v0.7.7/LICENSE):
302
303
 
303
304
  ```
304
305
  Apache License
@@ -535,7 +536,7 @@ SOFTWARE.
535
536
 
536
537
  ### @newrelic/aws-sdk
537
538
 
538
- This product includes source derived from [@newrelic/aws-sdk](https://github.com/newrelic/node-newrelic-aws-sdk) ([v5.0.2](https://github.com/newrelic/node-newrelic-aws-sdk/tree/v5.0.2)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-newrelic-aws-sdk/blob/v5.0.2/LICENSE):
539
+ This product includes source derived from [@newrelic/aws-sdk](https://github.com/newrelic/node-newrelic-aws-sdk) ([v5.0.5](https://github.com/newrelic/node-newrelic-aws-sdk/tree/v5.0.5)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-newrelic-aws-sdk/blob/v5.0.5/LICENSE):
539
540
 
540
541
  ```
541
542
  Apache License
@@ -743,7 +744,7 @@ This product includes source derived from [@newrelic/aws-sdk](https://github.com
743
744
 
744
745
  ### @newrelic/koa
745
746
 
746
- This product includes source derived from [@newrelic/koa](https://github.com/newrelic/node-newrelic-koa) ([v7.1.1](https://github.com/newrelic/node-newrelic-koa/tree/v7.1.1)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-newrelic-koa/blob/v7.1.1/LICENSE):
747
+ This product includes source derived from [@newrelic/koa](https://github.com/newrelic/node-newrelic-koa) ([v7.2.0](https://github.com/newrelic/node-newrelic-koa/tree/v7.2.0)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-newrelic-koa/blob/v7.2.0/LICENSE):
747
748
 
748
749
  ```
749
750
  Apache License
@@ -950,6 +951,57 @@ Apache License
950
951
 
951
952
  ```
952
953
 
954
+ ### @newrelic/security-agent
955
+
956
+ This product includes source derived from [@newrelic/security-agent](https://github.com/newrelic/csec-node-agent) ([v0.1.2](https://github.com/newrelic/csec-node-agent/tree/v0.1.2)), distributed under the [New Relic Pre-Release License](https://github.com/newrelic/csec-node-agent/blob/v0.1.2/LICENSE):
957
+
958
+ ```
959
+ ## New Relic Pre-Release Software Notice
960
+
961
+ ### Acceptance
962
+
963
+ This software license applies to the repositories, directories, or files that it has been associated with (referred to here as the “Pre-Release Software”). In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
964
+ License
965
+
966
+ New Relic, Inc. (“New Relic”) grants you a license under its copyrights and patents to do everything necessary for you to use the Pre-Release Software for the Permitted Purposes and subject to your compliance with the Confidentiality terms and all other Restrictions on Use. All other uses are prohibited.
967
+
968
+ ### Permitted Purposes
969
+
970
+ The Pre-Release Software is solely for use with New Relic’s proprietary SaaS service (“New Relic Service”). To use the Pre-Release Software you must have a valid and active subscription agreement to the New Relic Service. You may not use the Pre-Release Software in conjunction with any other similar service.
971
+
972
+ Use of the Pre-Release Software is limited to evaluation and feedback, including pull requests, of the pre-release features and capabilities. The use of the Pre-Release Software requires a signed New Relic Pre-Release Agreement. The New Relic Pre-Release Agreement will control in event of a conflict with this license. The Pre-Release Software is also subject to the New Relic pre-release policy. A copy of the New Relic Pre-release policy available at https://docs.newrelic.com/docs/licenses/license-information/referenced-policies/new-relic-pre-release-policy/.
973
+
974
+ ### Confidentiality
975
+
976
+ Any Pre-Release Software not posted publicly contains New Relic Trade Secrets. You may not disclose the features and capabilities of the Pre-Release Software to any third party by any means. You will use commercially reasonable measures to maintain the secrecy of the features and capabilities of the Pre-Release Software. Without limiting the permissions you receive under any open source software (“OSS”) license, you may not disclose the source code of any OSS included as part of the Pre-Release Software in a way that discloses the New Relic Trade Secrets.
977
+
978
+ ### Restrictions on Use
979
+
980
+ 1. The use of the Pre-Release Software is limited to you and your organization. You cannot expose the Pre-Release Software to third parties via the network or use the Pre-Release Software on behalf of anyone else.
981
+ 2. You cannot modify the Pre-Release Software. You can compile or link the Pre-Release Software into your programs as described in the New Relic Documentation, but you cannot otherwise make any derivative works of the Pre-Release Software.
982
+ 3. You cannot reverse engineer or decompile the Pre-Release Software.
983
+ 4. You cannot use the Pre-Release Software for competitive analysis, benchmarking, or any purposes that compete with or are intended to compete with New Relic.
984
+ 5. You cannot remove or obscure any proprietary notices in the Pre-Release Software.
985
+ 6. You can only copy the Software to the extent needed to use the Pre-Release Software within your organization. You cannot distribute the Software to any third parties.
986
+ 7. You can only use the New Relic Services and the Pre-Release Software consistent with New Relic’s product Documentation and Acceptable Use Policy.
987
+
988
+ ### Intellectual Property
989
+
990
+ Any feedback provided to New Relic about the Pre-Release Software, including feedback provided as source code, comments, or other copyrightable or patentable material, is provided to New Relic under the terms of the Apache Software License, version 2. If you do not provide attribution information or a copy of the license with your feedback, you waive the performance of those requirements of the Apache License with respect to New Relic. The license grant regarding any feedback is irrevocable and persists past the termination of this license.
991
+
992
+ ### Termination
993
+
994
+ This license terminates when the Pre-Release Software stops being provided by New Relic or when described by the New Relic Pre-Release Agreement, whichever comes first. When this license terminates, you have a commercially reasonable time to either remove the Pre-Release Software from your systems or to upgrade to a publicly released version of the Software.
995
+
996
+ ### Other Terms
997
+
998
+ 1. The Pre-Release Software is provided “AS IS.” New Relic disclaims all warranties, whether express, implied, statutory or otherwise, including warranties of merchantability, fitness for a particular purpose, title and noninfringement.
999
+ 2. The Pre-Release Software has known flaws. You use the Pre-Release Software at your own risk.
1000
+ 3. To the full extent permitted by law, New Relic will have no liability arising from or related to the Pre-Release Software or from this license for any direct, indirect, special, incidental, or consequential damages of any kind, even if advised of their possibility in advance, and regardless of legal theory (whether contract, tort, negligence, strict liability or otherwise).
1001
+ 4. The Pre-Release Software may contain third-party software, including open source software. The third party software is governed by its own license and subject to its own terms, disclosed in the provided licensing information associated with the third party components. If a source code disclosure is required under the terms of the license covering any OSS component, the source code can be requested of New Relic by emailing opensource@newrelic.com.
1002
+
1003
+ ```
1004
+
953
1005
  ### @newrelic/superagent
954
1006
 
955
1007
  This product includes source derived from [@newrelic/superagent](https://github.com/newrelic/node-newrelic-superagent) ([v6.0.0](https://github.com/newrelic/node-newrelic-superagent/tree/v6.0.0)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-newrelic-superagent/blob/v6.0.0/LICENSE):
@@ -1832,7 +1884,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1832
1884
 
1833
1885
  ### @newrelic/test-utilities
1834
1886
 
1835
- This product includes source derived from [@newrelic/test-utilities](https://github.com/newrelic/node-test-utilities) ([v7.3.0](https://github.com/newrelic/node-test-utilities/tree/v7.3.0)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-test-utilities/blob/v7.3.0/LICENSE):
1887
+ This product includes source derived from [@newrelic/test-utilities](https://github.com/newrelic/node-test-utilities) ([v7.3.1](https://github.com/newrelic/node-test-utilities/tree/v7.3.1)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-test-utilities/blob/v7.3.1/LICENSE):
1836
1888
 
1837
1889
  ```
1838
1890
  Apache License
@@ -2071,7 +2123,7 @@ THE SOFTWARE.
2071
2123
 
2072
2124
  ### @slack/bolt
2073
2125
 
2074
- This product includes source derived from [@slack/bolt](https://github.com/slackapi/bolt) ([v3.12.1](https://github.com/slackapi/bolt/tree/v3.12.1)), distributed under the [MIT License](https://github.com/slackapi/bolt/blob/v3.12.1/LICENSE):
2126
+ This product includes source derived from [@slack/bolt](https://github.com/slackapi/bolt) ([v3.13.1](https://github.com/slackapi/bolt/tree/v3.13.1)), distributed under the [MIT License](https://github.com/slackapi/bolt/blob/v3.13.1/LICENSE):
2075
2127
 
2076
2128
  ```
2077
2129
  The MIT License (MIT)
@@ -2180,7 +2232,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2180
2232
 
2181
2233
  ### chai
2182
2234
 
2183
- This product includes source derived from [chai](https://github.com/chaijs/chai) ([v4.3.6](https://github.com/chaijs/chai/tree/v4.3.6)), distributed under the [MIT License](https://github.com/chaijs/chai/blob/v4.3.6/LICENSE):
2235
+ This product includes source derived from [chai](https://github.com/chaijs/chai) ([v4.3.7](https://github.com/chaijs/chai/tree/v4.3.7)), distributed under the [MIT License](https://github.com/chaijs/chai/blob/v4.3.7/LICENSE):
2184
2236
 
2185
2237
  ```
2186
2238
  MIT License
@@ -2349,12 +2401,12 @@ SOFTWARE.
2349
2401
 
2350
2402
  ### eslint-config-prettier
2351
2403
 
2352
- This product includes source derived from [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) ([v8.5.0](https://github.com/prettier/eslint-config-prettier/tree/v8.5.0)), distributed under the [MIT License](https://github.com/prettier/eslint-config-prettier/blob/v8.5.0/LICENSE):
2404
+ This product includes source derived from [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) ([v8.8.0](https://github.com/prettier/eslint-config-prettier/tree/v8.8.0)), distributed under the [MIT License](https://github.com/prettier/eslint-config-prettier/blob/v8.8.0/LICENSE):
2353
2405
 
2354
2406
  ```
2355
2407
  The MIT License (MIT)
2356
2408
 
2357
- Copyright (c) 2017, 2018, 2019, 2020, 2021, 2022 Simon Lydell and contributors
2409
+ Copyright (c) 2017, 2018, 2019, 2020, 2021, 2022, 2023 Simon Lydell and contributors
2358
2410
 
2359
2411
  Permission is hereby granted, free of charge, to any person obtaining a copy
2360
2412
  of this software and associated documentation files (the "Software"), to deal
@@ -2421,7 +2473,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
2421
2473
 
2422
2474
  ### eslint-plugin-jsdoc
2423
2475
 
2424
- This product includes source derived from [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) ([v39.3.6](https://github.com/gajus/eslint-plugin-jsdoc/tree/v39.3.6)), distributed under the [BSD-3-Clause License](https://github.com/gajus/eslint-plugin-jsdoc/blob/v39.3.6/LICENSE):
2476
+ This product includes source derived from [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) ([v39.9.1](https://github.com/gajus/eslint-plugin-jsdoc/tree/v39.9.1)), distributed under the [BSD-3-Clause License](https://github.com/gajus/eslint-plugin-jsdoc/blob/v39.9.1/LICENSE):
2425
2477
 
2426
2478
  ```
2427
2479
  Copyright (c) 2018, Gajus Kuizinas (http://gajus.com/)
@@ -2688,7 +2740,7 @@ Library.
2688
2740
 
2689
2741
  ### eslint
2690
2742
 
2691
- This product includes source derived from [eslint](https://github.com/eslint/eslint) ([v8.24.0](https://github.com/eslint/eslint/tree/v8.24.0)), distributed under the [MIT License](https://github.com/eslint/eslint/blob/v8.24.0/LICENSE):
2743
+ This product includes source derived from [eslint](https://github.com/eslint/eslint) ([v8.40.0](https://github.com/eslint/eslint/tree/v8.40.0)), distributed under the [MIT License](https://github.com/eslint/eslint/blob/v8.40.0/LICENSE):
2692
2744
 
2693
2745
  ```
2694
2746
  Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
@@ -2715,7 +2767,7 @@ THE SOFTWARE.
2715
2767
 
2716
2768
  ### express
2717
2769
 
2718
- This product includes source derived from [express](https://github.com/expressjs/express) ([v4.18.1](https://github.com/expressjs/express/tree/v4.18.1)), distributed under the [MIT License](https://github.com/expressjs/express/blob/v4.18.1/LICENSE):
2770
+ This product includes source derived from [express](https://github.com/expressjs/express) ([v4.18.2](https://github.com/expressjs/express/tree/v4.18.2)), distributed under the [MIT License](https://github.com/expressjs/express/blob/v4.18.2/LICENSE):
2719
2771
 
2720
2772
  ```
2721
2773
  (The MIT License)
@@ -2805,7 +2857,7 @@ https://creativecommons.org/licenses/by-sa/4.0/
2805
2857
 
2806
2858
  ### got
2807
2859
 
2808
- This product includes source derived from [got](https://github.com/sindresorhus/got) ([v11.8.5](https://github.com/sindresorhus/got/tree/v11.8.5)), distributed under the [MIT License](https://github.com/sindresorhus/got/blob/v11.8.5/license):
2860
+ This product includes source derived from [got](https://github.com/sindresorhus/got) ([v11.8.6](https://github.com/sindresorhus/got/tree/v11.8.6)), distributed under the [MIT License](https://github.com/sindresorhus/got/blob/v11.8.6/license):
2809
2861
 
2810
2862
  ```
2811
2863
  MIT License
@@ -2990,7 +3042,7 @@ SOFTWARE.
2990
3042
 
2991
3043
  ### lockfile-lint
2992
3044
 
2993
- This product includes source derived from [lockfile-lint](https://github.com/lirantal/lockfile-lint) ([v4.9.6](https://github.com/lirantal/lockfile-lint/tree/v4.9.6)), distributed under the [Apache-2.0 License](https://github.com/lirantal/lockfile-lint/blob/v4.9.6/LICENSE):
3045
+ This product includes source derived from [lockfile-lint](https://github.com/lirantal/lockfile-lint) ([v4.10.1](https://github.com/lirantal/lockfile-lint/tree/v4.10.1)), distributed under the [Apache-2.0 License](https://github.com/lirantal/lockfile-lint/blob/v4.10.1/LICENSE):
2994
3046
 
2995
3047
  ```
2996
3048
 
@@ -3243,7 +3295,7 @@ SOFTWARE.
3243
3295
 
3244
3296
  ### prettier
3245
3297
 
3246
- This product includes source derived from [prettier](https://github.com/prettier/prettier) ([v2.7.1](https://github.com/prettier/prettier/tree/v2.7.1)), distributed under the [MIT License](https://github.com/prettier/prettier/blob/v2.7.1/LICENSE):
3298
+ This product includes source derived from [prettier](https://github.com/prettier/prettier) ([v2.8.8](https://github.com/prettier/prettier/tree/v2.8.8)), distributed under the [MIT License](https://github.com/prettier/prettier/blob/v2.8.8/LICENSE):
3247
3299
 
3248
3300
  ```
3249
3301
  # Prettier license
@@ -3273,7 +3325,7 @@ Repository: <https://github.com/angular/angular.git>
3273
3325
 
3274
3326
  ----------------------------------------
3275
3327
 
3276
- ### @babel/code-frame@v7.16.7
3328
+ ### @babel/code-frame@v7.18.6
3277
3329
 
3278
3330
  License: MIT
3279
3331
  By: The Babel Team
@@ -3304,7 +3356,7 @@ Repository: <https://github.com/babel/babel.git>
3304
3356
 
3305
3357
  ----------------------------------------
3306
3358
 
3307
- ### @babel/helper-validator-identifier@v7.16.7
3359
+ ### @babel/helper-validator-identifier@v7.19.1
3308
3360
 
3309
3361
  License: MIT
3310
3362
  By: The Babel Team
@@ -3335,7 +3387,7 @@ Repository: <https://github.com/babel/babel.git>
3335
3387
 
3336
3388
  ----------------------------------------
3337
3389
 
3338
- ### @babel/highlight@v7.16.10
3390
+ ### @babel/highlight@v7.18.6
3339
3391
 
3340
3392
  License: MIT
3341
3393
  By: The Babel Team
@@ -3366,7 +3418,7 @@ Repository: <https://github.com/babel/babel.git>
3366
3418
 
3367
3419
  ----------------------------------------
3368
3420
 
3369
- ### @babel/parser@v7.18.0
3421
+ ### @babel/parser@v7.21.3
3370
3422
 
3371
3423
  License: MIT
3372
3424
  By: The Babel Team
@@ -3585,14 +3637,14 @@ License: MIT
3585
3637
 
3586
3638
  ----------------------------------------
3587
3639
 
3588
- ### @typescript-eslint/types@v5.27.0
3640
+ ### @typescript-eslint/types@v5.55.0
3589
3641
 
3590
3642
  License: MIT
3591
3643
  Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
3592
3644
 
3593
3645
  > MIT License
3594
3646
  >
3595
- > Copyright (c) 2019 TypeScript ESLint and other contributors
3647
+ > Copyright (c) 2019 typescript-eslint and other contributors
3596
3648
  >
3597
3649
  > Permission is hereby granted, free of charge, to any person obtaining a copy
3598
3650
  > of this software and associated documentation files (the "Software"), to deal
@@ -3614,7 +3666,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
3614
3666
 
3615
3667
  ----------------------------------------
3616
3668
 
3617
- ### @typescript-eslint/typescript-estree@v5.27.0
3669
+ ### @typescript-eslint/typescript-estree@v5.55.0
3618
3670
 
3619
3671
  License: BSD-2-Clause
3620
3672
  Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
@@ -3629,11 +3681,11 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
3629
3681
  > Redistribution and use in source and binary forms, with or without
3630
3682
  > modification, are permitted provided that the following conditions are met:
3631
3683
  >
3632
- > * Redistributions of source code must retain the above copyright
3633
- > notice, this list of conditions and the following disclaimer.
3634
- > * Redistributions in binary form must reproduce the above copyright
3635
- > notice, this list of conditions and the following disclaimer in the
3636
- > documentation and/or other materials provided with the distribution.
3684
+ > - Redistributions of source code must retain the above copyright
3685
+ > notice, this list of conditions and the following disclaimer.
3686
+ > - Redistributions in binary form must reproduce the above copyright
3687
+ > notice, this list of conditions and the following disclaimer in the
3688
+ > documentation and/or other materials provided with the distribution.
3637
3689
  >
3638
3690
  > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
3639
3691
  > AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -3648,14 +3700,14 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
3648
3700
 
3649
3701
  ----------------------------------------
3650
3702
 
3651
- ### @typescript-eslint/visitor-keys@v5.27.0
3703
+ ### @typescript-eslint/visitor-keys@v5.55.0
3652
3704
 
3653
3705
  License: MIT
3654
3706
  Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
3655
3707
 
3656
3708
  > MIT License
3657
3709
  >
3658
- > Copyright (c) 2019 TypeScript ESLint and other contributors
3710
+ > Copyright (c) 2019 typescript-eslint and other contributors
3659
3711
  >
3660
3712
  > Permission is hereby granted, free of charge, to any person obtaining a copy
3661
3713
  > of this software and associated documentation files (the "Software"), to deal
@@ -3677,14 +3729,14 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
3677
3729
 
3678
3730
  ----------------------------------------
3679
3731
 
3680
- ### acorn@v8.7.0
3732
+ ### acorn@v8.8.1
3681
3733
 
3682
3734
  License: MIT
3683
3735
  Repository: <https://github.com/acornjs/acorn.git>
3684
3736
 
3685
3737
  > MIT License
3686
3738
  >
3687
- > Copyright (C) 2012-2020 by various contributors (see AUTHORS)
3739
+ > Copyright (C) 2012-2022 by various contributors (see AUTHORS)
3688
3740
  >
3689
3741
  > Permission is hereby granted, free of charge, to any person obtaining a copy
3690
3742
  > of this software and associated documentation files (the "Software"), to deal
@@ -4491,42 +4543,15 @@ By: Jon Schlinkert
4491
4543
 
4492
4544
  ----------------------------------------
4493
4545
 
4494
- ### debug@v4.3.4
4495
-
4496
- License: MIT
4497
- By: Josh Junon
4498
- Repository: <git://github.com/debug-js/debug.git>
4499
-
4500
- > (The MIT License)
4501
- >
4502
- > Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
4503
- > Copyright (c) 2018-2021 Josh Junon
4504
- >
4505
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4506
- > and associated documentation files (the 'Software'), to deal in the Software without restriction,
4507
- > including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
4508
- > and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
4509
- > subject to the following conditions:
4510
- >
4511
- > The above copyright notice and this permission notice shall be included in all copies or substantial
4512
- > portions of the Software.
4513
- >
4514
- > THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
4515
- > LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
4516
- > IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
4517
- > WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
4518
- > SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4519
-
4520
- ----------------------------------------
4521
-
4522
- ### defaults@v1.0.3
4546
+ ### defaults@v1.0.4
4523
4547
 
4524
4548
  License: MIT
4525
4549
  By: Elijah Insua
4526
- Repository: <git://github.com/tmpvar/defaults.git>
4550
+ Repository: <git://github.com/sindresorhus/node-defaults.git>
4527
4551
 
4528
4552
  > The MIT License (MIT)
4529
4553
  >
4554
+ > Copyright (c) 2022 Sindre Sorhus
4530
4555
  > Copyright (c) 2015 Elijah Insua
4531
4556
  >
4532
4557
  > Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -4549,7 +4574,7 @@ Repository: <git://github.com/tmpvar/defaults.git>
4549
4574
 
4550
4575
  ----------------------------------------
4551
4576
 
4552
- ### del@v6.0.0
4577
+ ### del@v6.1.1
4553
4578
 
4554
4579
  License: MIT
4555
4580
  By: Sindre Sorhus
@@ -4667,7 +4692,7 @@ Repository: <git://github.com/editorconfig/editorconfig-core-js.git>
4667
4692
 
4668
4693
  ----------------------------------------
4669
4694
 
4670
- ### editorconfig-to-prettier@v0.2.0
4695
+ ### editorconfig-to-prettier@v1.0.0
4671
4696
 
4672
4697
  License: ISC
4673
4698
  By: Joseph Frazier
@@ -4987,7 +5012,7 @@ By: Toru Nagashima
4987
5012
 
4988
5013
  ----------------------------------------
4989
5014
 
4990
- ### espree@v9.3.1
5015
+ ### espree@v9.4.1
4991
5016
 
4992
5017
  License: BSD-2-Clause
4993
5018
  By: Nicholas C. Zakas
@@ -5095,7 +5120,7 @@ Repository: <https://github.com/justmoon/node-extend.git>
5095
5120
 
5096
5121
  ----------------------------------------
5097
5122
 
5098
- ### fast-glob@v3.2.11
5123
+ ### fast-glob@v3.2.12
5099
5124
 
5100
5125
  License: MIT
5101
5126
  By: Denis Malinochkin
@@ -5154,7 +5179,7 @@ Repository: <git://github.com/epoberezkin/fast-json-stable-stringify.git>
5154
5179
 
5155
5180
  ----------------------------------------
5156
5181
 
5157
- ### fastq@v1.13.0
5182
+ ### fastq@v1.14.0
5158
5183
 
5159
5184
  License: ISC
5160
5185
  By: Matteo Collina
@@ -5328,7 +5353,7 @@ By: Roy Riojas
5328
5353
 
5329
5354
  ----------------------------------------
5330
5355
 
5331
- ### flatted@v3.2.5
5356
+ ### flatted@v3.2.7
5332
5357
 
5333
5358
  License: ISC
5334
5359
  By: Andrea Giammarchi
@@ -5503,7 +5528,7 @@ By: Sindre Sorhus
5503
5528
 
5504
5529
  ----------------------------------------
5505
5530
 
5506
- ### glob@v7.2.0
5531
+ ### glob@v7.2.3
5507
5532
 
5508
5533
  License: ISC
5509
5534
  By: Isaac Z. Schlueter
@@ -5573,14 +5598,14 @@ By: Sindre Sorhus
5573
5598
 
5574
5599
  ----------------------------------------
5575
5600
 
5576
- ### graceful-fs@v4.2.9
5601
+ ### graceful-fs@v4.2.10
5577
5602
 
5578
5603
  License: ISC
5579
5604
  Repository: <https://github.com/isaacs/node-graceful-fs>
5580
5605
 
5581
5606
  > The ISC License
5582
5607
  >
5583
- > Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors
5608
+ > Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
5584
5609
  >
5585
5610
  > Permission to use, copy, modify, and/or distribute this software for any
5586
5611
  > purpose with or without fee is hereby granted, provided that the above
@@ -5733,36 +5758,6 @@ By: Titus Wormer
5733
5758
 
5734
5759
  ----------------------------------------
5735
5760
 
5736
- ### html-void-elements@v2.0.1
5737
-
5738
- License: MIT
5739
- By: Titus Wormer
5740
-
5741
- > (The MIT License)
5742
- >
5743
- > Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
5744
- >
5745
- > Permission is hereby granted, free of charge, to any person obtaining
5746
- > a copy of this software and associated documentation files (the
5747
- > 'Software'), to deal in the Software without restriction, including
5748
- > without limitation the rights to use, copy, modify, merge, publish,
5749
- > distribute, sublicense, and/or sell copies of the Software, and to
5750
- > permit persons to whom the Software is furnished to do so, subject to
5751
- > the following conditions:
5752
- >
5753
- > The above copyright notice and this permission notice shall be
5754
- > included in all copies or substantial portions of the Software.
5755
- >
5756
- > THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
5757
- > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
5758
- > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
5759
- > IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
5760
- > CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
5761
- > TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
5762
- > SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5763
-
5764
- ----------------------------------------
5765
-
5766
5761
  ### human-signals@v3.0.1
5767
5762
 
5768
5763
  License: Apache-2.0
@@ -6002,6 +5997,36 @@ Repository: <git@github.com:kaelzhang/node-ignore.git>
6002
5997
 
6003
5998
  ----------------------------------------
6004
5999
 
6000
+ ### ignore@v5.2.4
6001
+
6002
+ License: MIT
6003
+ By: kael
6004
+ Repository: <git@github.com:kaelzhang/node-ignore.git>
6005
+
6006
+ > Copyright (c) 2013 Kael Zhang <i@kael.me>, contributors
6007
+ > http://kael.me/
6008
+ >
6009
+ > Permission is hereby granted, free of charge, to any person obtaining
6010
+ > a copy of this software and associated documentation files (the
6011
+ > "Software"), to deal in the Software without restriction, including
6012
+ > without limitation the rights to use, copy, modify, merge, publish,
6013
+ > distribute, sublicense, and/or sell copies of the Software, and to
6014
+ > permit persons to whom the Software is furnished to do so, subject to
6015
+ > the following conditions:
6016
+ >
6017
+ > The above copyright notice and this permission notice shall be
6018
+ > included in all copies or substantial portions of the Software.
6019
+ >
6020
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
6021
+ > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
6022
+ > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
6023
+ > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
6024
+ > LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
6025
+ > OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
6026
+ > WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6027
+
6028
+ ----------------------------------------
6029
+
6005
6030
  ### import-fresh@v3.3.0
6006
6031
 
6007
6032
  License: MIT
@@ -6233,7 +6258,7 @@ Repository: <git://github.com/feross/is-buffer.git>
6233
6258
 
6234
6259
  ----------------------------------------
6235
6260
 
6236
- ### is-core-module@v2.8.1
6261
+ ### is-core-module@v2.11.0
6237
6262
 
6238
6263
  License: MIT
6239
6264
  By: Jordan Harband
@@ -6578,7 +6603,7 @@ Repository: <git+https://github.com/isaacs/isexe.git>
6578
6603
 
6579
6604
  ----------------------------------------
6580
6605
 
6581
- ### jest-docblock@v27.5.1
6606
+ ### jest-docblock@v28.1.1
6582
6607
 
6583
6608
  License: MIT
6584
6609
  Repository: <https://github.com/facebook/jest.git>
@@ -6669,7 +6694,7 @@ By: Kat Marchán
6669
6694
 
6670
6695
  ----------------------------------------
6671
6696
 
6672
- ### json5@v2.2.1
6697
+ ### json5@v2.2.2
6673
6698
 
6674
6699
  License: MIT
6675
6700
  By: Aseem Kishore
@@ -7151,34 +7176,6 @@ Repository: <git://github.com/substack/minimist.git>
7151
7176
 
7152
7177
  ----------------------------------------
7153
7178
 
7154
- ### ms@v2.1.2
7155
-
7156
- License: MIT
7157
-
7158
- > The MIT License (MIT)
7159
- >
7160
- > Copyright (c) 2016 Zeit, Inc.
7161
- >
7162
- > Permission is hereby granted, free of charge, to any person obtaining a copy
7163
- > of this software and associated documentation files (the "Software"), to deal
7164
- > in the Software without restriction, including without limitation the rights
7165
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7166
- > copies of the Software, and to permit persons to whom the Software is
7167
- > furnished to do so, subject to the following conditions:
7168
- >
7169
- > The above copyright notice and this permission notice shall be included in all
7170
- > copies or substantial portions of the Software.
7171
- >
7172
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
7173
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7174
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
7175
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
7176
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
7177
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
7178
- > SOFTWARE.
7179
-
7180
- ----------------------------------------
7181
-
7182
7179
  ### n-readlines@v1.0.1
7183
7180
 
7184
7181
  License: MIT
@@ -7961,7 +7958,7 @@ By: Jon Schlinkert
7961
7958
 
7962
7959
  ----------------------------------------
7963
7960
 
7964
- ### resolve@v1.22.0
7961
+ ### resolve@v1.22.1
7965
7962
 
7966
7963
  License: MIT
7967
7964
  By: James Halliday
@@ -8170,6 +8167,30 @@ Repository: <https://github.com/npm/node-semver.git>
8170
8167
 
8171
8168
  ----------------------------------------
8172
8169
 
8170
+ ### semver@v7.3.8
8171
+
8172
+ License: ISC
8173
+ By: GitHub Inc.
8174
+ Repository: <https://github.com/npm/node-semver.git>
8175
+
8176
+ > The ISC License
8177
+ >
8178
+ > Copyright (c) Isaac Z. Schlueter and Contributors
8179
+ >
8180
+ > Permission to use, copy, modify, and/or distribute this software for any
8181
+ > purpose with or without fee is hereby granted, provided that the above
8182
+ > copyright notice and this permission notice appear in all copies.
8183
+ >
8184
+ > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8185
+ > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
8186
+ > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
8187
+ > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
8188
+ > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
8189
+ > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
8190
+ > IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8191
+
8192
+ ----------------------------------------
8193
+
8173
8194
  ### semver-compare@v1.0.0
8174
8195
 
8175
8196
  License: MIT
@@ -8601,7 +8622,7 @@ Repository: <https://github.com/ajafff/tsutils>
8601
8622
 
8602
8623
  ----------------------------------------
8603
8624
 
8604
- ### typescript@v4.7.2
8625
+ ### typescript@v5.0.2
8605
8626
 
8606
8627
  License: Apache-2.0
8607
8628
  By: Microsoft Corp.
@@ -9509,7 +9530,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9509
9530
 
9510
9531
  ### @contrast/fn-inspect
9511
9532
 
9512
- This product includes source derived from [@contrast/fn-inspect](https://github.com/Contrast-Security-Inc/node-fn-inspect) ([v3.3.0](https://github.com/Contrast-Security-Inc/node-fn-inspect/tree/v3.3.0)), distributed under the [MIT License](https://github.com/Contrast-Security-Inc/node-fn-inspect/blob/v3.3.0/LICENSE):
9533
+ This product includes source derived from [@contrast/fn-inspect](https://github.com/Contrast-Security-Inc/node-fn-inspect) ([v3.3.1](https://github.com/Contrast-Security-Inc/node-fn-inspect/tree/v3.3.1)), distributed under the [MIT License](https://github.com/Contrast-Security-Inc/node-fn-inspect/blob/v3.3.1/LICENSE):
9513
9534
 
9514
9535
  ```
9515
9536
  Copyright 2022 Contrast Security, Inc
package/index.js CHANGED
@@ -50,7 +50,6 @@ function initialize() {
50
50
  `New Relic for Node.js requires a version of Node ${pkgJSON.engines.node}. \n` +
51
51
  `Please upgrade from your current Node version: ${process.version}. Not starting!`
52
52
 
53
- logger.error(message)
54
53
  throw new Error(message)
55
54
  }
56
55
 
@@ -104,7 +103,8 @@ function initialize() {
104
103
  API = require('./stub_api')
105
104
  }
106
105
 
107
- require.cache.__NR_cache = module.exports = new API(agent)
106
+ const api = new API(agent)
107
+ require.cache.__NR_cache = module.exports = api
108
108
 
109
109
  // If we loaded an agent, record a startup time for the agent.
110
110
  // NOTE: Metrics are recorded in seconds, so divide the value by 1000.
@@ -118,6 +118,10 @@ function initialize() {
118
118
  (Date.now() - agentStart) / 1000
119
119
  )
120
120
  })
121
+
122
+ if (agent.config.security.agent.enabled) {
123
+ require('@newrelic/security-agent').start(api)
124
+ }
121
125
  }
122
126
  }
123
127
 
@@ -142,7 +146,6 @@ function createAgent(config) {
142
146
  'New Relic requires that you name this application!\n' +
143
147
  'Set app_name in your newrelic.js or newrelic.cjs file or set environment variable\n' +
144
148
  'NEW_RELIC_APP_NAME. Not starting!'
145
- logger.error(message)
146
149
  throw new Error(message)
147
150
  }
148
151
 
@@ -88,7 +88,13 @@ function wrapGetConnection(shim, connectable) {
88
88
  const args = shim.toArray(arguments)
89
89
  const cbIdx = args.length - 1
90
90
 
91
- if (shim.isFunction(args[cbIdx]) && !shim.isWrapped(args[cbIdx])) {
91
+ // avoid an infinite loop and check both the cb and the "original" cb before re-wrapping
92
+ // this is only applicable now with the security agent + us doing the same thing
93
+ const original = shim.getOriginalOnce(args[cbIdx])
94
+ if (
95
+ shim.isFunction(args[cbIdx]) &&
96
+ !(shim.isWrapped(args[cbIdx]) || shim.isWrapped(original))
97
+ ) {
92
98
  shim.logger.trace(
93
99
  {
94
100
  hasSegment: !!shim.getSegment()
package/lib/shim/shim.js CHANGED
@@ -116,6 +116,7 @@ Shim.prototype.isWrapped = isWrapped
116
116
  Shim.prototype.unwrap = unwrap
117
117
  Shim.prototype.unwrapOnce = unwrap
118
118
  Shim.prototype.getOriginal = getOriginal
119
+ Shim.prototype.getOriginalOnce = getOriginalOnce
119
120
  Shim.prototype.assignOriginal = assignOriginal
120
121
  Shim.prototype.getSegment = getSegment
121
122
  Shim.prototype.getActiveSegment = getActiveSegment
@@ -1051,6 +1052,26 @@ function getOriginal(nodule, property) {
1051
1052
  return original
1052
1053
  }
1053
1054
 
1055
+ /**
1056
+ * Retrieves the value of symbols.original on the wrapped function.
1057
+ * Unlike `getOriginal` this just looks in the direct wrapped function
1058
+ *
1059
+ * @memberof Shim.prototype
1060
+ * @param {object | Function} nodule
1061
+ * The source of the property to get the original of, or a function to unwrap.
1062
+ * @param {string} [property]
1063
+ * A property on `nodule` to get the original value of.
1064
+ * @returns {object | Function} The original value for the given item.
1065
+ */
1066
+ function getOriginalOnce(nodule, property) {
1067
+ if (!nodule) {
1068
+ return nodule
1069
+ }
1070
+
1071
+ const original = property ? nodule[property] : nodule
1072
+ return original[symbols.original]
1073
+ }
1074
+
1054
1075
  /**
1055
1076
  * Binds the execution of a function to a single segment.
1056
1077
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newrelic",
3
- "version": "10.2.0",
3
+ "version": "10.3.0",
4
4
  "author": "New Relic Node.js agent team <nodejs@newrelic.com>",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [
@@ -174,6 +174,8 @@
174
174
  "versioned:npm7": "npm run checkout-external-versioned && npm run prepare-test && NPM7=1 time ./bin/run-versioned-tests.sh",
175
175
  "versioned:async-local": "NEW_RELIC_FEATURE_FLAG_ASYNC_LOCAL_CONTEXT=1 npm run versioned:npm7",
176
176
  "versioned:async-local:major": "NEW_RELIC_FEATURE_FLAG_ASYNC_LOCAL_CONTEXT=1 npm run versioned:major",
177
+ "versioned:security": "NEW_RELIC_SECURITY_AGENT_ENABLED=true npm run versioned:npm7",
178
+ "versioned:security:major": "NEW_RELIC_SECURITY_AGENT_ENABLED=true npm run versioned:major",
177
179
  "prepare": "husky install"
178
180
  },
179
181
  "bin": {
@@ -185,6 +187,7 @@
185
187
  "@mrleebo/prisma-ast": "^0.5.2",
186
188
  "@newrelic/aws-sdk": "^5.0.2",
187
189
  "@newrelic/koa": "^7.1.1",
190
+ "@newrelic/security-agent": "0.1.2",
188
191
  "@newrelic/superagent": "^6.0.0",
189
192
  "@tyriar/fibonacci-heap": "^2.0.7",
190
193
  "concat-stream": "^2.0.0",