mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-01 17:03:38 +00:00
Updated
This commit is contained in:
203
node_modules/gcp-metadata/CHANGELOG.md
generated
vendored
Normal file
203
node_modules/gcp-metadata/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,203 @@
|
||||
# Changelog
|
||||
|
||||
[npm history][1]
|
||||
|
||||
[1]: https://www.npmjs.com/package/gcp-metadata?activeTab=versions
|
||||
|
||||
### [2.0.2](https://www.github.com/googleapis/gcp-metadata/compare/v2.0.1...v2.0.2) (2019-08-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* allow calls with no request, add JSON proto ([#224](https://www.github.com/googleapis/gcp-metadata/issues/224)) ([dc758b1](https://www.github.com/googleapis/gcp-metadata/commit/dc758b1))
|
||||
|
||||
### [2.0.1](https://www.github.com/googleapis/gcp-metadata/compare/v2.0.0...v2.0.1) (2019-06-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **docs:** make anchors work in jsdoc ([#212](https://www.github.com/googleapis/gcp-metadata/issues/212)) ([9174b43](https://www.github.com/googleapis/gcp-metadata/commit/9174b43))
|
||||
|
||||
## [2.0.0](https://www.github.com/googleapis/gcp-metadata/compare/v1.0.0...v2.0.0) (2019-05-07)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update dependency gaxios to v2 ([#191](https://www.github.com/googleapis/gcp-metadata/issues/191)) ([ac8c1ef](https://www.github.com/googleapis/gcp-metadata/commit/ac8c1ef))
|
||||
|
||||
|
||||
### Build System
|
||||
|
||||
* upgrade engines field to >=8.10.0 ([#194](https://www.github.com/googleapis/gcp-metadata/issues/194)) ([97c23c8](https://www.github.com/googleapis/gcp-metadata/commit/97c23c8))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* upgrade engines field to >=8.10.0 (#194)
|
||||
|
||||
## v1.0.0
|
||||
|
||||
02-14-2019 16:00 PST
|
||||
|
||||
### Bug Fixes
|
||||
- fix: ask gaxios for text and not json ([#152](https://github.com/googleapis/gcp-metadata/pull/152))
|
||||
|
||||
### Documentation
|
||||
- docs: update links in contrib guide ([#168](https://github.com/googleapis/gcp-metadata/pull/168))
|
||||
- docs: add lint/fix example to contributing guide ([#160](https://github.com/googleapis/gcp-metadata/pull/160))
|
||||
|
||||
### Internal / Testing Changes
|
||||
- build: use linkinator for docs test ([#166](https://github.com/googleapis/gcp-metadata/pull/166))
|
||||
- chore(deps): update dependency @types/tmp to v0.0.34 ([#167](https://github.com/googleapis/gcp-metadata/pull/167))
|
||||
- build: create docs test npm scripts ([#165](https://github.com/googleapis/gcp-metadata/pull/165))
|
||||
- test: run system tests on GCB ([#157](https://github.com/googleapis/gcp-metadata/pull/157))
|
||||
- build: test using @grpc/grpc-js in CI ([#164](https://github.com/googleapis/gcp-metadata/pull/164))
|
||||
- chore: move CONTRIBUTING.md to root ([#162](https://github.com/googleapis/gcp-metadata/pull/162))
|
||||
- chore(deps): update dependency gcx to v0.1.1 ([#159](https://github.com/googleapis/gcp-metadata/pull/159))
|
||||
- chore(deps): update dependency gcx to v0.1.0 ([#158](https://github.com/googleapis/gcp-metadata/pull/158))
|
||||
- chore(deps): update dependency gcx to v0.0.4 ([#155](https://github.com/googleapis/gcp-metadata/pull/155))
|
||||
- chore(deps): update dependency googleapis to v37 ([#156](https://github.com/googleapis/gcp-metadata/pull/156))
|
||||
- build: ignore googleapis.com in doc link check ([#153](https://github.com/googleapis/gcp-metadata/pull/153))
|
||||
- build: check broken links in generated docs ([#149](https://github.com/googleapis/gcp-metadata/pull/149))
|
||||
- chore(build): inject yoshi automation key ([#148](https://github.com/googleapis/gcp-metadata/pull/148))
|
||||
|
||||
## v0.9.3
|
||||
|
||||
12-10-2018 16:16 PST
|
||||
|
||||
### Dependencies
|
||||
- chore(deps): update dependency googleapis to v36 ([#135](https://github.com/googleapis/gcp-metadata/pull/135))
|
||||
- chore(deps): use gaxios for http requests ([#121](https://github.com/googleapis/gcp-metadata/pull/121))
|
||||
- chore(deps): update dependency gts to ^0.9.0 ([#123](https://github.com/googleapis/gcp-metadata/pull/123))
|
||||
|
||||
### Internal / Testing Changes
|
||||
- fix(build): fix Kokoro release script ([#141](https://github.com/googleapis/gcp-metadata/pull/141))
|
||||
- Release v0.9.2 ([#140](https://github.com/googleapis/gcp-metadata/pull/140))
|
||||
- build: add Kokoro configs for autorelease ([#138](https://github.com/googleapis/gcp-metadata/pull/138))
|
||||
- Release gcp-metadata v0.9.1 ([#139](https://github.com/googleapis/gcp-metadata/pull/139))
|
||||
- chore: always nyc report before calling codecov ([#134](https://github.com/googleapis/gcp-metadata/pull/134))
|
||||
- chore: nyc ignore build/test by default ([#133](https://github.com/googleapis/gcp-metadata/pull/133))
|
||||
- Sync repo build files ([#131](https://github.com/googleapis/gcp-metadata/pull/131))
|
||||
- fix(build): fix system key decryption ([#128](https://github.com/googleapis/gcp-metadata/pull/128))
|
||||
- refactor: use execa, move post install test to system ([#127](https://github.com/googleapis/gcp-metadata/pull/127))
|
||||
- chore: add a synth.metadata
|
||||
- test: add a system test ([#126](https://github.com/googleapis/gcp-metadata/pull/126))
|
||||
- chore: update eslintignore config ([#122](https://github.com/googleapis/gcp-metadata/pull/122))
|
||||
- chore: use latest npm on Windows ([#120](https://github.com/googleapis/gcp-metadata/pull/120))
|
||||
- chore: update CircleCI config ([#119](https://github.com/googleapis/gcp-metadata/pull/119))
|
||||
- chore: include build in eslintignore ([#115](https://github.com/googleapis/gcp-metadata/pull/115))
|
||||
|
||||
## v0.9.2
|
||||
|
||||
12-10-2018 14:01 PST
|
||||
|
||||
- chore(deps): update dependency googleapis to v36 ([#135](https://github.com/googleapis/gcp-metadata/pull/135))
|
||||
- chore: always nyc report before calling codecov ([#134](https://github.com/googleapis/gcp-metadata/pull/134))
|
||||
- chore: nyc ignore build/test by default ([#133](https://github.com/googleapis/gcp-metadata/pull/133))
|
||||
- chore: Re-generated to pick up changes in the API or client library generator. ([#131](https://github.com/googleapis/gcp-metadata/pull/131))
|
||||
- fix(build): fix system key decryption ([#128](https://github.com/googleapis/gcp-metadata/pull/128))
|
||||
- chore(deps): use gaxios for http requests ([#121](https://github.com/googleapis/gcp-metadata/pull/121))
|
||||
- refactor: use execa, move post install test to system ([#127](https://github.com/googleapis/gcp-metadata/pull/127))
|
||||
- chore: add a synth.metadata
|
||||
- test: add a system test ([#126](https://github.com/googleapis/gcp-metadata/pull/126))
|
||||
- chore(deps): update dependency gts to ^0.9.0 ([#123](https://github.com/googleapis/gcp-metadata/pull/123))
|
||||
- chore: update eslintignore config ([#122](https://github.com/googleapis/gcp-metadata/pull/122))
|
||||
- chore: use latest npm on Windows ([#120](https://github.com/googleapis/gcp-metadata/pull/120))
|
||||
- chore: update CircleCI config ([#119](https://github.com/googleapis/gcp-metadata/pull/119))
|
||||
- chore: include build in eslintignore ([#115](https://github.com/googleapis/gcp-metadata/pull/115))
|
||||
- build: add Kokoro configs for autorelease ([#138](https://github.com/googleapis/gcp-metadata/pull/138))
|
||||
|
||||
## v0.9.1
|
||||
|
||||
12-10-2018 11:53 PST
|
||||
|
||||
- chore(deps): update dependency googleapis to v36 ([#135](https://github.com/googleapis/gcp-metadata/pull/135))
|
||||
- chore: always nyc report before calling codecov ([#134](https://github.com/googleapis/gcp-metadata/pull/134))
|
||||
- chore: nyc ignore build/test by default ([#133](https://github.com/googleapis/gcp-metadata/pull/133))
|
||||
- chore: Re-generated to pick up changes in the API or client library generator. ([#131](https://github.com/googleapis/gcp-metadata/pull/131))
|
||||
- fix(build): fix system key decryption ([#128](https://github.com/googleapis/gcp-metadata/pull/128))
|
||||
- chore(deps): use gaxios for http requests ([#121](https://github.com/googleapis/gcp-metadata/pull/121))
|
||||
- refactor: use execa, move post install test to system ([#127](https://github.com/googleapis/gcp-metadata/pull/127))
|
||||
- chore: add a synth.metadata
|
||||
- test: add a system test ([#126](https://github.com/googleapis/gcp-metadata/pull/126))
|
||||
- chore(deps): update dependency gts to ^0.9.0 ([#123](https://github.com/googleapis/gcp-metadata/pull/123))
|
||||
- chore: update eslintignore config ([#122](https://github.com/googleapis/gcp-metadata/pull/122))
|
||||
- chore: use latest npm on Windows ([#120](https://github.com/googleapis/gcp-metadata/pull/120))
|
||||
- chore: update CircleCI config ([#119](https://github.com/googleapis/gcp-metadata/pull/119))
|
||||
- chore: include build in eslintignore ([#115](https://github.com/googleapis/gcp-metadata/pull/115))
|
||||
|
||||
## v0.9.0
|
||||
|
||||
10-26-2018 13:10 PDT
|
||||
|
||||
- feat: allow custom headers ([#109](https://github.com/googleapis/gcp-metadata/pull/109))
|
||||
- chore: update issue templates ([#108](https://github.com/googleapis/gcp-metadata/pull/108))
|
||||
- chore: remove old issue template ([#106](https://github.com/googleapis/gcp-metadata/pull/106))
|
||||
- build: run tests on node11 ([#105](https://github.com/googleapis/gcp-metadata/pull/105))
|
||||
- chores(build): do not collect sponge.xml from windows builds ([#104](https://github.com/googleapis/gcp-metadata/pull/104))
|
||||
- chores(build): run codecov on continuous builds ([#102](https://github.com/googleapis/gcp-metadata/pull/102))
|
||||
- chore(deps): update dependency nock to v10 ([#103](https://github.com/googleapis/gcp-metadata/pull/103))
|
||||
- chore: update new issue template ([#101](https://github.com/googleapis/gcp-metadata/pull/101))
|
||||
- build: fix codecov uploading on Kokoro ([#97](https://github.com/googleapis/gcp-metadata/pull/97))
|
||||
- Update kokoro config ([#95](https://github.com/googleapis/gcp-metadata/pull/95))
|
||||
- Update CI config ([#93](https://github.com/googleapis/gcp-metadata/pull/93))
|
||||
- Update kokoro config ([#91](https://github.com/googleapis/gcp-metadata/pull/91))
|
||||
- Re-generate library using /synth.py ([#90](https://github.com/googleapis/gcp-metadata/pull/90))
|
||||
- test: remove appveyor config ([#89](https://github.com/googleapis/gcp-metadata/pull/89))
|
||||
- Update kokoro config ([#88](https://github.com/googleapis/gcp-metadata/pull/88))
|
||||
- Enable prefer-const in the eslint config ([#87](https://github.com/googleapis/gcp-metadata/pull/87))
|
||||
- Enable no-var in eslint ([#86](https://github.com/googleapis/gcp-metadata/pull/86))
|
||||
|
||||
### New Features
|
||||
|
||||
A new option, `headers`, has been added to allow metadata queries to be sent with custom headers.
|
||||
|
||||
## v0.8.0
|
||||
|
||||
**This release has breaking changes**. Please take care when upgrading to the latest version.
|
||||
|
||||
#### Dropped support for Node.js 4.x and 9.x
|
||||
This library is no longer tested against versions 4.x and 9.x of Node.js. Please upgrade to the latest supported LTS version!
|
||||
|
||||
#### Return type of `instance()` and `project()` has changed
|
||||
The `instance()` and `project()` methods are much more selective about which properties they will accept.
|
||||
|
||||
The only accepted properties are `params` and `properties`. The `instance()` and `project()` methods also now directly return the data instead of a response object.
|
||||
|
||||
#### Changes in how large number valued properties are handled
|
||||
|
||||
Previously large number-valued properties were being silently losing precision when
|
||||
returned by this library (as a number). In the cases where a number valued property
|
||||
returned by the metadata service is too large to represent as a JavaScript number, we
|
||||
will now return the value as a BigNumber (from the bignumber.js) library. Numbers that
|
||||
do fit into the JavaScript number range will continue to be returned as numbers.
|
||||
For more details see [#74](https://github.com/googleapis/gcp-metadata/pull/74).
|
||||
|
||||
### Breaking Changes
|
||||
- chore: drop support for node.js 4 and 9 ([#68](https://github.com/googleapis/gcp-metadata/pull/68))
|
||||
- fix: quarantine axios config ([#62](https://github.com/googleapis/gcp-metadata/pull/62))
|
||||
|
||||
### Implementation Changes
|
||||
- fix: properly handle large numbers in responses ([#74](https://github.com/googleapis/gcp-metadata/pull/74))
|
||||
|
||||
### Dependencies
|
||||
- chore(deps): update dependency pify to v4 ([#73](https://github.com/googleapis/gcp-metadata/pull/73))
|
||||
|
||||
### Internal / Testing Changes
|
||||
- Move to the new github org ([#84](https://github.com/googleapis/gcp-metadata/pull/84))
|
||||
- Update CI config ([#83](https://github.com/googleapis/gcp-metadata/pull/83))
|
||||
- Retry npm install in CI ([#81](https://github.com/googleapis/gcp-metadata/pull/81))
|
||||
- Update CI config ([#79](https://github.com/googleapis/gcp-metadata/pull/79))
|
||||
- chore(deps): update dependency nyc to v13 ([#77](https://github.com/googleapis/gcp-metadata/pull/77))
|
||||
- add key for system tests
|
||||
- increase kitchen test timeout
|
||||
- add a lint npm script
|
||||
- update npm scripts
|
||||
- add a synth file and run it ([#75](https://github.com/googleapis/gcp-metadata/pull/75))
|
||||
- chore(deps): update dependency assert-rejects to v1 ([#72](https://github.com/googleapis/gcp-metadata/pull/72))
|
||||
- chore: ignore package-log.json ([#71](https://github.com/googleapis/gcp-metadata/pull/71))
|
||||
- chore: update renovate config ([#70](https://github.com/googleapis/gcp-metadata/pull/70))
|
||||
- test: throw on deprecation
|
||||
- chore(deps): update dependency typescript to v3 ([#67](https://github.com/googleapis/gcp-metadata/pull/67))
|
||||
- chore: make it OSPO compliant ([#66](https://github.com/googleapis/gcp-metadata/pull/66))
|
||||
- chore(deps): update dependency gts to ^0.8.0 ([#65](https://github.com/googleapis/gcp-metadata/pull/65))
|
202
node_modules/gcp-metadata/LICENSE
generated
vendored
Normal file
202
node_modules/gcp-metadata/LICENSE
generated
vendored
Normal file
@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
65
node_modules/gcp-metadata/README.md
generated
vendored
Normal file
65
node_modules/gcp-metadata/README.md
generated
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
# gcp-metadata
|
||||
> Get the metadata from a Google Cloud Platform environment.
|
||||
|
||||
[![NPM Version][npm-image]][npm-url]
|
||||
[![codecov][codecov-image]][codecov-url]
|
||||
|
||||
```sh
|
||||
$ npm install --save gcp-metadata
|
||||
```
|
||||
```js
|
||||
const gcpMetadata = require('gcp-metadata');
|
||||
```
|
||||
|
||||
#### Check to see if the metadata server is available
|
||||
```js
|
||||
const isAvailable = await gcpMetadata.isAvailable();
|
||||
```
|
||||
|
||||
#### Access all metadata
|
||||
```js
|
||||
const data = await gcpMetadata.instance();
|
||||
console.log(data); // ... All metadata properties
|
||||
```
|
||||
|
||||
#### Access specific properties
|
||||
```js
|
||||
const data = await gcpMetadata.instance('hostname');
|
||||
console.log(data) // ...Instance hostname
|
||||
```
|
||||
|
||||
#### Access specific properties with query parameters
|
||||
```js
|
||||
const data = await gcpMetadata.instance({
|
||||
property: 'tags',
|
||||
params: { alt: 'text' }
|
||||
});
|
||||
console.log(data) // ...Tags as newline-delimited list
|
||||
```
|
||||
|
||||
#### Access with custom headers
|
||||
```js
|
||||
await gcpMetadata.instance({
|
||||
headers: { 'no-trace': '1' }
|
||||
}); // ...Request is untraced
|
||||
```
|
||||
|
||||
### Take care with large number valued properties
|
||||
|
||||
In some cases number valued properties returned by the Metadata Service may be
|
||||
too large to be representable as JavaScript numbers. In such cases we return
|
||||
those values as `BigNumber` objects (from the [bignumber.js][] library). Numbers
|
||||
that fit within the JavaScript number range will be returned as normal number
|
||||
values.
|
||||
|
||||
```js
|
||||
const id = await gcpMetadata.instance('id');
|
||||
console.log(id) // ... BigNumber { s: 1, e: 18, c: [ 45200, 31799277581759 ] }
|
||||
console.log(id.toString()) // ... 4520031799277581759
|
||||
```
|
||||
|
||||
[bignumber.js]: https://github.com/MikeMcl/bignumber.js
|
||||
[codecov-image]: https://codecov.io/gh/googleapis/gcp-metadata/branch/master/graph/badge.svg
|
||||
[codecov-url]: https://codecov.io/gh/googleapis/gcp-metadata
|
||||
[npm-image]: https://img.shields.io/npm/v/gcp-metadata.svg
|
||||
[npm-url]: https://www.npmjs.com/package/gcp-metadata
|
29
node_modules/gcp-metadata/build/src/index.d.ts
generated
vendored
Normal file
29
node_modules/gcp-metadata/build/src/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Copyright 2018 Google LLC
|
||||
*
|
||||
* Distributed under MIT license.
|
||||
* See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||
*/
|
||||
/// <reference types="node" />
|
||||
import { OutgoingHttpHeaders } from 'http';
|
||||
export declare const HOST_ADDRESS = "http://metadata.google.internal.";
|
||||
export declare const BASE_PATH = "/computeMetadata/v1";
|
||||
export declare const BASE_URL: string;
|
||||
export declare const HEADER_NAME = "Metadata-Flavor";
|
||||
export declare const HEADER_VALUE = "Google";
|
||||
export declare const HEADERS: Readonly<{
|
||||
[HEADER_NAME]: string;
|
||||
}>;
|
||||
export interface Options {
|
||||
params?: {
|
||||
[index: string]: string;
|
||||
};
|
||||
property?: string;
|
||||
headers?: OutgoingHttpHeaders;
|
||||
}
|
||||
export declare function instance<T = any>(options?: string | Options): Promise<T>;
|
||||
export declare function project<T = any>(options?: string | Options): Promise<T>;
|
||||
/**
|
||||
* Determine if the metadata server is currently available.
|
||||
*/
|
||||
export declare function isAvailable(): Promise<boolean>;
|
109
node_modules/gcp-metadata/build/src/index.js
generated
vendored
Normal file
109
node_modules/gcp-metadata/build/src/index.js
generated
vendored
Normal file
@ -0,0 +1,109 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2018 Google LLC
|
||||
*
|
||||
* Distributed under MIT license.
|
||||
* See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const gaxios_1 = require("gaxios");
|
||||
const jsonBigint = require('json-bigint');
|
||||
exports.HOST_ADDRESS = 'http://metadata.google.internal.';
|
||||
exports.BASE_PATH = '/computeMetadata/v1';
|
||||
exports.BASE_URL = exports.HOST_ADDRESS + exports.BASE_PATH;
|
||||
exports.HEADER_NAME = 'Metadata-Flavor';
|
||||
exports.HEADER_VALUE = 'Google';
|
||||
exports.HEADERS = Object.freeze({ [exports.HEADER_NAME]: exports.HEADER_VALUE });
|
||||
// Accepts an options object passed from the user to the API. In previous
|
||||
// versions of the API, it referred to a `Request` or an `Axios` request
|
||||
// options object. Now it refers to an object with very limited property
|
||||
// names. This is here to help ensure users don't pass invalid options when
|
||||
// they upgrade from 0.4 to 0.5 to 0.8.
|
||||
function validate(options) {
|
||||
Object.keys(options).forEach(key => {
|
||||
switch (key) {
|
||||
case 'params':
|
||||
case 'property':
|
||||
case 'headers':
|
||||
break;
|
||||
case 'qs':
|
||||
throw new Error(`'qs' is not a valid configuration option. Please use 'params' instead.`);
|
||||
default:
|
||||
throw new Error(`'${key}' is not a valid configuration option.`);
|
||||
}
|
||||
});
|
||||
}
|
||||
async function metadataAccessor(type, options, noResponseRetries = 3) {
|
||||
options = options || {};
|
||||
if (typeof options === 'string') {
|
||||
options = { property: options };
|
||||
}
|
||||
let property = '';
|
||||
if (typeof options === 'object' && options.property) {
|
||||
property = '/' + options.property;
|
||||
}
|
||||
validate(options);
|
||||
try {
|
||||
const res = await gaxios_1.request({
|
||||
url: `${exports.BASE_URL}/${type}${property}`,
|
||||
headers: Object.assign({}, exports.HEADERS, options.headers),
|
||||
retryConfig: { noResponseRetries },
|
||||
params: options.params,
|
||||
responseType: 'text',
|
||||
});
|
||||
// NOTE: node.js converts all incoming headers to lower case.
|
||||
if (res.headers[exports.HEADER_NAME.toLowerCase()] !== exports.HEADER_VALUE) {
|
||||
throw new Error(`Invalid response from metadata service: incorrect ${exports.HEADER_NAME} header.`);
|
||||
}
|
||||
else if (!res.data) {
|
||||
throw new Error('Invalid response from the metadata service');
|
||||
}
|
||||
if (typeof res.data === 'string') {
|
||||
try {
|
||||
return jsonBigint.parse(res.data);
|
||||
}
|
||||
catch (_a) {
|
||||
/* ignore */
|
||||
}
|
||||
}
|
||||
return res.data;
|
||||
}
|
||||
catch (e) {
|
||||
if (e.response && e.response.status !== 200) {
|
||||
e.message = `Unsuccessful response status code. ${e.message}`;
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
// tslint:disable-next-line no-any
|
||||
function instance(options) {
|
||||
return metadataAccessor('instance', options);
|
||||
}
|
||||
exports.instance = instance;
|
||||
// tslint:disable-next-line no-any
|
||||
function project(options) {
|
||||
return metadataAccessor('project', options);
|
||||
}
|
||||
exports.project = project;
|
||||
/**
|
||||
* Determine if the metadata server is currently available.
|
||||
*/
|
||||
async function isAvailable() {
|
||||
try {
|
||||
// Attempt to read instance metadata. As configured, this will
|
||||
// retry 3 times if there is a valid response, and fail fast
|
||||
// if there is an ETIMEDOUT or ENOTFOUND error.
|
||||
await metadataAccessor('instance', undefined, 0);
|
||||
return true;
|
||||
}
|
||||
catch (err) {
|
||||
// Failure to resolve the metadata service means that it is not available.
|
||||
if (err.code && (err.code === 'ENOTFOUND' || err.code === 'ENOENT')) {
|
||||
return false;
|
||||
}
|
||||
// Throw unexpected errors.
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
exports.isAvailable = isAvailable;
|
||||
//# sourceMappingURL=index.js.map
|
1
node_modules/gcp-metadata/build/src/index.js.map
generated
vendored
Normal file
1
node_modules/gcp-metadata/build/src/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,mCAA+B;AAE/B,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAE7B,QAAA,YAAY,GAAG,kCAAkC,CAAC;AAClD,QAAA,SAAS,GAAG,qBAAqB,CAAC;AAClC,QAAA,QAAQ,GAAG,oBAAY,GAAG,iBAAS,CAAC;AACpC,QAAA,WAAW,GAAG,iBAAiB,CAAC;AAChC,QAAA,YAAY,GAAG,QAAQ,CAAC;AACxB,QAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAC,CAAC,mBAAW,CAAC,EAAE,oBAAY,EAAC,CAAC,CAAC;AAQpE,yEAAyE;AACzE,wEAAwE;AACxE,yEAAyE;AACzE,2EAA2E;AAC3E,wCAAwC;AACxC,SAAS,QAAQ,CAAC,OAAgB;IAChC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AA2B;QAC3B,MAAM,GAAG,CAAC;KACX;AACH,CAAC;AAfD,kCAeC"}
|
106
node_modules/gcp-metadata/package.json
generated
vendored
Normal file
106
node_modules/gcp-metadata/package.json
generated
vendored
Normal file
@ -0,0 +1,106 @@
|
||||
{
|
||||
"_from": "gcp-metadata@^2.0.0",
|
||||
"_id": "gcp-metadata@2.0.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-dxPXBvjyfz5qFEBXzEwNmuZXwsGYfuASGYeg3CKZDaQRXdiWti9J3/Ezmtyon1OrCNpDO2YekyoSjEqMtsrcXw==",
|
||||
"_location": "/gcp-metadata",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "gcp-metadata@^2.0.0",
|
||||
"name": "gcp-metadata",
|
||||
"escapedName": "gcp-metadata",
|
||||
"rawSpec": "^2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/google-auth-library"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-2.0.2.tgz",
|
||||
"_shasum": "6b391c531cdd0c1d1ebde35050fdaaf5462aa544",
|
||||
"_spec": "gcp-metadata@^2.0.0",
|
||||
"_where": "C:\\Users\\matia\\Documents\\GitHub\\FutoX-Musix\\node_modules\\google-auth-library",
|
||||
"author": {
|
||||
"name": "Stephen Sawchuk"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/googleapis/gcp-metadata/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"gaxios": "^2.0.1",
|
||||
"json-bigint": "^0.3.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Get the metadata from a Google Cloud Platform environment",
|
||||
"devDependencies": {
|
||||
"@compodoc/compodoc": "^1.1.10",
|
||||
"@types/mocha": "^5.2.7",
|
||||
"@types/ncp": "^2.0.1",
|
||||
"@types/nock": "^10.0.3",
|
||||
"@types/node": "^12.7.2",
|
||||
"@types/tmp": "0.1.0",
|
||||
"@types/uuid": "^3.4.5",
|
||||
"assert-rejects": "^1.0.0",
|
||||
"c8": "^5.0.1",
|
||||
"codecov": "^3.5.0",
|
||||
"eslint": "^6.1.0",
|
||||
"eslint-config-prettier": "^6.0.0",
|
||||
"eslint-plugin-node": "^9.1.0",
|
||||
"eslint-plugin-prettier": "^3.1.0",
|
||||
"gcbuild": "^1.3.4",
|
||||
"gcx": "^0.2.4",
|
||||
"googleapis": "^42.0.0",
|
||||
"gts": "^1.1.0",
|
||||
"linkinator": "^1.5.0",
|
||||
"mocha": "^6.2.0",
|
||||
"ncp": "^2.0.0",
|
||||
"nock": "^11.0.0",
|
||||
"prettier": "^1.18.2",
|
||||
"source-map-support": "^0.5.13",
|
||||
"typescript": "^3.5.3",
|
||||
"uuid": "^3.3.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.10.0"
|
||||
},
|
||||
"files": [
|
||||
"build/src"
|
||||
],
|
||||
"homepage": "https://github.com/googleapis/gcp-metadata#readme",
|
||||
"keywords": [
|
||||
"google cloud platform",
|
||||
"google cloud",
|
||||
"google",
|
||||
"app engine",
|
||||
"compute engine",
|
||||
"metadata server",
|
||||
"metadata"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"main": "./build/src/index.js",
|
||||
"name": "gcp-metadata",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/googleapis/gcp-metadata.git"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "gts clean",
|
||||
"compile": "tsc -p .",
|
||||
"docs": "compodoc src/",
|
||||
"docs-test": "linkinator docs",
|
||||
"fix": "gts fix && eslint --fix '**/*.js'",
|
||||
"lint": "gts check && eslint '**/*.js'",
|
||||
"predocs-test": "npm run docs",
|
||||
"prepare": "npm run compile",
|
||||
"presystem-test": "npm run compile",
|
||||
"pretest": "npm run compile",
|
||||
"samples-test": "npm link && cd samples/ && npm link ../ && npm test && cd ../",
|
||||
"system-test": "mocha build/system-test --timeout 600000",
|
||||
"test": "c8 mocha build/test"
|
||||
},
|
||||
"types": "./build/src/index.d.ts",
|
||||
"version": "2.0.2"
|
||||
}
|
Reference in New Issue
Block a user