@nx/key 1.3.0-beta.7 → 1.3.0-beta.9
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/LICENSE +50 -26
- package/index.js +1 -1
- package/native.d.ts +1 -0
- package/native.js +1 -1
- package/nx_key.wasm32-wasi.wasm +0 -0
- package/package.json +10 -10
- package/request.js +1 -1
- package/src/auto-register.js +1 -1
- package/src/output.js +1 -1
- package/src/version.js +1 -1
package/LICENSE
CHANGED
@@ -1,26 +1,50 @@
|
|
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
|
-
|
1
|
+
SELF-HOSTED CACHE PLUGINS END USER LICENSE AGREEMENT
|
2
|
+
|
3
|
+
Effective March 5th, 2025
|
4
|
+
|
5
|
+
This Nx End User License Agreement (the "Agreement") governs your use of our suite of Self-hosted cache plugins (the "Software"). To make this Agreement easier to read, the terms "Nx," "we," and "us" refers to Narwhal Technologies, Inc., and the term "you" refers to you and any organization that you are acting on behalf of in signing up for a subscription to the Software. If you are an individual acting on behalf of an entity, you represent and warrant that you have the authority to enter into this Agreement on behalf of that entity and to legally bind that entity. If you do not accept the terms of this Agreement, then you must not use the Software.
|
6
|
+
|
7
|
+
1. Definitions
|
8
|
+
(a) "Nx IP" means the Software, algorithms, technology, databases, tools, know-how or processes used to provide or deliver the Software or any related services, and its documentation ("Documentation"), all improvements, modifications or derivative works of the foregoing (regardless of authorship), and all intellectual property rights ("IPR") in any of the foregoing.
|
9
|
+
|
10
|
+
(b) "Authorized Users" means your employees or contributors who are permitted to use the Software on your behalf in accordance with this Agreement.
|
11
|
+
|
12
|
+
2. License
|
13
|
+
(a) License. Subject to the terms and conditions of this Agreement (including receipt of the Activation Key), Nx hereby grants you a worldwide, non-exclusive, non-transferable (except in compliance with Section 12), non-sublicensable license to download and install the Software on premises owned or controlled by you, and run the Software solely for your internal business purposes (the "Purpose") in accordance with the Documentation. You have the right to permit your Authorized Users to use the Software on your behalf for the Purpose in accordance with this Agreement; provided, however, that you will remain fully and directly liable to Nx for any and all use of the Software by Authorized Users as if such use was by you yourself under this Agreement. Nothing in this Agreement will operate to grant you any right, title or interest, whether by implication, estoppel or otherwise, in or to the Nx IP, other than as expressly set forth herein. As between Nx and you, Nx will exclusively own all right, title and interest in and to the Nx IP.
|
14
|
+
(b) Use Restrictions. You will not at any time, directly or indirectly, and will not permit any person or entity (collectively, "Person") (including, without limitation, your Authorized Users) to: (i) copy, modify or create derivative works of the Software or Documentation, in whole or in part; (ii) reverse engineer, disassemble, decompile, decode or otherwise attempt to derive or gain improper access to any software component of the Software, in whole or in part; (iii) frame, mirror, sell, resell, rent or lease the use of the Software, Activation Key or Documentation to any other Person, or otherwise use or allow any Person to use the Software, Activation Key or Documentation for any purpose other than for your benefit for the Purpose in accordance with this Agreement; (iv) create any script or other automated tool that attempts to create multiple Activation Keys; (v) use the Software or Activation Key in any infringing or unlawful manner; or (vi) use the Software, Documentation or any other Confidential Information of Nx for competitive analysis or benchmarking purposes, or to otherwise develop, commercialize, license or sell any product, service or technology that could, directly or indirectly, compete with the Nx IP.
|
15
|
+
(c) Authorized equipment. You will bear the sole responsibility for obtaining and maintaining the hardware and any computer systems, networks, telecommunications systems, Internet access, third party services or any other materials required to meet the minimum technical and operational requirements required to operate the Software.
|
16
|
+
|
17
|
+
3. Activation key
|
18
|
+
To use the Software, you are required to obtain a free activation key by completing the registration form available at https://cloud.nx.app/self-hosted-cache/activation ("Activation Key"). You are liable for any actions or inactions performed under your Activation Key.
|
19
|
+
|
20
|
+
By registering for an Activation Key, you acknowledge that Nx may collect information about plugin adoption patterns across different development environments and organization scales. This information helps inform our feature roadmap for the Software. Nx keeps your information strictly confidential, and it is never shared with third parties.
|
21
|
+
|
22
|
+
4. Confidential information
|
23
|
+
"Confidential Information" means any information that one party (the "Disclosing Party") provides to the other party (the "Receiving Party") in connection with this Agreement, whether orally or in writing, that is designated as confidential or that reasonably should be considered to be confidential given the nature of the information and/or the circumstances of disclosure. Confidential Information will not include any information that: (i) is or becomes generally known to the public through no fault or breach of this Agreement by the Receiving Party; (ii) is rightfully known by the Receiving Party at the time of disclosure without an obligation of confidentiality; (iii) is independently developed by the Receiving Party without access to or use of any Confidential Information of the Disclosing Party that can be evidenced in writing; or (iv) is rightfully obtained by the Receiving Party from a third-party without restriction on use or disclosure. For clarity, the Software and the Documentation will be deemed Confidential Information of Nx. The Receiving Party will not use or disclose any Confidential Information of the Disclosing Party except as necessary to perform its obligations or exercise its rights under this Agreement. The Receiving Party may disclose Confidential Information of the Disclosing Party only: (A) to those of its employees, contractors, agents and advisors who have a bona fide need to know such Confidential Information to perform under this Agreement and who are bound by written agreements with use and nondisclosure restrictions at least as protective of the Confidential Information as those set forth in this Agreement, or (B) as such disclosure may be required by the order or requirement of a court, administrative agency or other governmental body, subject to the Receiving Party providing to the Disclosing Party reasonable written notice to allow the Disclosing Party to seek a protective order or otherwise contest the disclosure.
|
24
|
+
|
25
|
+
5. Policies
|
26
|
+
You hereby acknowledge that you have reviewed and agreed to the Nx Privacy Policy at https://cloud.nx.app/privacy. Such policy is hereby incorporated into and is hereby deemed a part of this Agreement, binding upon you and your Authorized Users with respect to your and their use of the Software in connection with this Agreement.
|
27
|
+
|
28
|
+
6. Feedback
|
29
|
+
From time-to-time you or your Authorized Users may provide Nx with feedback with regard to the Software. You, on behalf of yourself and your Authorized Users, hereby grant Nx a perpetual, irrevocable, royalty-free and fully-paid up license to use and exploit all such feedback in connection with Nx’s business purposes.
|
30
|
+
|
31
|
+
7. Indemnification
|
32
|
+
(a) Nx Indemnification. Nx will defend and pay all damages finally awarded against you pursuant to a final, valid and binding judgment or order, or a final settlement agreement with respect to any claim, suit or proceeding brought by a third party against you arising from the Software’s infringement of such third-party’s IPR. The foregoing obligation will not apply if the underlying third-party claim arises from (i) your breach of this Agreement, negligence, willful misconduct or fraud; (ii) modifications to the Software by anyone other than Nx; or (iii) combinations of the Software of with software, data or materials not provided by Nx. If Nx reasonably believes the Software (or any component) could infringe any third party’s IPR, Nx may, at its sole option and expense: (A) procure the right for you to continue using the Software (or any infringing component) to make it non-infringing without materially reducing its functionality; or (B) replace the Software (or any infringing component) with a non-infringing alternative that is functionally equivalent in all material respects. If the foregoing remedies are not available to Nx on commercially reasonable terms, then Nx may terminate your use of the Software upon notice to you.
|
33
|
+
(b) Your Indemnification. You will defend and pay all damages finally awarded against Nx pursuant to a final, valid and binding judgment or order or a final settlement agreement with respect to any claim, suit or proceeding brought by a third party against Nx arising from any breach of the restrictions set forth in Section 2(b).
|
34
|
+
(c) Indemnification Procedures. The party seeking defense and indemnity (the "Indemnified Party") will promptly notify the other party (the "Indemnifying Party") of any and all such claims and will reasonably cooperate with the Indemnifying Party with the defense and/or settlement thereof. The Indemnifying Party will have the sole right to conduct the defense of any claim for which the Indemnifying Party is responsible hereunder (provided that the Indemnifying Party may not settle any claim without the Indemnified Party’s prior written approval unless the settlement unconditionally releases the Indemnified Party from all liability, does not require any admission by the Indemnified Party, and does not place restrictions upon the Indemnified Party’s business). The Indemnified Party may participate in the defense or settlement of any such claim at its own expense and with its own choice of counsel or, if the Indemnifying Party refuses to fulfill its obligation of defense, the Indemnified Party may defend itself and seek reimbursement from the Indemnifying Party.
|
35
|
+
|
36
|
+
8. Disclaimers
|
37
|
+
THE SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, AND NX MAKES NO WARRANTIES OR REPRESENTATIONS TO YOU, YOUR AUTHORIZED USERS OR TO ANY OTHER PERSON REGARDING THE SOFTWARE. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, NX HEREBY DISCLAIMS (a) ALL WARRANTIES AND REPRESENTATIONS, WHETHER EXPRESS OR IMPLIED AND (b) ANY WARRANTY THAT USE OF THE SOFTWARE WILL BE ERROR-FREE.
|
38
|
+
|
39
|
+
9. Limitations of liability
|
40
|
+
EXCEPT FOR A PARTY'S GROSS NEGLIGENCE, WILLFUL MISCONDUCT OR FRAUD, IN NO EVENT WILL (a) EITHER PARTY BE LIABLE TO THE OTHER PARTY FOR ANY INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOSS OF INCOME, DATA, PROFITS, REVENUE OR BUSINESS INTERRUPTION, OR THE COST OF SUBSTITUTE SERVICES OR OTHER ECONOMIC LOSS, ARISING OUT OF OR IN CONNECTION WITH THIS AGREEMENT, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED ON CONTRACT, WARRANTY, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, AND WHETHER OR NOT SUCH PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE AND (b) NX'S TOTAL LIABILITY TO YOU, YOUR AUTHORIZED USERS OR ANY OTHER PERSON IN CONNECTION WITH THIS AGREEMENT OR THE PROVISION OF THE SOFTWARE EXCEED THE FEES ACTUALLY PAID BY YOU TO NX IN THE 12 MONTH PERIOD PRECEDING THE ACTION GIVING RISE TO SUCH LIABILITY.
|
41
|
+
|
42
|
+
10. Term and termination
|
43
|
+
(a) Term; Termination. The term of this Agreement will begin when you download the Software and obtain an Activation Key, and will continue until terminated by either party. Either party may terminate this Agreement, effective on written notice to the other party, if the other party materially breaches this Agreement, and such breach: (A) is incapable of cure; or (B) being capable of cure, remains uncured thirty (30) days after the non-breaching party provides the breaching party with written notice of such breach.
|
44
|
+
(b) Effect of Termination; Survival. Upon termination of this Agreement, your right to use the Software will immediately terminate and you shall cease using the Software, including for example, by permanently removing the Software dependency. This Section 10(b) and Sections 2(b), 3, 4, 5 (first sentence), 6 – 9 and 12 survive any termination of this Agreement.
|
45
|
+
|
46
|
+
11. Trademarks
|
47
|
+
You hereby grant Nx a limited, non-exclusive, royalty-free license to use and display your name, designated trademarks and associated logos ("Your Marks") during the Term in connection with Nx’s marketing and promotional efforts for its products and services, including by publicly naming you as a user of Nx. Nx will conform to and observe the trademark standards as you prescribe from time to time. All goodwill generated by Nx’s use of Your Marks inures to your benefit.
|
48
|
+
|
49
|
+
12. Miscellaneous
|
50
|
+
This Agreement is the complete and exclusive agreement between the parties with respect to its subject matter and supersedes all prior or contemporaneous agreements, communications and understandings, both written and oral, with respect to its subject matter. This Agreement may be amended or modified only by a written document assented by duly authorized representatives of the parties. Nx may perform an audit of your use of the Software once per year in connection with your compliance with this Agreement. Nx may provide notices to you by posting them on our website, by providing electronic notification via the Software, or by email to the address associated with your account. All notices are effective upon posting or when delivered. Except as otherwise set forth herein, either party's failure to enforce any provision of this Agreement will not constitute a waiver of future enforcement of that or any other provision. No waiver of any provision of this Agreement will be effective unless it is in writing and signed by the party granting the waiver. If any provision of this Agreement is held invalid, illegal or unenforceable, that provision will be enforced to the maximum extent permitted by law, and the remaining provisions of this Agreement will remain in full force and effect. This Agreement will be governed by and construed in accordance with the laws of the State of California without giving effect to any principles of conflict of laws that would lead to the application of the laws of another jurisdiction. Any legal action or proceeding arising under this Agreement will be brought exclusively in the federal or state courts located in the Northern District of California and the parties irrevocably consent to the personal jurisdiction and venue therein. Nx may freely assign its rights and obligations under this Agreement. You may not assign or transfer this Agreement, by operation of law or otherwise, without Nx's prior written consent; provided, however, that you may assign your rights or delegate your obligations, in whole or in part, without such consent, to (i) one or more of your affiliates, or (ii) a third party that succeeds to all or substantially all of your business and assets relating to the subject matter of this Agreement, whether by sale, merger, operation of law or otherwise. Any attempt to assign or transfer this Agreement without such consent will be void. Subject to the foregoing, this Agreement is binding upon and will inure to the benefit of each of the parties and their respective successors and permitted assigns. Unless otherwise expressly provided, no provisions of this Agreement are intended or will be construed to confer upon or give to any person or entity, other than the parties, any rights, remedies or other benefits under or by reason of this Agreement.
|
package/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a0_0x140c17=a0_0x3663;(function(_0x3d986a,_0x5eb45c){const _0x56f7c9=a0_0x3663,_0x2946c6=_0x3d986a();while(!![]){try{const _0x1c9e4b=parseInt(_0x56f7c9(0x159))/0x1+parseInt(_0x56f7c9(0x147))/0x2+parseInt(_0x56f7c9(0x132))/0x3*(parseInt(_0x56f7c9(0x170))/0x4)+-parseInt(_0x56f7c9(0x151))/0x5+parseInt(_0x56f7c9(0x142))/0x6+-parseInt(_0x56f7c9(0x161))/0x7*(parseInt(_0x56f7c9(0x12f))/0x8)+-parseInt(_0x56f7c9(0x17a))/0x9;if(_0x1c9e4b===_0x5eb45c)break;else _0x2946c6['push'](_0x2946c6['shift']());}catch(_0x5c370d){_0x2946c6['push'](_0x2946c6['shift']());}}}(a0_0x5a52,0x3ba91));let e;Object[a0_0x140c17(0x149)](exports,a0_0x140c17(0x14e),{'value':!0x0}),exports['assertFeaturePermission']=void 0x0,exports['autoRegisterNxKey']=function(_0x127035){return(0x0,m['autoRegisterNxKey'])(_0x127035);},exports[a0_0x140c17(0x17b)]=function(_0x22f141,_0x313f73){p(_0x22f141,_0x313f73);},exports['activateNxKey']=p,exports[a0_0x140c17(0x153)]=function(_0x359484){return v(_0x359484);},exports['getNxKeyInformationAsync']=v,exports['getPowerpackLicenseInformation']=function(_0x130471){return k(_0x130471);},exports[a0_0x140c17(0x150)]=k;const n=require('node:child_process'),r=require(a0_0x140c17(0x160)),i=require(a0_0x140c17(0x14f)),t=require('fs'),o=require(a0_0x140c17(0x16a)),s=require(a0_0x140c17(0x134)),a=require(a0_0x140c17(0x163)),u=require(a0_0x140c17(0x171)),x=new Set([a0_0x140c17(0x145),a0_0x140c17(0x136),a0_0x140c17(0x146),'@nx/key-win32-ia32-msvc',a0_0x140c17(0x15e),'@nx/key-darwin-universal',a0_0x140c17(0x157),a0_0x140c17(0x16f),a0_0x140c17(0x13c),a0_0x140c17(0x178),a0_0x140c17(0x137),a0_0x140c17(0x167),'@nx/key-linux-arm64-gnu','@nx/key-linux-arm-gnueabihf']),c=[a0_0x140c17(0x165),a0_0x140c17(0x143),a0_0x140c17(0x14c),a0_0x140c17(0x131),a0_0x140c17(0x13d),a0_0x140c17(0x133),a0_0x140c17(0x15d),'nx_key.darwin-arm64.node',a0_0x140c17(0x173),a0_0x140c17(0x148),a0_0x140c17(0x177),a0_0x140c17(0x176),a0_0x140c17(0x13f),a0_0x140c17(0x15f)],d=u['_load'];function _(_0xe06545,_0x532ac8,_0x48dbc9){const _0x311d9c=a0_0x140c17;if(!(x[_0x311d9c(0x16d)](_0xe06545)||c[_0x311d9c(0x164)](_0x298f42=>_0xe06545['endsWith'](_0x298f42))))return d['apply'](this,arguments);{let _0x5cfe7a=require[_0x311d9c(0x14d)](_0xe06545),_0x19d671=(0x0,s[_0x311d9c(0x135)])(_0x5cfe7a),_0x58ccaf=(function(){const _0x4aa329=_0x311d9c;if(process[_0x4aa329(0x154)][_0x4aa329(0x15a)])return process['env']['NX_NATIVE_FILE_CACHE_DIRECTORY'];{let _0x1f487c=(0x0,o[_0x4aa329(0x144)])(_0x4aa329(0x14a));e&&_0x1f487c[_0x4aa329(0x166)](e);try{_0x1f487c[_0x4aa329(0x166)]((0x0,r[_0x4aa329(0x14b)])()[_0x4aa329(0x15c)]);}catch(_0x1051f8){}return(0x0,s[_0x4aa329(0x13b)])((0x0,r[_0x4aa329(0x172)])(),_0x4aa329(0x13e)+_0x1f487c[_0x4aa329(0x179)]('hex')[_0x4aa329(0x175)](0x0,0x7));}}());void 0x0!==process[_0x311d9c(0x154)][_0x311d9c(0x16e)]&&console['debug']('native\x20file\x20cache\x20location:\x20',_0x58ccaf);let _0x1915bb=(0x0,s['join'])(_0x58ccaf,a[_0x311d9c(0x174)]+'-'+_0x19d671);return(0x0,t[_0x311d9c(0x169)])(_0x1915bb)||((0x0,t['existsSync'])(_0x58ccaf)||(0x0,t[_0x311d9c(0x156)])(_0x58ccaf,{'recursive':!0x0}),(0x0,t[_0x311d9c(0x15b)])(_0x5cfe7a,_0x1915bb)),d['apply'](this,[_0x1915bb,_0x532ac8,_0x48dbc9]);}}function a0_0x3663(_0x31af17,_0x3e2293){const _0x5a52d1=a0_0x5a52();return a0_0x3663=function(_0x3663f0,_0x3438e3){_0x3663f0=_0x3663f0-0x12f;let _0x47a071=_0x5a52d1[_0x3663f0];return _0x47a071;},a0_0x3663(_0x31af17,_0x3e2293);}const y=require[a0_0x140c17(0x14d)](a0_0x140c17(0x139));delete require['cache'][y];const l=require(a0_0x140c17(0x17c));Object[a0_0x140c17(0x149)](exports,a0_0x140c17(0x138),{'enumerable':!0x0,'get':function(){return l['assertFeaturePermission'];}}),module[a0_0x140c17(0x168)]['FeaturePermission']=l['FeaturePermission'];const m=require(a0_0x140c17(0x13a));function p(_0x34fa44,_0xf99dbd){const _0x121aa9=a0_0x140c17;e=_0x34fa44,u['_load']=_;let _0x39b035=require(_0x121aa9(0x139));return u[_0x121aa9(0x16b)]=d,_0x39b035[_0x121aa9(0x155)](a[_0x121aa9(0x130)],_0x34fa44,_0xf99dbd);}function v(_0x4114cc){const _0x18fd74=a0_0x140c17;e=_0x4114cc;let _0x52d305=(0x0,r['homedir'])();u[_0x18fd74(0x16b)]=_;let _0x33609e=require(_0x18fd74(0x139));return u['_load']=d,_0x33609e['getKeyInformationAsync'](a[_0x18fd74(0x130)],_0x4114cc,_0x52d305,i[_0x18fd74(0x162)]);}function k(_0x4b35a0){const _0x48a606=a0_0x140c17;e=_0x4b35a0;let _0x103fe7=(0x0,r['homedir'])();u['_load']=_;let _0x2eb16c=require(_0x48a606(0x139));return u[_0x48a606(0x16b)]=d,_0x2eb16c['getKeyInformation'](a['NX_MAJOR_VERSION'],_0x4b35a0,_0x103fe7,(_0x1f6291,_0x39b65e,_0x2cef91,_0x15eed6)=>{const _0x2b08a3=_0x48a606;try{return(0x0,n[_0x2b08a3(0x16c)])(_0x2b08a3(0x152),{'encoding':_0x2b08a3(0x158),'env':{...process['env'],'NX_CLOUD_ENDPOINT':_0x1f6291,'NX_CLOUD_ID':_0x39b65e??void 0x0,'NX_CLOUD_ACCESS_TOKEN':_0x2cef91??void 0x0,'NX_CLOUD_PERSONAL_ACCESS_TOKEN':_0x15eed6??void 0x0},'cwd':__dirname,'stdio':_0x2b08a3(0x140)})[_0x2b08a3(0x141)]();}catch(_0x105200){throw Error(_0x105200);}});}u[a0_0x140c17(0x16b)]=d;function a0_0x5a52(){const _0x529d71=['join','@nx/key-freebsd-x64','nx_key.win32-arm64-msvc.node','nx-native-file-cache-','nx_key.linux-arm64-gnu.node','pipe','trim','1323180XMZMQa','nx_key.android-arm-eabi.node','createHash','@nx/key-android-arm64','@nx/key-win32-x64-msvc','908212ZTypvl','nx_key.linux-x64-musl.node','defineProperty','sha256','userInfo','nx_key.win32-x64-msvc.node','resolve','__esModule','./request','getNxKeyInformation','2131425iNarig','node\x20./request.js\x20child','getPowerpackLicenseInformationAsync','env','activateNxKey','mkdirSync','@nx/key-darwin-x64','utf8','318628kgxRXf','NX_NATIVE_FILE_CACHE_DIRECTORY','copyFileSync','username','nx_key.darwin-x64.node','@nx/key-win32-arm64-msvc','nx_key.linux-arm-gnueabihf.node','node:os','1092623MASkiq','requestLicense','./src/version','some','nx_key.android-arm64.node','update','@nx/key-linux-arm64-musl','exports','existsSync','node:crypto','_load','execSync','has','NX_KEY_LOGGING','@nx/key-darwin-arm64','8FqMejA','module','tmpdir','nx_key.freebsd-x64.node','VERSION','substring','nx_key.linux-arm64-musl.node','nx_key.linux-x64-gnu.node','@nx/key-linux-x64-musl','digest','2165031QWXCZg','activatePowerpack','./native','8OLNmIz','NX_MAJOR_VERSION','nx_key.win32-ia32-msvc.node','111057PuARkz','nx_key.darwin-universal.node','path','basename','@nx/key-android-arm-eabi','@nx/key-linux-x64-gnu','assertFeaturePermission','./native.js','./src/auto-register'];a0_0x5a52=function(){return _0x529d71;};return a0_0x5a52();}
|
package/native.d.ts
CHANGED
package/native.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a1_0x4b3b37=a1_0x5b21;(function(_0x3cf128,_0x5bbbfc){const _0x5d6991=a1_0x5b21,_0x3ed517=_0x3cf128();while(!![]){try{const _0x18ee6e=-parseInt(_0x5d6991(0x1b5))/0x1*(-parseInt(_0x5d6991(0x19f))/0x2)+parseInt(_0x5d6991(0x1bb))/0x3*(parseInt(_0x5d6991(0x1a5))/0x4)+parseInt(_0x5d6991(0x1db))/0x5*(-parseInt(_0x5d6991(0x1a2))/0x6)+parseInt(_0x5d6991(0x198))/0x7*(parseInt(_0x5d6991(0x1de))/0x8)+parseInt(_0x5d6991(0x1d7))/0x9*(-parseInt(_0x5d6991(0x1c0))/0xa)+parseInt(_0x5d6991(0x1da))/0xb*(parseInt(_0x5d6991(0x1d1))/0xc)+-parseInt(_0x5d6991(0x1bd))/0xd;if(_0x18ee6e===_0x5bbbfc)break;else _0x3ed517['push'](_0x3ed517['shift']());}catch(_0xca4750){_0x3ed517['push'](_0x3ed517['shift']());}}}(a1_0x2f00,0xa02db));function a1_0x5b21(_0x19908a,_0x27e859){const _0x2f00fc=a1_0x2f00();return a1_0x5b21=function(_0x5b21f7,_0x22bc1a){_0x5b21f7=_0x5b21f7-0x197;let _0x184221=_0x2f00fc[_0x5b21f7];return _0x184221;},a1_0x5b21(_0x19908a,_0x27e859);}const {readFileSync:r}=require('fs');let e=null;const n=[],u=()=>{const _0x5837d3=a1_0x5b21;let _0x3a4a07=!0x1;return _0x5837d3(0x1c8)===process['platform']&&(null===(_0x3a4a07=t())&&(_0x3a4a07=c()),null===_0x3a4a07&&(_0x3a4a07=i())),_0x3a4a07;},s=_0x87c0ee=>_0x87c0ee[a1_0x4b3b37(0x1d4)](a1_0x4b3b37(0x1c1))||_0x87c0ee['includes'](a1_0x4b3b37(0x1bc)),t=()=>{const _0x1d4eea=a1_0x4b3b37;try{return r(_0x1d4eea(0x1aa),_0x1d4eea(0x1dc))[_0x1d4eea(0x1d4)](_0x1d4eea(0x19a));}catch{return null;}},c=()=>{const _0x1bc3f4=a1_0x4b3b37;let _0x471b76='function'==typeof process['report'][_0x1bc3f4(0x1d6)]?process[_0x1bc3f4(0x1d2)][_0x1bc3f4(0x1d6)]():null;return _0x471b76?(!_0x471b76[_0x1bc3f4(0x1c5)]||!_0x471b76[_0x1bc3f4(0x1c5)][_0x1bc3f4(0x1d3)])&&!!(Array[_0x1bc3f4(0x1eb)](_0x471b76[_0x1bc3f4(0x1af)])&&_0x471b76['sharedObjects'][_0x1bc3f4(0x1b1)](s)):null;},i=()=>{const _0x243d6a=a1_0x4b3b37;try{return require(_0x243d6a(0x1d8))[_0x243d6a(0x1b0)](_0x243d6a(0x1c6),{'encoding':_0x243d6a(0x1e6)})[_0x243d6a(0x1d4)](_0x243d6a(0x19a));}catch(_0x1a4ac9){return!0x1;}};function a1_0x2f00(){const _0x208e03=['/usr/bin/ldd','./nx_key.wasi.cjs','win32','s390x','@nx/key-freebsd-arm64','sharedObjects','execSync','some','Unsupported\x20architecture\x20on\x20macOS:\x20','@nx/key-linux-arm64-gnu','getKeyInformationAsync','19LcDxxE','platform','@nx/key-linux-arm64-musl','@nx/key-linux-riscv64-musl','length','push','989007KdYITF','ld-musl-','14233336uoRWvb','./nx_key.linux-riscv64-musl.node','assertFeaturePermission','340vnVPYm','libc.musl-','NAPI_RS_FORCE_WASI','env','./nx_key.win32-x64-msvc.node','header','ldd\x20--version','@nx/key-linux-arm-gnueabihf','linux','./nx_key.win32-ia32-msvc.node','./nx_key.linux-riscv64-gnu.node','./nx_key.linux-arm64-musl.node','error','exports','@nx/key-freebsd-x64','./nx_key.linux-ppc64-gnu.node','./nx_key.linux-arm-gnueabihf.node','12QEHWCI','report','glibcVersionRuntime','includes','./nx_key.darwin-x64.node','getReport','154161LIFqxb','child_process','arm','9306495XOCaYo','15mRNnHn','utf-8','@nx/key-linux-riscv64-gnu','8WbItnH','@nx/key-linux-x64-gnu','@nx/key-win32-x64-msvc','Failed\x20to\x20load\x20native\x20binding','@nx/key-win32-arm64-msvc','ppc64','getKeyInformation','./nx_key.freebsd-arm64.node','utf8','@nx/key-linux-ppc64-gnu','./nx_key.freebsd-x64.node','activateNxKey','x64','isArray','arm64','FeaturePermission','./nx_key.darwin-arm64.node','@nx/key-win32-ia32-msvc','@nx/key-linux-arm-musleabihf','./nx_key.linux-s390x-gnu.node','darwin','8046759Auvmwa','@nx/key-linux-s390x-gnu','musl','arch','./nx_key.darwin-universal.node','ia32','@nx/key-wasm32-wasi','69016tSbIXQ','android','Unsupported\x20architecture\x20on\x20Windows:\x20','1954446ZOZMVy','Unsupported\x20architecture\x20on\x20Linux:\x20','@nx/key-android-arm-eabi','8DRSffP','@nx/key-darwin-universal','./nx_key.linux-arm64-gnu.node','Unsupported\x20architecture\x20on\x20FreeBSD:\x20','@nx/key-linux-x64-musl'];a1_0x2f00=function(){return _0x208e03;};return a1_0x2f00();}if(!(e=(function(){const _0x5caad6=a1_0x4b3b37;if(_0x5caad6(0x1a0)===process['platform']){if(_0x5caad6(0x1ec)===process[_0x5caad6(0x19b)]){try{return require('./nx_key.android-arm64.node');}catch(_0x1f6be1){n[_0x5caad6(0x1ba)](_0x1f6be1);}try{return require('@nx/key-android-arm64');}catch(_0x299299){n[_0x5caad6(0x1ba)](_0x299299);}}else{if(_0x5caad6(0x1d9)===process[_0x5caad6(0x19b)]){try{return require('./nx_key.android-arm-eabi.node');}catch(_0x531042){n[_0x5caad6(0x1ba)](_0x531042);}try{return require(_0x5caad6(0x1a4));}catch(_0x1de670){n[_0x5caad6(0x1ba)](_0x1de670);}}else n[_0x5caad6(0x1ba)](Error('Unsupported\x20architecture\x20on\x20Android\x20'+process['arch']));}}else{if(_0x5caad6(0x1ac)===process[_0x5caad6(0x1b6)]){if('x64'===process[_0x5caad6(0x19b)]){try{return require(_0x5caad6(0x1c4));}catch(_0x5cff0e){n[_0x5caad6(0x1ba)](_0x5cff0e);}try{return require(_0x5caad6(0x1e0));}catch(_0x4185e5){n[_0x5caad6(0x1ba)](_0x4185e5);}}else{if(_0x5caad6(0x19d)===process[_0x5caad6(0x19b)]){try{return require(_0x5caad6(0x1c9));}catch(_0x2248e5){n[_0x5caad6(0x1ba)](_0x2248e5);}try{return require(_0x5caad6(0x1ef));}catch(_0x50446b){n[_0x5caad6(0x1ba)](_0x50446b);}}else{if(_0x5caad6(0x1ec)===process[_0x5caad6(0x19b)]){try{return require('./nx_key.win32-arm64-msvc.node');}catch(_0x2ad828){n['push'](_0x2ad828);}try{return require(_0x5caad6(0x1e2));}catch(_0x1659e9){n['push'](_0x1659e9);}}else n[_0x5caad6(0x1ba)](Error(_0x5caad6(0x1a1)+process[_0x5caad6(0x19b)]));}}}else{if(_0x5caad6(0x197)===process['platform']){try{return require(_0x5caad6(0x19c));}catch(_0x32620a){n[_0x5caad6(0x1ba)](_0x32620a);}try{return require(_0x5caad6(0x1a6));}catch(_0x5d5eae){n[_0x5caad6(0x1ba)](_0x5d5eae);}if(_0x5caad6(0x1ea)===process[_0x5caad6(0x19b)]){try{return require(_0x5caad6(0x1d5));}catch(_0x5680f8){n['push'](_0x5680f8);}try{return require('@nx/key-darwin-x64');}catch(_0x4d0e9d){n[_0x5caad6(0x1ba)](_0x4d0e9d);}}else{if(_0x5caad6(0x1ec)===process[_0x5caad6(0x19b)]){try{return require(_0x5caad6(0x1ee));}catch(_0xd6cf89){n[_0x5caad6(0x1ba)](_0xd6cf89);}try{return require('@nx/key-darwin-arm64');}catch(_0x57d3a9){n[_0x5caad6(0x1ba)](_0x57d3a9);}}else n[_0x5caad6(0x1ba)](Error(_0x5caad6(0x1b2)+process['arch']));}}else{if('freebsd'===process[_0x5caad6(0x1b6)]){if(_0x5caad6(0x1ea)===process[_0x5caad6(0x19b)]){try{return require(_0x5caad6(0x1e8));}catch(_0x4e1f13){n[_0x5caad6(0x1ba)](_0x4e1f13);}try{return require(_0x5caad6(0x1ce));}catch(_0xb0cbb1){n[_0x5caad6(0x1ba)](_0xb0cbb1);}}else{if(_0x5caad6(0x1ec)===process[_0x5caad6(0x19b)]){try{return require(_0x5caad6(0x1e5));}catch(_0xc95a78){n[_0x5caad6(0x1ba)](_0xc95a78);}try{return require(_0x5caad6(0x1ae));}catch(_0x97c005){n[_0x5caad6(0x1ba)](_0x97c005);}}else n[_0x5caad6(0x1ba)](Error(_0x5caad6(0x1a8)+process['arch']));}}else{if(_0x5caad6(0x1c8)===process[_0x5caad6(0x1b6)]){if(_0x5caad6(0x1ea)===process[_0x5caad6(0x19b)]){if(u()){try{return require('./nx_key.linux-x64-musl.node');}catch(_0x3c196b){n[_0x5caad6(0x1ba)](_0x3c196b);}try{return require(_0x5caad6(0x1a9));}catch(_0x599cb1){n[_0x5caad6(0x1ba)](_0x599cb1);}}else{try{return require('./nx_key.linux-x64-gnu.node');}catch(_0x5e51ff){n[_0x5caad6(0x1ba)](_0x5e51ff);}try{return require(_0x5caad6(0x1df));}catch(_0x153215){n['push'](_0x153215);}}}else{if(_0x5caad6(0x1ec)===process[_0x5caad6(0x19b)]){if(u()){try{return require(_0x5caad6(0x1cb));}catch(_0x45dee7){n['push'](_0x45dee7);}try{return require(_0x5caad6(0x1b7));}catch(_0x63ad50){n['push'](_0x63ad50);}}else{try{return require(_0x5caad6(0x1a7));}catch(_0x5096fd){n['push'](_0x5096fd);}try{return require(_0x5caad6(0x1b3));}catch(_0x340587){n[_0x5caad6(0x1ba)](_0x340587);}}}else{if(_0x5caad6(0x1d9)===process[_0x5caad6(0x19b)]){if(u()){try{return require('./nx_key.linux-arm-musleabihf.node');}catch(_0x3601cb){n[_0x5caad6(0x1ba)](_0x3601cb);}try{return require(_0x5caad6(0x1f0));}catch(_0x45720a){n['push'](_0x45720a);}}else{try{return require(_0x5caad6(0x1d0));}catch(_0x3359de){n[_0x5caad6(0x1ba)](_0x3359de);}try{return require(_0x5caad6(0x1c7));}catch(_0x14e8f7){n['push'](_0x14e8f7);}}}else{if('riscv64'===process[_0x5caad6(0x19b)]){if(u()){try{return require(_0x5caad6(0x1be));}catch(_0x374eb2){n['push'](_0x374eb2);}try{return require(_0x5caad6(0x1b8));}catch(_0x189ddc){n[_0x5caad6(0x1ba)](_0x189ddc);}}else{try{return require(_0x5caad6(0x1ca));}catch(_0x3c2507){n[_0x5caad6(0x1ba)](_0x3c2507);}try{return require(_0x5caad6(0x1dd));}catch(_0x3673ed){n[_0x5caad6(0x1ba)](_0x3673ed);}}}else{if(_0x5caad6(0x1e3)===process[_0x5caad6(0x19b)]){try{return require(_0x5caad6(0x1cf));}catch(_0x5167b6){n[_0x5caad6(0x1ba)](_0x5167b6);}try{return require(_0x5caad6(0x1e7));}catch(_0x191ff3){n[_0x5caad6(0x1ba)](_0x191ff3);}}else{if(_0x5caad6(0x1ad)===process[_0x5caad6(0x19b)]){try{return require(_0x5caad6(0x1f1));}catch(_0x21a896){n['push'](_0x21a896);}try{return require(_0x5caad6(0x199));}catch(_0x39649c){n[_0x5caad6(0x1ba)](_0x39649c);}}else n[_0x5caad6(0x1ba)](Error(_0x5caad6(0x1a3)+process[_0x5caad6(0x19b)]));}}}}}}else n[_0x5caad6(0x1ba)](Error('Unsupported\x20OS:\x20'+process[_0x5caad6(0x1b6)]+',\x20architecture:\x20'+process['arch']));}}}}}()))||process['env'][a1_0x4b3b37(0x1c2)]){try{e=require(a1_0x4b3b37(0x1ab));}catch(a1_0x5663d8){process['env'][a1_0x4b3b37(0x1c2)]&&console['error'](a1_0x5663d8);}if(!e)try{e=require(a1_0x4b3b37(0x19e));}catch(a1_0x243ff5){process[a1_0x4b3b37(0x1c3)]['NAPI_RS_FORCE_WASI']&&console[a1_0x4b3b37(0x1cc)](a1_0x243ff5);}}if(!e){if(n[a1_0x4b3b37(0x1b9)]>0x0)throw Error('Failed\x20to\x20load\x20native\x20binding',{'cause':n});throw Error(a1_0x4b3b37(0x1e1));}module[a1_0x4b3b37(0x1cd)][a1_0x4b3b37(0x1e9)]=e[a1_0x4b3b37(0x1e9)],module['exports'][a1_0x4b3b37(0x1bf)]=e[a1_0x4b3b37(0x1bf)],module[a1_0x4b3b37(0x1cd)][a1_0x4b3b37(0x1ed)]=e[a1_0x4b3b37(0x1ed)],module['exports'][a1_0x4b3b37(0x1e4)]=e[a1_0x4b3b37(0x1e4)],module[a1_0x4b3b37(0x1cd)][a1_0x4b3b37(0x1b4)]=e[a1_0x4b3b37(0x1b4)];
|
package/nx_key.wasm32-wasi.wasm
CHANGED
Binary file
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/key",
|
3
|
-
"version": "1.3.0-beta.
|
3
|
+
"version": "1.3.0-beta.9",
|
4
4
|
"description": "Package to provide the ability to activate and read licenses for Nx Powerpack.",
|
5
5
|
"type": "commonjs",
|
6
6
|
"main": "index.js",
|
@@ -57,14 +57,14 @@
|
|
57
57
|
"ora": "^5.4.1"
|
58
58
|
},
|
59
59
|
"optionalDependencies": {
|
60
|
-
"@nx/key-darwin-arm64": "1.3.0-beta.
|
61
|
-
"@nx/key-darwin-x64": "1.3.0-beta.
|
62
|
-
"@nx/key-linux-arm-gnueabihf": "1.3.0-beta.
|
63
|
-
"@nx/key-linux-arm64-gnu": "1.3.0-beta.
|
64
|
-
"@nx/key-linux-arm64-musl": "1.3.0-beta.
|
65
|
-
"@nx/key-linux-x64-gnu": "1.3.0-beta.
|
66
|
-
"@nx/key-linux-x64-musl": "1.3.0-beta.
|
67
|
-
"@nx/key-win32-arm64-msvc": "1.3.0-beta.
|
68
|
-
"@nx/key-win32-x64-msvc": "1.3.0-beta.
|
60
|
+
"@nx/key-darwin-arm64": "1.3.0-beta.9",
|
61
|
+
"@nx/key-darwin-x64": "1.3.0-beta.9",
|
62
|
+
"@nx/key-linux-arm-gnueabihf": "1.3.0-beta.9",
|
63
|
+
"@nx/key-linux-arm64-gnu": "1.3.0-beta.9",
|
64
|
+
"@nx/key-linux-arm64-musl": "1.3.0-beta.9",
|
65
|
+
"@nx/key-linux-x64-gnu": "1.3.0-beta.9",
|
66
|
+
"@nx/key-linux-x64-musl": "1.3.0-beta.9",
|
67
|
+
"@nx/key-win32-arm64-msvc": "1.3.0-beta.9",
|
68
|
+
"@nx/key-win32-x64-msvc": "1.3.0-beta.9"
|
69
69
|
}
|
70
70
|
}
|
package/request.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a3_0x342ef7=a3_0x47ee;(function(_0x2bf1b6,_0x2996d5){const _0x18ccdc=a3_0x47ee,_0x10f715=_0x2bf1b6();while(!![]){try{const _0x3653df=-parseInt(_0x18ccdc(0x126))/0x1*(parseInt(_0x18ccdc(0x118))/0x2)+-parseInt(_0x18ccdc(0x120))/0x3+-parseInt(_0x18ccdc(0x11a))/0x4+parseInt(_0x18ccdc(0x11e))/0x5+parseInt(_0x18ccdc(0x111))/0x6+-parseInt(_0x18ccdc(0x117))/0x7+parseInt(_0x18ccdc(0x129))/0x8;if(_0x3653df===_0x2996d5)break;else _0x10f715['push'](_0x10f715['shift']());}catch(_0x4c7635){_0x10f715['push'](_0x10f715['shift']());}}}(a3_0x62fe,0xe7d91));function a3_0x47ee(_0x5e0304,_0x51e369){const _0x62fe5c=a3_0x62fe();return a3_0x47ee=function(_0x47ee40,_0x35d257){_0x47ee40=_0x47ee40-0x111;let _0x28bcf7=_0x62fe5c[_0x47ee40];return _0x28bcf7;},a3_0x47ee(_0x5e0304,_0x51e369);}Object[a3_0x342ef7(0x127)](exports,'__esModule',{'value':!0x0}),exports[a3_0x342ef7(0x11d)]=r;function a3_0x62fe(){const _0x5e073d=['exit','then','2637117EPbtzT','4462mzHIha','log','160104YgAzFk','env','text','requestLicense','435445NmiRNc','json','4408323WXupoT','catch','LicenseErrors.Unauthorized\x0a','LicenseErrors.Forbidden','NX_MAJOR_VERSION','/nx-cloud/powerpack/licenses?nxVersion=','443bBhnhM','defineProperty','append','29840064DohUWm','Nx-Cloud-Personal-Access-Token','Nx-Cloud-Id','42498KIXRwe','status','LicenseErrors.Expired','argv'];a3_0x62fe=function(){return _0x5e073d;};return a3_0x62fe();}const e=require('./src/version');function r(_0x34e68f,_0x3d2009,_0x592b45,_0xfd1acb){const _0x577c01=a3_0x342ef7;let _0x286eaa=new Headers();return _0x3d2009&&_0x286eaa[_0x577c01(0x128)](_0x577c01(0x12b),_0x3d2009),_0x592b45&&_0x286eaa['append']('Authorization',_0x592b45),_0xfd1acb&&_0x286eaa[_0x577c01(0x128)](_0x577c01(0x12a),_0xfd1acb),fetch(_0x34e68f+_0x577c01(0x125)+e[_0x577c01(0x124)],{'headers':_0x286eaa})[_0x577c01(0x116)](async _0x21fdd1=>{const _0x3384f5=_0x577c01;if(0x194===_0x21fdd1['status'])throw Error('LicenseErrors.NotFound');if(0x192===_0x21fdd1['status'])throw Error(_0x3384f5(0x113));if(0x193===_0x21fdd1[_0x3384f5(0x112)])throw Error(_0x3384f5(0x123));if(0x191===_0x21fdd1[_0x3384f5(0x112)])throw Error(_0x3384f5(0x122)+await _0x21fdd1[_0x3384f5(0x11c)]());if(_0x21fdd1[_0x3384f5(0x112)]>=0x190)throw Error(''+await _0x21fdd1[_0x3384f5(0x11c)]());return _0x21fdd1[_0x3384f5(0x11f)]();})[_0x577c01(0x116)](_0x2a2999=>_0x2a2999['licenseKey']);}if('child'===process[a3_0x342ef7(0x114)][0x2]){let {NX_CLOUD_ENDPOINT:e,NX_CLOUD_ID:s,NX_CLOUD_ACCESS_TOKEN:o,NX_CLOUD_PERSONAL_ACCESS_TOKEN:t}=process[a3_0x342ef7(0x11b)];r(e,s,o,t)[a3_0x342ef7(0x116)](_0x42c3a2=>{const _0x1f4149=a3_0x342ef7;console[_0x1f4149(0x119)](_0x42c3a2),process['exit'](0x0);})[a3_0x342ef7(0x121)](_0x3008f=>{const _0x881697=a3_0x342ef7;console['error'](_0x3008f['message']),process[_0x881697(0x115)](0x1);});}
|
package/src/auto-register.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';function
|
1
|
+
'use strict';const a4_0x5d1cc2=a4_0xf016;(function(_0x32ef65,_0x284940){const _0x51cde2=a4_0xf016,_0xcca24d=_0x32ef65();while(!![]){try{const _0x1f8240=parseInt(_0x51cde2(0x168))/0x1+-parseInt(_0x51cde2(0x142))/0x2+-parseInt(_0x51cde2(0x182))/0x3+-parseInt(_0x51cde2(0x17f))/0x4+parseInt(_0x51cde2(0x167))/0x5*(-parseInt(_0x51cde2(0x163))/0x6)+parseInt(_0x51cde2(0x137))/0x7*(-parseInt(_0x51cde2(0x159))/0x8)+parseInt(_0x51cde2(0x157))/0x9;if(_0x1f8240===_0x284940)break;else _0xcca24d['push'](_0xcca24d['shift']());}catch(_0xd1d4e1){_0xcca24d['push'](_0xcca24d['shift']());}}}(a4_0x3ac9,0x3acbb));Object[a4_0x5d1cc2(0x15e)](exports,a4_0x5d1cc2(0x16b),{'value':!0x0}),exports[a4_0x5d1cc2(0x149)]=u;function a4_0x3ac9(){const _0x14d510=['Failed\x20to\x20initiate\x20self-hosted\x20cache\x20key\x20activation,\x20please\x20try\x20again\x20later.','NX_KEY_LOGGING','message','https://cloud.nx.app','First\x20name\x20cannot\x20be\x20empty.','We\x20did\x20not\x20find\x20a\x20self-hosted\x20cache\x20key\x20for\x20this\x20workspace,\x20but\x20we\x20can\x20register\x20one\x20for\x20you\x20for\x20free.','env','...','post','prompt','Successfully\x20activated\x20Nx\x20key!','Organization\x20name\x20cannot\x20be\x20empty.','data','response','100+','log','select','Please\x20enter\x20the\x20number\x20of\x20seats:','547308YswWMu','email','Would\x20you\x20like\x20to\x20register\x20for\x20a\x20key\x20now?','764742yThRiX','Please\x20enter\x20your\x20email:','succeed','ora','Sending\x20verification\x20email\x20to\x20','activationKey','activateNxKey','length','5754HgOOdF','Activation\x20process\x20timed\x20out\x20after\x20900\x20seconds','organizationName','Please\x20enter\x20your\x20organization\x20name:','input','11-50','First\x20name\x20must\x20be\x2064\x20characters\x20or\x20less.','trim','The\x20key\x20is\x20saved\x20to\x20disk,\x20but\x20you\x20can\x20also\x20use\x20`NX_KEY=','test','NX_CLOUD_API','763044QYmNbL','note','../index','lastName','Organization\x20name\x20must\x20be\x2064\x20characters\x20or\x20less.','create','No\x20self-hosted\x20cache\x20key\x20found','autoRegisterNxKey','Please\x20enter\x20a\x20valid\x20email\x20address.','fail','status','isAxiosError','error','Contact\x20email\x20is\x20required.','Please\x20try\x20again\x20later\x20by\x20using\x20`nx\x20register`.','default','allowRegistration','getNxKeyInformationAsync','VERIFIED','confirm','get','11984922QVfxRk','Waiting\x20for\x20verification\x20to\x20complete...','4472rvdCun','enquirer','map','Activation\x20endpoint\x20not\x20found','1-10','defineProperty','nx-cloud/self-hosted-cache/activate','exponentialDelay','axios-retry','Activation\x20successful!','5418TkhkYf','./output','requestId','/nx-cloud/self-hosted-cache/activate','1310Nsjseo','378516fRmpLZ','Please\x20enter\x20your\x20first\x20name:','Activation\x20failed.','__esModule','output'];a4_0x3ac9=function(){return _0x14d510;};return a4_0x3ac9();}const e=require('axios'),t=require(a4_0x5d1cc2(0x161)),a=require(a4_0x5d1cc2(0x15a)),r=require(a4_0x5d1cc2(0x185)),i=require(a4_0x5d1cc2(0x144)),s=require(a4_0x5d1cc2(0x164)),o=void 0x0!==process[a4_0x5d1cc2(0x173)][a4_0x5d1cc2(0x16e)],n=e[a4_0x5d1cc2(0x151)][a4_0x5d1cc2(0x147)]({'baseURL':process[a4_0x5d1cc2(0x173)][a4_0x5d1cc2(0x141)]||a4_0x5d1cc2(0x170)});async function u(_0x22ac6e){const _0x34c8b3=a4_0x5d1cc2;let _0x596d8a=await(0x0,i[_0x34c8b3(0x153)])(_0x22ac6e);if(_0x596d8a)return _0x596d8a;if(o&&s['output'][_0x34c8b3(0x143)]({'title':'No\x20self-hosted\x20cache\x20key\x20found.\x20Starting\x20registration\x20process...'}),!await m())return s[_0x34c8b3(0x16c)][_0x34c8b3(0x17c)]({'title':'Skipped.\x20You\x20should\x20still\x20register\x20later\x20using\x20`nx\x20register`.'}),null;try{let _0x3d01b5=await l(),_0x409eab=await c(_0x3d01b5),_0x311193=await d(_0x409eab,_0x3d01b5[_0x34c8b3(0x180)]);return s['output'][_0x34c8b3(0x17c)]({'title':_0x34c8b3(0x177),'bodyLines':[_0x34c8b3(0x13f)+_0x311193+'`\x20to\x20set\x20the\x20key\x20in\x20your\x20environment.']}),(0x0,i[_0x34c8b3(0x188)])(_0x22ac6e,_0x311193);}catch(_0x7b0686){let _0x289d21=_0x7b0686 instanceof Error?_0x7b0686[_0x34c8b3(0x16f)]:String(_0x7b0686);return _0x289d21&&s[_0x34c8b3(0x16c)][_0x34c8b3(0x14e)]({'title':'Error\x20during\x20activation\x20process:\x20'+_0x289d21+'.','bodyLines':[_0x34c8b3(0x150)]}),null;}}function a4_0xf016(_0x1f20e4,_0xe56585){const _0x3ac9ec=a4_0x3ac9();return a4_0xf016=function(_0xf01661,_0x5700e8){_0xf01661=_0xf01661-0x137;let _0x53f118=_0x3ac9ec[_0xf01661];return _0x53f118;},a4_0xf016(_0x1f20e4,_0xe56585);}async function l(){const _0x4d8977=a4_0x5d1cc2;return await(0x0,a[_0x4d8977(0x176)])([{'type':_0x4d8977(0x13b),'name':'firstName','message':_0x4d8977(0x169),'required':!0x0,'validate':_0x5e3f4c=>_0x5e3f4c[_0x4d8977(0x13e)]()?!(_0x5e3f4c[_0x4d8977(0x189)]>0x40)||_0x4d8977(0x13d):_0x4d8977(0x171)},{'type':'input','name':_0x4d8977(0x145),'message':'Please\x20enter\x20your\x20last\x20name:','required':!0x0,'validate':_0x372a27=>_0x372a27['trim']()?!(_0x372a27[_0x4d8977(0x189)]>0x40)||'Last\x20name\x20must\x20be\x2064\x20characters\x20or\x20less.':'Last\x20name\x20cannot\x20be\x20empty.'},{'type':_0x4d8977(0x13b),'name':'email','message':_0x4d8977(0x183),'required':!0x0,'validate':_0x365aa3=>_0x365aa3['trim']()?!!/^[^\s@]+@[^\s@]+\.[^\s@]+$/[_0x4d8977(0x140)](_0x365aa3)||_0x4d8977(0x14a):_0x4d8977(0x14f)},{'type':_0x4d8977(0x13b),'name':_0x4d8977(0x139),'message':_0x4d8977(0x13a),'required':!0x0,'validate':_0x2b20e8=>_0x2b20e8['trim']()?!(_0x2b20e8[_0x4d8977(0x189)]>0x40)||_0x4d8977(0x146):_0x4d8977(0x178)},{'type':_0x4d8977(0x17d),'name':'seatCount','message':_0x4d8977(0x17e),'required':!0x0,'choices':[{'name':_0x4d8977(0x15d),'value':0x1},{'name':_0x4d8977(0x13c),'value':0xb},{'name':'51-100','value':0x33},{'name':_0x4d8977(0x17b),'value':0x65}],'result'(_0x1a09bb){const _0x3dffca=_0x4d8977;return this[_0x3dffca(0x15b)]([_0x1a09bb])[_0x1a09bb];}}]);}async function c(_0x3ea242){const _0x1be07d=a4_0x5d1cc2;try{return(await n[_0x1be07d(0x175)](_0x1be07d(0x15f),_0x3ea242))[_0x1be07d(0x179)][_0x1be07d(0x165)];}catch(_0x33e028){if(e['default']['isAxiosError'](_0x33e028)&&_0x33e028[_0x1be07d(0x17a)]?.['status']===0x194)throw Error(_0x33e028[_0x1be07d(0x17a)][_0x1be07d(0x179)]?.['message']||_0x1be07d(0x15c));let _0x25f456=_0x33e028 instanceof Error?_0x33e028[_0x1be07d(0x16f)]:String(_0x33e028);throw o&&s['output']['error']({'title':_0x25f456}),Error(_0x1be07d(0x16d));}}async function d(_0x23f56a,_0x93af88){const _0x41d1de=a4_0x5d1cc2;s[_0x41d1de(0x16c)][_0x41d1de(0x17c)]({'title':_0x41d1de(0x186)+_0x93af88+_0x41d1de(0x174)});let _0x1bb8ff=r(_0x41d1de(0x158))['start'](),_0x5cdeeb=0x0;for(;_0x5cdeeb<0x3c;)try{let _0x11218d=await n[_0x41d1de(0x156)](_0x41d1de(0x166),{'params':{'requestId':_0x23f56a}});if(_0x41d1de(0x154)===_0x11218d[_0x41d1de(0x179)][_0x41d1de(0x14c)]&&_0x11218d[_0x41d1de(0x179)][_0x41d1de(0x187)])return _0x1bb8ff[_0x41d1de(0x184)](_0x41d1de(0x162)),_0x11218d[_0x41d1de(0x179)]['activationKey'];_0x5cdeeb++,await new Promise(_0x594d9b=>setTimeout(_0x594d9b,0x3a98));}catch(_0x180cdb){if(e['default'][_0x41d1de(0x14d)](_0x180cdb)){if(_0x180cdb[_0x41d1de(0x17a)]?.['status']===0x194)throw _0x1bb8ff[_0x41d1de(0x14b)]('Activation\x20failed.'),Error(''+(_0x180cdb[_0x41d1de(0x17a)]?.[_0x41d1de(0x179)]?.['message']||'Activation\x20request\x20not\x20found'));throw _0x1bb8ff[_0x41d1de(0x14b)]('Activation\x20failed.'),Error(''+(_0x180cdb[_0x41d1de(0x17a)]?.[_0x41d1de(0x179)]?.['message']||_0x180cdb[_0x41d1de(0x16f)]));}_0x1bb8ff[_0x41d1de(0x14b)](_0x41d1de(0x16a));let _0x587a39=_0x180cdb instanceof Error?_0x180cdb['message']:String(_0x180cdb);throw Error(''+_0x587a39);}throw _0x1bb8ff[_0x41d1de(0x14b)]('Activation\x20timed\x20out.'),Error(_0x41d1de(0x138));}async function m(){const _0x2d53a7=a4_0x5d1cc2;return s['output']['log']({'title':_0x2d53a7(0x148),'bodyLines':[_0x2d53a7(0x172)]}),(await(0x0,a[_0x2d53a7(0x176)])({'type':_0x2d53a7(0x155),'initial':!0x0,'name':_0x2d53a7(0x152),'message':_0x2d53a7(0x181)}))[_0x2d53a7(0x152)];}(0x0,t[a4_0x5d1cc2(0x151)])(n,{'retries':0x5,'retryDelay':t[a4_0x5d1cc2(0x151)][a4_0x5d1cc2(0x160)]});
|
package/src/output.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a5_0xa6e7b6=a5_0x3045;(function(_0x306014,_0x1478bd){const _0xd21ed6=a5_0x3045,_0x287060=_0x306014();while(!![]){try{const _0xd73b08=-parseInt(_0xd21ed6(0xce))/0x1*(parseInt(_0xd21ed6(0xc6))/0x2)+parseInt(_0xd21ed6(0xd0))/0x3+parseInt(_0xd21ed6(0xc3))/0x4+parseInt(_0xd21ed6(0xd2))/0x5+parseInt(_0xd21ed6(0xdd))/0x6+-parseInt(_0xd21ed6(0xd8))/0x7+-parseInt(_0xd21ed6(0xcf))/0x8*(parseInt(_0xd21ed6(0xd3))/0x9);if(_0xd73b08===_0x1478bd)break;else _0x287060['push'](_0x287060['shift']());}catch(_0x1d8369){_0x287060['push'](_0x287060['shift']());}}}(a5_0x5736,0xba756));function a5_0x3045(_0x42fccc,_0x2ca812){const _0x57363b=a5_0x5736();return a5_0x3045=function(_0x304554,_0x2c55f4){_0x304554=_0x304554-0xc3;let _0x30238c=_0x57363b[_0x304554];return _0x30238c;},a5_0x3045(_0x42fccc,_0x2ca812);}Object['defineProperty'](exports,'__esModule',{'value':!0x0}),exports[a5_0xa6e7b6(0xc8)]=void 0x0;function a5_0x5736(){const _0x3b49c9=['9ivJwbA','log','cyan','cliName','reset','7641291jvccwG','forEach','chalk','writeOutputTitle','writeToStdOut','7779474SwEwmv','addNewline','5902128IAjKja','error','bold','420554nIoMTY','red','output','stdout','EOL','inverse','applyNxPrefix','writeOptionalOutputBody','4dueXYo','13917496IRBZPy','803976khtKyO','note','6980195gGHyDK'];a5_0x5736=function(){return _0x3b49c9;};return a5_0x5736();}const t=require(a5_0xa6e7b6(0xda)),e=require('os');exports[a5_0xa6e7b6(0xc8)]=new class{[a5_0xa6e7b6(0xd6)]='NX';[a5_0xa6e7b6(0xdc)](_0x195f10){const _0x511320=a5_0xa6e7b6;process[_0x511320(0xc9)]['write'](_0x195f10);}[a5_0xa6e7b6(0xdb)]({color:_0x3970f9,title:_0x5f5a24}){const _0x9231ed=a5_0xa6e7b6;this[_0x9231ed(0xdc)](''+this[_0x9231ed(0xcc)](_0x3970f9,_0x5f5a24)+e[_0x9231ed(0xca)]);}['writeOptionalOutputBody'](_0x1936ae){const _0x5be152=a5_0xa6e7b6;_0x1936ae&&(this['addNewline'](),_0x1936ae[_0x5be152(0xd9)](_0x3bd14d=>this[_0x5be152(0xdc)](''+_0x3bd14d+e[_0x5be152(0xca)])));}[a5_0xa6e7b6(0xcc)](_0x274ac0=a5_0xa6e7b6(0xd5),_0x4e85c4){const _0x3f30bc=a5_0xa6e7b6;let _0x1c6056=t[_0x3f30bc(0xd7)][_0x3f30bc(0xcb)][_0x3f30bc(0xc5)][_0x274ac0]('\x20'+this[_0x3f30bc(0xd6)]+'\x20');return _0x1c6056+'\x20\x20'+_0x4e85c4;}[a5_0xa6e7b6(0xde)](){const _0x369e6c=a5_0xa6e7b6;this[_0x369e6c(0xdc)](e['EOL']);}[a5_0xa6e7b6(0xc4)]({title:_0x44b3e3,bodyLines:_0x29f571}){const _0x48f4e0=a5_0xa6e7b6;this[_0x48f4e0(0xde)](),this[_0x48f4e0(0xdb)]({'color':_0x48f4e0(0xc7),'title':t[_0x48f4e0(0xc7)](_0x44b3e3)}),this['writeOptionalOutputBody'](_0x29f571),this[_0x48f4e0(0xde)]();}[a5_0xa6e7b6(0xd1)]({title:_0x5805d8,bodyLines:_0x15dcf3}){const _0x3c8484=a5_0xa6e7b6;this[_0x3c8484(0xde)](),this[_0x3c8484(0xdb)]({'color':'cyan','title':t['cyan'](_0x5805d8)}),this[_0x3c8484(0xcd)](_0x15dcf3),this['addNewline']();}[a5_0xa6e7b6(0xd4)]({title:_0x36b2e2,bodyLines:_0x1ce4b0}){const _0x1d0560=a5_0xa6e7b6;this[_0x1d0560(0xde)](),this['writeOutputTitle']({'color':_0x1d0560(0xd5),'title':_0x36b2e2}),this['writeOptionalOutputBody'](_0x1ce4b0),this['addNewline']();}}();
|
package/src/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';function
|
1
|
+
'use strict';const a6_0xf7b7fb=a6_0x20cc;function a6_0x1efb(){const _0x568af1=['__esModule','path','1136023SUuzSi','1019338xqAYYE','12912aNjhqp','4SjOthu','NX_MAJOR_VERSION','9711690jgFtor','44ZMmIkR','VERSION','../package.json','version','10186570jwGYrf','14113719OhaPuC','256CDMDpb','defineProperty','8NjWJre','6936315cvAlZe'];a6_0x1efb=function(){return _0x568af1;};return a6_0x1efb();}function a6_0x20cc(_0x216115,_0x2315f4){const _0x1efb4f=a6_0x1efb();return a6_0x20cc=function(_0x20cc41,_0x55a107){_0x20cc41=_0x20cc41-0xcf;let _0x158c68=_0x1efb4f[_0x20cc41];return _0x158c68;},a6_0x20cc(_0x216115,_0x2315f4);}(function(_0x2d71cc,_0x26de17){const _0x3b9112=a6_0x20cc,_0x248c79=_0x2d71cc();while(!![]){try{const _0x3825c5=-parseInt(_0x3b9112(0xcf))/0x1+-parseInt(_0x3b9112(0xda))/0x2*(parseInt(_0x3b9112(0xd0))/0x3)+parseInt(_0x3b9112(0xd1))/0x4*(parseInt(_0x3b9112(0xdd))/0x5)+-parseInt(_0x3b9112(0xd3))/0x6+-parseInt(_0x3b9112(0xe0))/0x7*(-parseInt(_0x3b9112(0xdc))/0x8)+-parseInt(_0x3b9112(0xd9))/0x9+parseInt(_0x3b9112(0xd8))/0xa*(parseInt(_0x3b9112(0xd4))/0xb);if(_0x3825c5===_0x26de17)break;else _0x248c79['push'](_0x248c79['shift']());}catch(_0x50cd80){_0x248c79['push'](_0x248c79['shift']());}}}(a6_0x1efb,0xd3b34));Object[a6_0xf7b7fb(0xdb)](exports,a6_0xf7b7fb(0xde),{'value':!0x0}),exports[a6_0xf7b7fb(0xd2)]=exports[a6_0xf7b7fb(0xd5)]=void 0x0;const e=require(a6_0xf7b7fb(0xdf));exports[a6_0xf7b7fb(0xd5)]=require(a6_0xf7b7fb(0xd6))[a6_0xf7b7fb(0xd7)],exports['NX_MAJOR_VERSION']=Number(require((0x0,e['join'])('nx','package.json'))['version']['split']('.')[0x0]);
|