@nx/key 1.3.0-beta.6 → 1.3.0-beta.8
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_0x46664b=a0_0x42e4;(function(_0x196e19,_0x5e053e){const _0x11234c=a0_0x42e4,_0x48de71=_0x196e19();while(!![]){try{const _0x3b4510=-parseInt(_0x11234c(0x119))/0x1+parseInt(_0x11234c(0xea))/0x2+-parseInt(_0x11234c(0xe5))/0x3+parseInt(_0x11234c(0x113))/0x4*(parseInt(_0x11234c(0x117))/0x5)+-parseInt(_0x11234c(0x120))/0x6*(-parseInt(_0x11234c(0x122))/0x7)+parseInt(_0x11234c(0x10e))/0x8*(parseInt(_0x11234c(0xfb))/0x9)+parseInt(_0x11234c(0x127))/0xa;if(_0x3b4510===_0x5e053e)break;else _0x48de71['push'](_0x48de71['shift']());}catch(_0x4624fa){_0x48de71['push'](_0x48de71['shift']());}}}(a0_0x197f,0xbe721));let e;Object[a0_0x46664b(0xe0)](exports,'__esModule',{'value':!0x0}),exports['assertFeaturePermission']=void 0x0,exports[a0_0x46664b(0xe7)]=function(_0x9b6dc2){return(0x0,m['autoRegisterNxKey'])(_0x9b6dc2);},exports[a0_0x46664b(0x11f)]=function(_0x5918d4,_0x4466a9){p(_0x5918d4,_0x4466a9);},exports[a0_0x46664b(0x101)]=p,exports['getPowerpackLicenseInformationAsync']=function(_0x3f222b){return v(_0x3f222b);},exports[a0_0x46664b(0x12b)]=v,exports[a0_0x46664b(0x12e)]=function(_0x547e7d){return k(_0x547e7d);},exports['getNxKeyInformation']=k;function a0_0x197f(){const _0x401b03=['getKeyInformation','9FgsIVZ','./src/version','debug','@nx/key-linux-x64-gnu','@nx/key-linux-arm64-musl','nx_key.android-arm-eabi.node','activateNxKey','nx_key.linux-arm-gnueabihf.node','@nx/key-android-arm64','copyFileSync','@nx/key-freebsd-x64','@nx/key-linux-arm-gnueabihf','basename','nx_key.linux-x64-gnu.node','nx_key.android-arm64.node','sha256','execSync','@nx/key-linux-arm64-gnu','update','4284608fJygWu','digest','@nx/key-darwin-arm64','homedir','utf8','4132WMHGIC','NX_NATIVE_FILE_CACHE_DIRECTORY','NX_MAJOR_VERSION','nx_key.darwin-arm64.node','1835TPNqJx','assertFeaturePermission','170940sESeUe','./src/auto-register','endsWith','nx_key.linux-arm64-gnu.node','FeaturePermission','nx-native-file-cache-','activatePowerpack','96wHJnkX','@nx/key-win32-arm64-msvc','124733wRJohy','join','NX_KEY_LOGGING','cache','@nx/key-darwin-x64','1573620OpOOEf','node:crypto','native\x20file\x20cache\x20location:\x20','./native.js','getNxKeyInformationAsync','tmpdir','requestLicense','getPowerpackLicenseInformation','defineProperty','createHash','_load','pipe','mkdirSync','2581653GjnyZc','some','autoRegisterNxKey','resolve','path','908806TXPQtD','@nx/key-win32-x64-msvc','VERSION','env','@nx/key-darwin-universal','node\x20./request.js\x20child','nx_key.darwin-x64.node','username','@nx/key-linux-x64-musl','nx_key.darwin-universal.node','nx_key.freebsd-x64.node','@nx/key-android-arm-eabi','hex','existsSync','apply','userInfo'];a0_0x197f=function(){return _0x401b03;};return a0_0x197f();}const n=require('node:child_process'),r=require('node:os'),i=require('./request'),t=require('fs'),o=require(a0_0x46664b(0x128)),s=require(a0_0x46664b(0xe9)),a=require(a0_0x46664b(0xfc)),u=require('module'),x=new Set([a0_0x46664b(0x103),a0_0x46664b(0xf5),a0_0x46664b(0xeb),'@nx/key-win32-ia32-msvc',a0_0x46664b(0x121),a0_0x46664b(0xee),a0_0x46664b(0x126),a0_0x46664b(0x110),a0_0x46664b(0x105),a0_0x46664b(0xf2),a0_0x46664b(0xfe),a0_0x46664b(0xff),a0_0x46664b(0x10c),a0_0x46664b(0x106)]),c=[a0_0x46664b(0x109),a0_0x46664b(0x100),'nx_key.win32-x64-msvc.node','nx_key.win32-ia32-msvc.node','nx_key.win32-arm64-msvc.node',a0_0x46664b(0xf3),a0_0x46664b(0xf0),a0_0x46664b(0x116),a0_0x46664b(0xf4),'nx_key.linux-x64-musl.node',a0_0x46664b(0x108),'nx_key.linux-arm64-musl.node',a0_0x46664b(0x11c),a0_0x46664b(0x102)],d=u[a0_0x46664b(0xe2)];function _(_0x207f05,_0x112ea4,_0x371a8f){const _0x4c168f=a0_0x46664b;if(!(x['has'](_0x207f05)||c[_0x4c168f(0xe6)](_0x5416c7=>_0x207f05[_0x4c168f(0x11b)](_0x5416c7))))return d[_0x4c168f(0xf8)](this,arguments);{let _0x37f65a=require[_0x4c168f(0xe8)](_0x207f05),_0x287cb2=(0x0,s[_0x4c168f(0x107)])(_0x37f65a),_0x173789=(function(){const _0x154395=_0x4c168f;if(process[_0x154395(0xed)][_0x154395(0x114)])return process[_0x154395(0xed)][_0x154395(0x114)];{let _0x13d61a=(0x0,o[_0x154395(0xe1)])(_0x154395(0x10a));e&&_0x13d61a[_0x154395(0x10d)](e);try{_0x13d61a['update']((0x0,r[_0x154395(0xf9)])()[_0x154395(0xf1)]);}catch(_0x2969d5){}return(0x0,s[_0x154395(0x123)])((0x0,r[_0x154395(0x12c)])(),_0x154395(0x11e)+_0x13d61a[_0x154395(0x10f)](_0x154395(0xf6))['substring'](0x0,0x7));}}());void 0x0!==process['env'][_0x4c168f(0x124)]&&console[_0x4c168f(0xfd)](_0x4c168f(0x129),_0x173789);let _0x408a30=(0x0,s[_0x4c168f(0x123)])(_0x173789,a[_0x4c168f(0xec)]+'-'+_0x287cb2);return(0x0,t['existsSync'])(_0x408a30)||((0x0,t[_0x4c168f(0xf7)])(_0x173789)||(0x0,t[_0x4c168f(0xe4)])(_0x173789,{'recursive':!0x0}),(0x0,t[_0x4c168f(0x104)])(_0x37f65a,_0x408a30)),d[_0x4c168f(0xf8)](this,[_0x408a30,_0x112ea4,_0x371a8f]);}}function a0_0x42e4(_0x3aed2e,_0xf2c2c6){const _0x197f2b=a0_0x197f();return a0_0x42e4=function(_0x42e4b4,_0x4a69f9){_0x42e4b4=_0x42e4b4-0xe0;let _0x38184f=_0x197f2b[_0x42e4b4];return _0x38184f;},a0_0x42e4(_0x3aed2e,_0xf2c2c6);}const y=require[a0_0x46664b(0xe8)]('./native.js');delete require[a0_0x46664b(0x125)][y];const l=require('./native');Object['defineProperty'](exports,a0_0x46664b(0x118),{'enumerable':!0x0,'get':function(){const _0x47708d=a0_0x46664b;return l[_0x47708d(0x118)];}}),module['exports'][a0_0x46664b(0x11d)]=l[a0_0x46664b(0x11d)];const m=require(a0_0x46664b(0x11a));function p(_0x4d7997,_0x12b85b){const _0x2eca05=a0_0x46664b;e=_0x4d7997,u[_0x2eca05(0xe2)]=_;let _0x4ebe58=require('./native.js');return u['_load']=d,_0x4ebe58[_0x2eca05(0x101)](a[_0x2eca05(0x115)],_0x4d7997,_0x12b85b);}function v(_0x3cec46){const _0x3ef789=a0_0x46664b;e=_0x3cec46;let _0x116b87=(0x0,r['homedir'])();u['_load']=_;let _0x18d24f=require(_0x3ef789(0x12a));return u['_load']=d,_0x18d24f['getKeyInformationAsync'](a[_0x3ef789(0x115)],_0x3cec46,_0x116b87,i[_0x3ef789(0x12d)]);}function k(_0x3d05ee){const _0x2eb933=a0_0x46664b;e=_0x3d05ee;let _0x1fcf68=(0x0,r[_0x2eb933(0x111)])();u[_0x2eb933(0xe2)]=_;let _0x125bd5=require(_0x2eb933(0x12a));return u[_0x2eb933(0xe2)]=d,_0x125bd5[_0x2eb933(0xfa)](a[_0x2eb933(0x115)],_0x3d05ee,_0x1fcf68,(_0x328ff4,_0x4d48cc,_0x514540,_0x3ad226)=>{const _0x58b572=_0x2eb933;try{return(0x0,n[_0x58b572(0x10b)])(_0x58b572(0xef),{'encoding':_0x58b572(0x112),'env':{...process[_0x58b572(0xed)],'NX_CLOUD_ENDPOINT':_0x328ff4,'NX_CLOUD_ID':_0x4d48cc??void 0x0,'NX_CLOUD_ACCESS_TOKEN':_0x514540??void 0x0,'NX_CLOUD_PERSONAL_ACCESS_TOKEN':_0x3ad226??void 0x0},'cwd':__dirname,'stdio':_0x58b572(0xe3)})['trim']();}catch(_0x3e1ad7){throw Error(_0x3e1ad7);}});}u['_load']=d;
|
package/native.d.ts
CHANGED
package/native.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const a1_0x14518f=a1_0x1ba3;function a1_0x5217(){const _0xfa308f=['./nx_key.linux-arm64-musl.node','./nx_key.android-arm-eabi.node','report','activateNxKey','musl','exports','84ntvYUh','./nx_key.linux-x64-musl.node','./nx_key.freebsd-arm64.node','getKeyInformation','@nx/key-linux-arm-gnueabihf','./nx_key.linux-s390x-gnu.node','Unsupported\x20architecture\x20on\x20Windows:\x20',',\x20architecture:\x20','./nx_key.freebsd-x64.node','getReport','@nx/key-linux-ppc64-gnu','./nx_key.linux-arm64-gnu.node','header','NAPI_RS_FORCE_WASI','/usr/bin/ldd','49HwHBSX','@nx/key-linux-arm-musleabihf','252dDCEHf','arm','utf-8','function','android','some','@nx/key-linux-s390x-gnu','push','ia32','execSync','./nx_key.linux-riscv64-musl.node','23424fuodMG','./nx_key.wasi.cjs','includes','1271130UcNRYG','@nx/key-linux-x64-gnu','1TVgsEO','./nx_key.darwin-x64.node','ldd\x20--version','getKeyInformationAsync','143392zTnORw','Unsupported\x20OS:\x20','sharedObjects','s390x','x64','isArray','ppc64','utf8','./nx_key.win32-x64-msvc.node','Unsupported\x20architecture\x20on\x20Android\x20','61106wzOrKj','@nx/key-freebsd-arm64','glibcVersionRuntime','error','./nx_key.linux-ppc64-gnu.node','arm64','Unsupported\x20architecture\x20on\x20FreeBSD:\x20','./nx_key.darwin-universal.node','1742952PobWCf','@nx/key-android-arm-eabi','@nx/key-win32-x64-msvc','@nx/key-win32-arm64-msvc','@nx/key-darwin-x64','assertFeaturePermission','9kRsSjY','./nx_key.linux-x64-gnu.node','ld-musl-','arch','./nx_key.linux-riscv64-gnu.node','darwin','length','platform','296705tIZhur','FeaturePermission','./nx_key.linux-arm-musleabihf.node','22OauwrO','8489520MKaAFi','env','freebsd','linux','@nx/key-linux-arm64-musl','./nx_key.win32-arm64-msvc.node'];a1_0x5217=function(){return _0xfa308f;};return a1_0x5217();}(function(_0x268790,_0x1fe83c){const _0x26ff2a=a1_0x1ba3,_0x2eabf2=_0x268790();while(!![]){try{const _0x5956ad=-parseInt(_0x26ff2a(0x1f0))/0x1*(parseInt(_0x26ff2a(0x1fe))/0x2)+-parseInt(_0x26ff2a(0x235))/0x3*(parseInt(_0x26ff2a(0x1eb))/0x4)+parseInt(_0x26ff2a(0x214))/0x5*(parseInt(_0x26ff2a(0x224))/0x6)+parseInt(_0x26ff2a(0x233))/0x7*(-parseInt(_0x26ff2a(0x1f4))/0x8)+-parseInt(_0x26ff2a(0x20c))/0x9*(parseInt(_0x26ff2a(0x1ee))/0xa)+parseInt(_0x26ff2a(0x217))/0xb*(-parseInt(_0x26ff2a(0x206))/0xc)+parseInt(_0x26ff2a(0x218))/0xd;if(_0x5956ad===_0x1fe83c)break;else _0x2eabf2['push'](_0x2eabf2['shift']());}catch(_0x45b7d2){_0x2eabf2['push'](_0x2eabf2['shift']());}}}(a1_0x5217,0x661ec));function a1_0x1ba3(_0x51e5e7,_0xe370c0){const _0x5217da=a1_0x5217();return a1_0x1ba3=function(_0x1ba3a6,_0x207213){_0x1ba3a6=_0x1ba3a6-0x1e7;let _0xc21c28=_0x5217da[_0x1ba3a6];return _0xc21c28;},a1_0x1ba3(_0x51e5e7,_0xe370c0);}const {readFileSync:r}=require('fs');let e=null;const n=[],u=()=>{const _0x518d25=a1_0x1ba3;let _0x7398a4=!0x1;return _0x518d25(0x21b)===process[_0x518d25(0x213)]&&(null===(_0x7398a4=t())&&(_0x7398a4=c()),null===_0x7398a4&&(_0x7398a4=i())),_0x7398a4;},s=_0x4ac4ee=>_0x4ac4ee[a1_0x14518f(0x1ed)]('libc.musl-')||_0x4ac4ee['includes'](a1_0x14518f(0x20e)),t=()=>{const _0x4e788c=a1_0x14518f;try{return r(_0x4e788c(0x232),_0x4e788c(0x237))['includes'](_0x4e788c(0x222));}catch{return null;}},c=()=>{const _0x23382b=a1_0x14518f;let _0x40b606=_0x23382b(0x238)==typeof process[_0x23382b(0x220)]['getReport']?process[_0x23382b(0x220)][_0x23382b(0x22d)]():null;return _0x40b606?(!_0x40b606[_0x23382b(0x230)]||!_0x40b606[_0x23382b(0x230)][_0x23382b(0x200)])&&!!(Array[_0x23382b(0x1f9)](_0x40b606[_0x23382b(0x1f6)])&&_0x40b606['sharedObjects'][_0x23382b(0x23a)](s)):null;},i=()=>{const _0x557a60=a1_0x14518f;try{return require('child_process')[_0x557a60(0x1e9)](_0x557a60(0x1f2),{'encoding':_0x557a60(0x1fb)})[_0x557a60(0x1ed)](_0x557a60(0x222));}catch(_0x143b47){return!0x1;}};if(!(e=(function(){const _0x1b3022=a1_0x14518f;if(_0x1b3022(0x239)===process[_0x1b3022(0x213)]){if(_0x1b3022(0x203)===process[_0x1b3022(0x20f)]){try{return require('./nx_key.android-arm64.node');}catch(_0x13d6b0){n[_0x1b3022(0x1e7)](_0x13d6b0);}try{return require('@nx/key-android-arm64');}catch(_0x394227){n['push'](_0x394227);}}else{if('arm'===process[_0x1b3022(0x20f)]){try{return require(_0x1b3022(0x21f));}catch(_0x40841d){n[_0x1b3022(0x1e7)](_0x40841d);}try{return require(_0x1b3022(0x207));}catch(_0x2de143){n[_0x1b3022(0x1e7)](_0x2de143);}}else n['push'](Error(_0x1b3022(0x1fd)+process['arch']));}}else{if('win32'===process[_0x1b3022(0x213)]){if('x64'===process['arch']){try{return require(_0x1b3022(0x1fc));}catch(_0x5e31af){n[_0x1b3022(0x1e7)](_0x5e31af);}try{return require(_0x1b3022(0x208));}catch(_0x3d274f){n[_0x1b3022(0x1e7)](_0x3d274f);}}else{if(_0x1b3022(0x1e8)===process['arch']){try{return require('./nx_key.win32-ia32-msvc.node');}catch(_0x210b3d){n['push'](_0x210b3d);}try{return require('@nx/key-win32-ia32-msvc');}catch(_0x1bd3d5){n[_0x1b3022(0x1e7)](_0x1bd3d5);}}else{if(_0x1b3022(0x203)===process[_0x1b3022(0x20f)]){try{return require(_0x1b3022(0x21d));}catch(_0x33d39a){n['push'](_0x33d39a);}try{return require(_0x1b3022(0x209));}catch(_0x211607){n['push'](_0x211607);}}else n[_0x1b3022(0x1e7)](Error(_0x1b3022(0x22a)+process[_0x1b3022(0x20f)]));}}}else{if(_0x1b3022(0x211)===process[_0x1b3022(0x213)]){try{return require(_0x1b3022(0x205));}catch(_0x138278){n[_0x1b3022(0x1e7)](_0x138278);}try{return require('@nx/key-darwin-universal');}catch(_0x25a969){n[_0x1b3022(0x1e7)](_0x25a969);}if('x64'===process[_0x1b3022(0x20f)]){try{return require(_0x1b3022(0x1f1));}catch(_0x2f0d94){n['push'](_0x2f0d94);}try{return require(_0x1b3022(0x20a));}catch(_0x242c7f){n[_0x1b3022(0x1e7)](_0x242c7f);}}else{if(_0x1b3022(0x203)===process['arch']){try{return require('./nx_key.darwin-arm64.node');}catch(_0x1519bc){n['push'](_0x1519bc);}try{return require('@nx/key-darwin-arm64');}catch(_0x2e553e){n[_0x1b3022(0x1e7)](_0x2e553e);}}else n['push'](Error('Unsupported\x20architecture\x20on\x20macOS:\x20'+process[_0x1b3022(0x20f)]));}}else{if(_0x1b3022(0x21a)===process[_0x1b3022(0x213)]){if(_0x1b3022(0x1f8)===process['arch']){try{return require(_0x1b3022(0x22c));}catch(_0x212d2b){n[_0x1b3022(0x1e7)](_0x212d2b);}try{return require('@nx/key-freebsd-x64');}catch(_0x13b702){n['push'](_0x13b702);}}else{if(_0x1b3022(0x203)===process[_0x1b3022(0x20f)]){try{return require(_0x1b3022(0x226));}catch(_0x280fa4){n[_0x1b3022(0x1e7)](_0x280fa4);}try{return require(_0x1b3022(0x1ff));}catch(_0x3d7f70){n['push'](_0x3d7f70);}}else n['push'](Error(_0x1b3022(0x204)+process[_0x1b3022(0x20f)]));}}else{if(_0x1b3022(0x21b)===process[_0x1b3022(0x213)]){if('x64'===process[_0x1b3022(0x20f)]){if(u()){try{return require(_0x1b3022(0x225));}catch(_0x220ceb){n[_0x1b3022(0x1e7)](_0x220ceb);}try{return require('@nx/key-linux-x64-musl');}catch(_0x407ebc){n[_0x1b3022(0x1e7)](_0x407ebc);}}else{try{return require(_0x1b3022(0x20d));}catch(_0x43fb90){n['push'](_0x43fb90);}try{return require(_0x1b3022(0x1ef));}catch(_0x32f91c){n[_0x1b3022(0x1e7)](_0x32f91c);}}}else{if('arm64'===process[_0x1b3022(0x20f)]){if(u()){try{return require(_0x1b3022(0x21e));}catch(_0x25824d){n[_0x1b3022(0x1e7)](_0x25824d);}try{return require(_0x1b3022(0x21c));}catch(_0x4b5a98){n[_0x1b3022(0x1e7)](_0x4b5a98);}}else{try{return require(_0x1b3022(0x22f));}catch(_0x438b31){n[_0x1b3022(0x1e7)](_0x438b31);}try{return require('@nx/key-linux-arm64-gnu');}catch(_0x27ecdf){n[_0x1b3022(0x1e7)](_0x27ecdf);}}}else{if(_0x1b3022(0x236)===process[_0x1b3022(0x20f)]){if(u()){try{return require(_0x1b3022(0x216));}catch(_0x4ebbfd){n[_0x1b3022(0x1e7)](_0x4ebbfd);}try{return require(_0x1b3022(0x234));}catch(_0x20bcfb){n[_0x1b3022(0x1e7)](_0x20bcfb);}}else{try{return require('./nx_key.linux-arm-gnueabihf.node');}catch(_0x77dc98){n[_0x1b3022(0x1e7)](_0x77dc98);}try{return require(_0x1b3022(0x228));}catch(_0x37fed1){n[_0x1b3022(0x1e7)](_0x37fed1);}}}else{if('riscv64'===process[_0x1b3022(0x20f)]){if(u()){try{return require(_0x1b3022(0x1ea));}catch(_0x596fee){n['push'](_0x596fee);}try{return require('@nx/key-linux-riscv64-musl');}catch(_0x564c8a){n[_0x1b3022(0x1e7)](_0x564c8a);}}else{try{return require(_0x1b3022(0x210));}catch(_0x12c7f9){n[_0x1b3022(0x1e7)](_0x12c7f9);}try{return require('@nx/key-linux-riscv64-gnu');}catch(_0x308574){n[_0x1b3022(0x1e7)](_0x308574);}}}else{if(_0x1b3022(0x1fa)===process['arch']){try{return require(_0x1b3022(0x202));}catch(_0x56d8b9){n['push'](_0x56d8b9);}try{return require(_0x1b3022(0x22e));}catch(_0x4a7a6b){n[_0x1b3022(0x1e7)](_0x4a7a6b);}}else{if(_0x1b3022(0x1f7)===process['arch']){try{return require(_0x1b3022(0x229));}catch(_0x3c52b2){n['push'](_0x3c52b2);}try{return require(_0x1b3022(0x23b));}catch(_0xa7d6f0){n[_0x1b3022(0x1e7)](_0xa7d6f0);}}else n[_0x1b3022(0x1e7)](Error('Unsupported\x20architecture\x20on\x20Linux:\x20'+process['arch']));}}}}}}else n[_0x1b3022(0x1e7)](Error(_0x1b3022(0x1f5)+process[_0x1b3022(0x213)]+_0x1b3022(0x22b)+process[_0x1b3022(0x20f)]));}}}}}()))||process[a1_0x14518f(0x219)]['NAPI_RS_FORCE_WASI']){try{e=require(a1_0x14518f(0x1ec));}catch(a1_0x3ace36){process['env'][a1_0x14518f(0x231)]&&console[a1_0x14518f(0x201)](a1_0x3ace36);}if(!e)try{e=require('@nx/key-wasm32-wasi');}catch(a1_0x4cc08d){process[a1_0x14518f(0x219)][a1_0x14518f(0x231)]&&console[a1_0x14518f(0x201)](a1_0x4cc08d);}}if(!e){if(n[a1_0x14518f(0x212)]>0x0)throw Error('Failed\x20to\x20load\x20native\x20binding',{'cause':n});throw Error('Failed\x20to\x20load\x20native\x20binding');}module['exports'][a1_0x14518f(0x221)]=e[a1_0x14518f(0x221)],module['exports'][a1_0x14518f(0x20b)]=e[a1_0x14518f(0x20b)],module[a1_0x14518f(0x223)]['FeaturePermission']=e[a1_0x14518f(0x215)],module['exports'][a1_0x14518f(0x227)]=e[a1_0x14518f(0x227)],module[a1_0x14518f(0x223)][a1_0x14518f(0x1f3)]=e[a1_0x14518f(0x1f3)];
|
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.8",
|
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.8",
|
61
|
+
"@nx/key-darwin-x64": "1.3.0-beta.8",
|
62
|
+
"@nx/key-linux-arm-gnueabihf": "1.3.0-beta.8",
|
63
|
+
"@nx/key-linux-arm64-gnu": "1.3.0-beta.8",
|
64
|
+
"@nx/key-linux-arm64-musl": "1.3.0-beta.8",
|
65
|
+
"@nx/key-linux-x64-gnu": "1.3.0-beta.8",
|
66
|
+
"@nx/key-linux-x64-musl": "1.3.0-beta.8",
|
67
|
+
"@nx/key-win32-arm64-msvc": "1.3.0-beta.8",
|
68
|
+
"@nx/key-win32-x64-msvc": "1.3.0-beta.8"
|
69
69
|
}
|
70
70
|
}
|
package/request.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';function
|
1
|
+
'use strict';function a3_0x165a(){const _0x939caf=['requestLicense','15733azFpLy','16112YrrNSy','defineProperty','error','message','30OfDgzo','json','LicenseErrors.NotFound','Nx-Cloud-Id','2126674NwQjZY','LicenseErrors.Unauthorized\x0a','1059756PkzKVT','exit','1918584VzbQsE','LicenseErrors.Forbidden','text','env','child','/nx-cloud/powerpack/licenses?nxVersion=','NX_MAJOR_VERSION','append','./src/version','Nx-Cloud-Personal-Access-Token','5pLbyOI','189012KYfzre','14mHELad','12638496kIFQqA','52xXtftc','argv','3010XeHTew','licenseKey','status','__esModule','log','then'];a3_0x165a=function(){return _0x939caf;};return a3_0x165a();}const a3_0x4108d5=a3_0xf6e7;(function(_0x5c44f1,_0x31b605){const _0x110e7a=a3_0xf6e7,_0x524fcb=_0x5c44f1();while(!![]){try{const _0x1ef593=-parseInt(_0x110e7a(0x11b))/0x1*(-parseInt(_0x110e7a(0x110))/0x2)+-parseInt(_0x110e7a(0x10f))/0x3*(-parseInt(_0x110e7a(0x112))/0x4)+parseInt(_0x110e7a(0x10e))/0x5*(parseInt(_0x110e7a(0x102))/0x6)+parseInt(_0x110e7a(0x114))/0x7*(-parseInt(_0x110e7a(0x11c))/0x8)+parseInt(_0x110e7a(0x104))/0x9*(-parseInt(_0x110e7a(0xfc))/0xa)+-parseInt(_0x110e7a(0x100))/0xb+parseInt(_0x110e7a(0x111))/0xc;if(_0x1ef593===_0x31b605)break;else _0x524fcb['push'](_0x524fcb['shift']());}catch(_0x4336f2){_0x524fcb['push'](_0x524fcb['shift']());}}}(a3_0x165a,0x70567));Object[a3_0x4108d5(0x11d)](exports,a3_0x4108d5(0x117),{'value':!0x0}),exports[a3_0x4108d5(0x11a)]=r;function a3_0xf6e7(_0x51f39a,_0x274409){const _0x165ab0=a3_0x165a();return a3_0xf6e7=function(_0xf6e704,_0x520092){_0xf6e704=_0xf6e704-0xfa;let _0x511da7=_0x165ab0[_0xf6e704];return _0x511da7;},a3_0xf6e7(_0x51f39a,_0x274409);}const e=require(a3_0x4108d5(0x10c));function r(_0x2f6277,_0x54d868,_0x2963b7,_0x380182){const _0x4b7e32=a3_0x4108d5;let _0x5ab528=new Headers();return _0x54d868&&_0x5ab528[_0x4b7e32(0x10b)](_0x4b7e32(0xff),_0x54d868),_0x2963b7&&_0x5ab528[_0x4b7e32(0x10b)]('Authorization',_0x2963b7),_0x380182&&_0x5ab528[_0x4b7e32(0x10b)](_0x4b7e32(0x10d),_0x380182),fetch(_0x2f6277+_0x4b7e32(0x109)+e[_0x4b7e32(0x10a)],{'headers':_0x5ab528})[_0x4b7e32(0x119)](async _0x54f868=>{const _0x2eb521=_0x4b7e32;if(0x194===_0x54f868['status'])throw Error(_0x2eb521(0xfe));if(0x192===_0x54f868['status'])throw Error('LicenseErrors.Expired');if(0x193===_0x54f868[_0x2eb521(0x116)])throw Error(_0x2eb521(0x105));if(0x191===_0x54f868[_0x2eb521(0x116)])throw Error(_0x2eb521(0x101)+await _0x54f868[_0x2eb521(0x106)]());if(_0x54f868['status']>=0x190)throw Error(''+await _0x54f868[_0x2eb521(0x106)]());return _0x54f868[_0x2eb521(0xfd)]();})[_0x4b7e32(0x119)](_0x3d0274=>_0x3d0274[_0x4b7e32(0x115)]);}if(a3_0x4108d5(0x108)===process[a3_0x4108d5(0x113)][0x2]){let {NX_CLOUD_ENDPOINT:e,NX_CLOUD_ID:s,NX_CLOUD_ACCESS_TOKEN:o,NX_CLOUD_PERSONAL_ACCESS_TOKEN:t}=process[a3_0x4108d5(0x107)];r(e,s,o,t)['then'](_0x166744=>{const _0x3934e1=a3_0x4108d5;console[_0x3934e1(0x118)](_0x166744),process[_0x3934e1(0x103)](0x0);})['catch'](_0x327689=>{const _0x4724b3=a3_0x4108d5;console[_0x4724b3(0xfa)](_0x327689[_0x4724b3(0xfb)]),process[_0x4724b3(0x103)](0x1);});}
|
package/src/auto-register.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a4_0x37dbe0=a4_0x55e9;(function(_0xb475a6,_0x45300e){const _0x5d176a=a4_0x55e9,_0x3e9899=_0xb475a6();while(!![]){try{const _0x416dcf=parseInt(_0x5d176a(0x83))/0x1+-parseInt(_0x5d176a(0x96))/0x2+parseInt(_0x5d176a(0xb6))/0x3*(-parseInt(_0x5d176a(0xaa))/0x4)+-parseInt(_0x5d176a(0x9b))/0x5*(-parseInt(_0x5d176a(0x9e))/0x6)+-parseInt(_0x5d176a(0x88))/0x7*(parseInt(_0x5d176a(0x7b))/0x8)+parseInt(_0x5d176a(0x81))/0x9+parseInt(_0x5d176a(0xc4))/0xa;if(_0x416dcf===_0x45300e)break;else _0x3e9899['push'](_0x3e9899['shift']());}catch(_0x47c845){_0x3e9899['push'](_0x3e9899['shift']());}}}(a4_0xb31d,0x7af9d));Object['defineProperty'](exports,a4_0x37dbe0(0x7c),{'value':!0x0}),exports[a4_0x37dbe0(0x8c)]=u;const e=require(a4_0x37dbe0(0x82)),t=require(a4_0x37dbe0(0xb4)),a=require(a4_0x37dbe0(0x79)),r=require('ora'),i=require(a4_0x37dbe0(0xae)),s=require(a4_0x37dbe0(0xa5)),o=void 0x0!==process[a4_0x37dbe0(0x7e)][a4_0x37dbe0(0x92)],n=e[a4_0x37dbe0(0x86)][a4_0x37dbe0(0xac)]({'baseURL':process['env']['NX_CLOUD_API']||a4_0x37dbe0(0x8a)});async function u(_0x4e93a6){const _0x5c904e=a4_0x37dbe0;let _0x2e3818=await(0x0,i[_0x5c904e(0x9c)])(_0x4e93a6);if(_0x2e3818)return _0x2e3818;if(o&&s[_0x5c904e(0xa0)][_0x5c904e(0xb7)]({'title':'No\x20self-hosted\x20cache\x20key\x20found.\x20Starting\x20registration\x20process...'}),!await m())return s[_0x5c904e(0xa0)][_0x5c904e(0xb1)]({'title':_0x5c904e(0x9a)}),null;try{let _0x3d4040=await l(),_0x5ca5a0=await c(_0x3d4040),_0x4663ac=await d(_0x5ca5a0,_0x3d4040['email']);return s['output'][_0x5c904e(0xb1)]({'title':_0x5c904e(0xa1),'bodyLines':[_0x5c904e(0xbc)+_0x4663ac+_0x5c904e(0x84)]}),(0x0,i[_0x5c904e(0xab)])(_0x4e93a6,_0x4663ac);}catch(_0x4b3bed){let _0x2ca773=_0x4b3bed instanceof Error?_0x4b3bed[_0x5c904e(0x94)]:String(_0x4b3bed);return _0x2ca773&&s[_0x5c904e(0xa0)]['error']({'title':_0x5c904e(0x77)+_0x2ca773+'.','bodyLines':[_0x5c904e(0x93)]}),null;}}async function l(){const _0x5ae1ca=a4_0x37dbe0;return await(0x0,a[_0x5ae1ca(0x9f)])([{'type':_0x5ae1ca(0xc0),'name':'firstName','message':_0x5ae1ca(0x80),'required':!0x0,'validate':_0x4e95ec=>_0x4e95ec[_0x5ae1ca(0x8d)]()?!(_0x4e95ec[_0x5ae1ca(0xb9)]>0x40)||'First\x20name\x20must\x20be\x2064\x20characters\x20or\x20less.':_0x5ae1ca(0xbb)},{'type':_0x5ae1ca(0xc0),'name':_0x5ae1ca(0x91),'message':'Please\x20enter\x20your\x20last\x20name:','required':!0x0,'validate':_0x874104=>_0x874104[_0x5ae1ca(0x8d)]()?!(_0x874104[_0x5ae1ca(0xb9)]>0x40)||_0x5ae1ca(0xb2):_0x5ae1ca(0xb3)},{'type':_0x5ae1ca(0xc0),'name':_0x5ae1ca(0x87),'message':_0x5ae1ca(0x99),'required':!0x0,'validate':_0x1039e4=>_0x1039e4['trim']()?!!/^[^\s@]+@[^\s@]+\.[^\s@]+$/[_0x5ae1ca(0xba)](_0x1039e4)||_0x5ae1ca(0x76):_0x5ae1ca(0xa9)},{'type':_0x5ae1ca(0xc0),'name':_0x5ae1ca(0x8f),'message':_0x5ae1ca(0xa4),'required':!0x0,'validate':_0x48a410=>_0x48a410[_0x5ae1ca(0x8d)]()?!(_0x48a410[_0x5ae1ca(0xb9)]>0x40)||_0x5ae1ca(0xc1):'Organization\x20name\x20cannot\x20be\x20empty.'},{'type':'select','name':_0x5ae1ca(0x7a),'message':_0x5ae1ca(0xa8),'required':!0x0,'choices':[{'name':'1-10','value':0x1},{'name':_0x5ae1ca(0xad),'value':0xb},{'name':'51-100','value':0x33},{'name':_0x5ae1ca(0xa2),'value':0x65}],'result'(_0xb02e12){const _0xd907ed=_0x5ae1ca;return this[_0xd907ed(0xc2)]([_0xb02e12])[_0xb02e12];}}]);}async function c(_0x18b315){const _0x54e8b1=a4_0x37dbe0;try{return(await n['post'](_0x54e8b1(0xa7),_0x18b315))['data'][_0x54e8b1(0x97)];}catch(_0x4757b3){if(e[_0x54e8b1(0x86)][_0x54e8b1(0x98)](_0x4757b3)&&_0x4757b3[_0x54e8b1(0x8b)]?.[_0x54e8b1(0xbd)]===0x194)throw Error(_0x4757b3[_0x54e8b1(0x8b)][_0x54e8b1(0xb5)]?.['message']||_0x54e8b1(0xbe));let _0x3a1b3a=_0x4757b3 instanceof Error?_0x4757b3[_0x54e8b1(0x94)]:String(_0x4757b3);throw o&&s[_0x54e8b1(0xa0)][_0x54e8b1(0xbf)]({'title':_0x3a1b3a}),Error('Failed\x20to\x20initiate\x20self-hosted\x20cache\x20key\x20activation,\x20please\x20try\x20again\x20later.');}}async function d(_0x449a0b,_0x1ec91b){const _0x86d15d=a4_0x37dbe0;s[_0x86d15d(0xa0)][_0x86d15d(0xb1)]({'title':_0x86d15d(0x7d)+_0x1ec91b+'...'});let _0x2a33b0=r('Waiting\x20for\x20verification\x20to\x20complete...')[_0x86d15d(0x9d)](),_0x178350=0x0;for(;_0x178350<0x3c;)try{let _0x302fd8=await n[_0x86d15d(0x85)](_0x86d15d(0x7f)+_0x449a0b);if(_0x86d15d(0xaf)===_0x302fd8[_0x86d15d(0xb5)][_0x86d15d(0xbd)]&&_0x302fd8[_0x86d15d(0xb5)][_0x86d15d(0xa6)])return _0x2a33b0[_0x86d15d(0x8e)](_0x86d15d(0xb0)),_0x302fd8[_0x86d15d(0xb5)][_0x86d15d(0xa6)];_0x178350++,await new Promise(_0x1b5722=>setTimeout(_0x1b5722,0x3a98));}catch(_0x3b209){if(e[_0x86d15d(0x86)][_0x86d15d(0x98)](_0x3b209)){if(_0x3b209[_0x86d15d(0x8b)]?.[_0x86d15d(0xbd)]===0x194)throw _0x2a33b0['fail'](_0x86d15d(0xa3)),Error(''+(_0x3b209['response']?.[_0x86d15d(0xb5)]?.['message']||'Activation\x20request\x20not\x20found'));throw _0x2a33b0[_0x86d15d(0x78)](_0x86d15d(0xa3)),Error(''+(_0x3b209[_0x86d15d(0x8b)]?.['data']?.[_0x86d15d(0x94)]||_0x3b209['message']));}_0x2a33b0[_0x86d15d(0x78)](_0x86d15d(0xa3));let _0x3ac02e=_0x3b209 instanceof Error?_0x3b209[_0x86d15d(0x94)]:String(_0x3b209);throw Error(''+_0x3ac02e);}throw _0x2a33b0[_0x86d15d(0x78)]('Activation\x20timed\x20out.'),Error(_0x86d15d(0xc3));}function a4_0x55e9(_0x87efa9,_0x184537){const _0xb31d5a=a4_0xb31d();return a4_0x55e9=function(_0x55e977,_0x5962bf){_0x55e977=_0x55e977-0x76;let _0x1bebfd=_0xb31d5a[_0x55e977];return _0x1bebfd;},a4_0x55e9(_0x87efa9,_0x184537);}async function m(){const _0x22491f=a4_0x37dbe0;return s[_0x22491f(0xa0)][_0x22491f(0xb1)]({'title':'No\x20self-hosted\x20cache\x20key\x20found','bodyLines':[_0x22491f(0x95)]}),(await(0x0,a[_0x22491f(0x9f)])({'type':_0x22491f(0x90),'initial':!0x0,'name':_0x22491f(0xb8),'message':_0x22491f(0x89)}))[_0x22491f(0xb8)];}function a4_0xb31d(){const _0x4f5fac=['prompt','output','Successfully\x20activated\x20Nx\x20key!','100+','Activation\x20failed.','Please\x20enter\x20your\x20organization\x20name:','./output','activationKey','nx-cloud/self-hosted-cache/activate','Please\x20enter\x20the\x20number\x20of\x20seats:','Contact\x20email\x20is\x20required.','1053116AZmium','activateNxKey','create','11-50','../index','VERIFIED','Activation\x20successful!','log','Last\x20name\x20must\x20be\x2064\x20characters\x20or\x20less.','Last\x20name\x20cannot\x20be\x20empty.','axios-retry','data','3sglWxM','note','allowRegistration','length','test','First\x20name\x20cannot\x20be\x20empty.','The\x20key\x20is\x20saved\x20to\x20disk,\x20but\x20you\x20can\x20also\x20use\x20`NX_KEY=','status','Activation\x20endpoint\x20not\x20found','error','input','Organization\x20name\x20must\x20be\x2064\x20characters\x20or\x20less.','map','Activation\x20process\x20timed\x20out\x20after\x20900\x20seconds','6997190WskpqB','Please\x20enter\x20a\x20valid\x20email\x20address.','Error\x20during\x20activation\x20process:\x20','fail','enquirer','seatCount','128Dudjzx','__esModule','Sending\x20verification\x20email\x20to\x20','env','/nx-cloud/self-hosted-cache/activate/','Please\x20enter\x20your\x20first\x20name:','5103162FbvvcR','axios','57482oFrMFe','`\x20to\x20set\x20the\x20key\x20in\x20your\x20environment.','get','default','email','174139qCPYYD','Would\x20you\x20like\x20to\x20register\x20for\x20a\x20key\x20now?','https://cloud.nx.app','response','autoRegisterNxKey','trim','succeed','organizationName','confirm','lastName','NX_KEY_LOGGING','Please\x20try\x20again\x20later\x20by\x20using\x20`nx\x20register`.','message','We\x20did\x20not\x20find\x20a\x20self-hosted\x20cache\x20key\x20for\x20this\x20workspace,\x20but\x20we\x20can\x20register\x20one\x20for\x20you\x20for\x20free.','901518pNJSaY','requestId','isAxiosError','Please\x20enter\x20your\x20email:','Skipped.\x20You\x20should\x20still\x20register\x20later\x20using\x20`nx\x20register`.','5mpGZFi','getNxKeyInformationAsync','start','1749360qgtAwD'];a4_0xb31d=function(){return _0x4f5fac;};return a4_0xb31d();}(0x0,t[a4_0x37dbe0(0x86)])(n,{'retries':0x5,'retryDelay':t['default']['exponentialDelay']});
|
package/src/output.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a5_0x189d49=a5_0x116d;(function(_0x42b005,_0x692d03){const _0x2b8163=a5_0x116d,_0x382e45=_0x42b005();while(!![]){try{const _0x261d72=parseInt(_0x2b8163(0x1b3))/0x1+parseInt(_0x2b8163(0x1b6))/0x2+parseInt(_0x2b8163(0x1a5))/0x3+parseInt(_0x2b8163(0x1a3))/0x4+-parseInt(_0x2b8163(0x1b8))/0x5*(parseInt(_0x2b8163(0x1ba))/0x6)+-parseInt(_0x2b8163(0x1ae))/0x7+-parseInt(_0x2b8163(0x1a4))/0x8*(parseInt(_0x2b8163(0x1a7))/0x9);if(_0x261d72===_0x692d03)break;else _0x382e45['push'](_0x382e45['shift']());}catch(_0x21a9fa){_0x382e45['push'](_0x382e45['shift']());}}}(a5_0x4f6c,0xb65b9));function a5_0x116d(_0x52e5c0,_0x9cb548){const _0x4f6c68=a5_0x4f6c();return a5_0x116d=function(_0x116d1e,_0x24e61e){_0x116d1e=_0x116d1e-0x19e;let _0x137082=_0x4f6c68[_0x116d1e];return _0x137082;},a5_0x116d(_0x52e5c0,_0x9cb548);}Object[a5_0x189d49(0x1ac)](exports,a5_0x189d49(0x1b1),{'value':!0x0}),exports['output']=void 0x0;const t=require(a5_0x189d49(0x1b7)),e=require('os');exports[a5_0x189d49(0x1a9)]=new class{[a5_0x189d49(0x19e)]='NX';['writeToStdOut'](_0x29563b){const _0xa854ee=a5_0x189d49;process[_0xa854ee(0x1a6)]['write'](_0x29563b);}[a5_0x189d49(0x1b5)]({color:_0x96ce43,title:_0x1bc267}){const _0x824248=a5_0x189d49;this['writeToStdOut'](''+this[_0x824248(0x19f)](_0x96ce43,_0x1bc267)+e[_0x824248(0x1b4)]);}[a5_0x189d49(0x1aa)](_0x22d040){const _0x2cb0ab=a5_0x189d49;_0x22d040&&(this[_0x2cb0ab(0x1b9)](),_0x22d040[_0x2cb0ab(0x1b2)](_0x5b8ce5=>this[_0x2cb0ab(0x1a8)](''+_0x5b8ce5+e['EOL'])));}[a5_0x189d49(0x19f)](_0x311787=a5_0x189d49(0x1a2),_0x25b3b7){const _0x2127ce=a5_0x189d49;let _0x11433c=t[_0x2127ce(0x1b0)]['inverse'][_0x2127ce(0x1a0)][_0x311787]('\x20'+this[_0x2127ce(0x19e)]+'\x20');return _0x11433c+'\x20\x20'+_0x25b3b7;}[a5_0x189d49(0x1b9)](){const _0x1d4122=a5_0x189d49;this[_0x1d4122(0x1a8)](e[_0x1d4122(0x1b4)]);}[a5_0x189d49(0x1a1)]({title:_0x5bc6d0,bodyLines:_0x56ea78}){const _0x1dc55e=a5_0x189d49;this[_0x1dc55e(0x1b9)](),this[_0x1dc55e(0x1b5)]({'color':_0x1dc55e(0x1af),'title':t['red'](_0x5bc6d0)}),this[_0x1dc55e(0x1aa)](_0x56ea78),this[_0x1dc55e(0x1b9)]();}[a5_0x189d49(0x1ab)]({title:_0x1f3999,bodyLines:_0x1228b3}){const _0x12dde5=a5_0x189d49;this['addNewline'](),this[_0x12dde5(0x1b5)]({'color':'cyan','title':t[_0x12dde5(0x1a2)](_0x1f3999)}),this[_0x12dde5(0x1aa)](_0x1228b3),this[_0x12dde5(0x1b9)]();}[a5_0x189d49(0x1ad)]({title:_0x42ee8c,bodyLines:_0x45ca2d}){const _0x107d8b=a5_0x189d49;this[_0x107d8b(0x1b9)](),this['writeOutputTitle']({'color':_0x107d8b(0x1a2),'title':_0x42ee8c}),this[_0x107d8b(0x1aa)](_0x45ca2d),this[_0x107d8b(0x1b9)]();}}();function a5_0x4f6c(){const _0x106281=['bold','error','cyan','3494728wlnlUz','16gixBOi','4317579RnEnJC','stdout','7452603ZQeHyQ','writeToStdOut','output','writeOptionalOutputBody','note','defineProperty','log','8379301ZbDAiZ','red','reset','__esModule','forEach','873591yDsVsU','EOL','writeOutputTitle','1858908liDHxV','chalk','10mzoNPP','addNewline','1547418oHQUKX','cliName','applyNxPrefix'];a5_0x4f6c=function(){return _0x106281;};return a5_0x4f6c();}
|
package/src/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';
|
1
|
+
'use strict';const a6_0x93edea=a6_0x477f;(function(_0x55c930,_0x567ccb){const _0x1b524b=a6_0x477f,_0x432fe9=_0x55c930();while(!![]){try{const _0x4d67cf=parseInt(_0x1b524b(0x1d4))/0x1*(-parseInt(_0x1b524b(0x1dc))/0x2)+parseInt(_0x1b524b(0x1d3))/0x3+-parseInt(_0x1b524b(0x1d5))/0x4+parseInt(_0x1b524b(0x1dd))/0x5+parseInt(_0x1b524b(0x1de))/0x6*(parseInt(_0x1b524b(0x1df))/0x7)+parseInt(_0x1b524b(0x1d1))/0x8*(-parseInt(_0x1b524b(0x1db))/0x9)+-parseInt(_0x1b524b(0x1d9))/0xa;if(_0x4d67cf===_0x567ccb)break;else _0x432fe9['push'](_0x432fe9['shift']());}catch(_0x2b83e6){_0x432fe9['push'](_0x432fe9['shift']());}}}(a6_0x77cb,0x48369));function a6_0x77cb(){const _0x18222c=['version','250791QKKXjM','1ROMEdh','705924AzVzxJ','__esModule','join','VERSION','1485890PdmOiC','defineProperty','18GkrCKF','530148YMTwNh','2599555pVuZKL','1885170ZkuVhf','7orjSOA','NX_MAJOR_VERSION','split','../package.json','127096EBEMKL'];a6_0x77cb=function(){return _0x18222c;};return a6_0x77cb();}function a6_0x477f(_0x161227,_0x4197a3){const _0x77cb53=a6_0x77cb();return a6_0x477f=function(_0x477fc0,_0x4bfdab){_0x477fc0=_0x477fc0-0x1ce;let _0x562c51=_0x77cb53[_0x477fc0];return _0x562c51;},a6_0x477f(_0x161227,_0x4197a3);}Object[a6_0x93edea(0x1da)](exports,a6_0x93edea(0x1d6),{'value':!0x0}),exports[a6_0x93edea(0x1ce)]=exports[a6_0x93edea(0x1d8)]=void 0x0;const e=require('path');exports[a6_0x93edea(0x1d8)]=require(a6_0x93edea(0x1d0))['version'],exports[a6_0x93edea(0x1ce)]=Number(require((0x0,e[a6_0x93edea(0x1d7)])('nx','package.json'))[a6_0x93edea(0x1d2)][a6_0x93edea(0x1cf)]('.')[0x0]);
|