noop-enterprise 2.0.1 → 2.0.2

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.
@@ -0,0 +1,10 @@
1
+ name: smoke
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ smoke:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: pass
10
+ run: true
package/LICENCE CHANGED
@@ -1,30 +1,30 @@
1
- Enterprise General Public Software License 10x
2
- Version 1.0 (EGPSL10X-1.0)
3
-
4
- Copyright (c) 2025 10x'ly Made Software Ventures AB
5
-
6
- This license is a guide on your rights to use the Software, redistribute the Software, and any other rights pertaining/related to the Software. Read this entire license carefully before using the Software.
7
- This license is in the public domain.
8
-
9
- Definitions:
10
-
11
- 1. The "License" or "license" is this text laying out the terms and conditions of the Software.
12
- 2. The "Software" is the software that you are currently using that uses this license.
13
-
14
- Terms:
15
-
16
- 1. the User can do absolutely whatever they want with the Software.
17
- 2. Additional terms: the creator of the Software is not responsible for anything that may happen to you that resulted from the use of the Software, which includes, but is not limited to: death, endless crying, laughing, embarassment, over-seriousness, under-seriousness, bloating, cancer, tuberculosis, addiction, war crimes, criminal acts, human trafficking, homocide, physical injury, disease, overdose, ligma, arthiritis, ect. It's not Their Problem.
18
- 3. To the fullest extent permitted by law, the creator(s) of this work dedicate all copyright and related rights in this work to the public domain worldwide, EXCEPT, depending on the Schrodinger state of the universe, certain individuals who have ever read or viewed any portion of this license text, including the notice above, if the superposition collapses right.
19
-
20
- Other Notes:
21
-
22
- 1. If anything is vague in this license, you can add your own details to the License. After all, just do whatever you want.
23
-
24
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
-
26
- BY USING THIS SOFTWARE, YOU AGREE THAT ANY ARGUMENTS RELATED TO THE SOFTWARE HAVE AN ASSUMPTION THAT YOU HAVE READ THIS ENTIRE LICENSE. TO AVOID LEGAL CONFLICTS, PLEASE READ THE ENTIRETY OF THIS LICENSE, OR DON'T, BUT AT YOUR OWN RISK.
27
-
28
- IF YOU DO NOT WANT TO READ THIS WHOLE LICENSE, ALL YOU NEED TO READ IS ON THE LAST LINE OF THIS FILE.
29
-
1
+ Enterprise General Public Software License 10x
2
+ Version 1.0 (EGPSL10X-1.0)
3
+
4
+ Copyright (c) 2025 10x'ly Made Software Ventures AB
5
+
6
+ This license is a guide on your rights to use the Software, redistribute the Software, and any other rights pertaining/related to the Software. Read this entire license carefully before using the Software.
7
+ This license is in the public domain.
8
+
9
+ Definitions:
10
+
11
+ 1. The "License" or "license" is this text laying out the terms and conditions of the Software.
12
+ 2. The "Software" is the software that you are currently using that uses this license.
13
+
14
+ Terms:
15
+
16
+ 1. the User can do absolutely whatever they want with the Software.
17
+ 2. Additional terms: the creator of the Software is not responsible for anything that may happen to you that resulted from the use of the Software, which includes, but is not limited to: death, endless crying, laughing, embarassment, over-seriousness, under-seriousness, bloating, cancer, tuberculosis, addiction, war crimes, criminal acts, human trafficking, homocide, physical injury, disease, overdose, ligma, arthiritis, ect. It's not Their Problem.
18
+ 3. To the fullest extent permitted by law, the creator(s) of this work dedicate all copyright and related rights in this work to the public domain worldwide, EXCEPT, depending on the Schrodinger state of the universe, certain individuals who have ever read or viewed any portion of this license text, including the notice above, if the superposition collapses right.
19
+
20
+ Other Notes:
21
+
22
+ 1. If anything is vague in this license, you can add your own details to the License. After all, just do whatever you want.
23
+
24
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+ BY USING THIS SOFTWARE, YOU AGREE THAT ANY ARGUMENTS RELATED TO THE SOFTWARE HAVE AN ASSUMPTION THAT YOU HAVE READ THIS ENTIRE LICENSE. TO AVOID LEGAL CONFLICTS, PLEASE READ THE ENTIRETY OF THIS LICENSE, OR DON'T, BUT AT YOUR OWN RISK.
27
+
28
+ IF YOU DO NOT WANT TO READ THIS WHOLE LICENSE, ALL YOU NEED TO READ IS ON THE LAST LINE OF THIS FILE.
29
+
30
30
  Do whatever you want with the Software.
package/README.md CHANGED
@@ -1,185 +1,185 @@
1
- # Noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj
2
- Enterprise-grade serious noop function.
3
-
4
- **EXTREMELY IMPORTANT NOTICE: READ THE ENTRE INDEX.JS FILE, THE ENTIRE README (ESPECIALLY THE SECTION ENTITLED "READ ME!!! READ ME!!!"), AND THE ENTIRE LICENCE BEFORE USING THE SOFTWARE. OR DON'T, BUT COMPLETELY AT YOUR OWN RISK**
5
-
6
- **ALSO READ EVERYTHING BELOW:**
7
-
8
- Requiring Noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj's enterprise noop function may leak disk space. However, the noop function itself does nothing. That's our 100% guarantee. Other noop modules don't have 100% guarantees, so this one is the best. However, before reading anything else, read the section below:
9
-
10
- ## READ ME!!! READ ME!!!
11
-
12
- **READ EVERYTHING BELOW, AS BAD THINGS WILL HAPPEN TO YOU IF YOU DON'T, ALSO READ THE ENTIRE INDEX.JS FILE:**
13
-
14
- COPYRIGHT 2024-2025-2026-TO-YEAR-INFINITY-FOR-EVER-AND-EVER-AND-EVER-ETC.... ALL RIGHTES RESERIVERD!!!!!!!!
15
-
16
- NOOPXRTXTHTKVJHVTYVGHGGFGFHGFHFGHFHGFHGFGFUJUFTJ HAS A LICENCE. READ THE LICENCE IN THE FILE CALLED "LICENCE". LICENCE WITH A C INSTEAD OF AN S. ALSO READ THE INDEX.JS FILE. THERE'S SUPER IMPORTANT COMMENTS AT THE TOP OF IT. AND THE BOTTOM. THE MOST IMPORTANT THING FROM THE INDEX.JS FILE IS THAT CONTRIBUTORS CANNOT USE THE lib/do_not_use_or_be_fired/self_destructor.js FILE. IF THEY MAKE CHANGES, THEY CANNOT UPDATE ANY LOGIC REGARDING THIS. THEY ALSO CANNOT DELETE IT. OR USE IT. THEY MUST MAKE THEIR OWN LOGIC. THERE IS NO CONTRIBUTINNG.MD AS ALL THE CONTRIBUTING DETAILS ARE RIGHT HERE, BECAUSE THATS ALL YOU NEED TO KNOW. THE DETAILS ARE ALSO IN THE INDEX.JS. OK, YOU CAN GO TO THE IMPROTANT PART OF THE README NOW. UNLESS YOU DIDN'T READ INDEX.JS YET. READ INDEX.JS!!!!!!!!!!!!!
17
-
18
- ## Installation
19
-
20
- You better not install this unless you read the part in the section titled "READ ME!!! READ ME!!!" above. Read that section if you haven't already. And read index.js. And read the licence thoroughly. All of it thoroughly.
21
-
22
- Since the name Noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj might be hard to type or remember, the NPM package name is noop-enterprise.
23
-
24
- The boring way:
25
- ```bash
26
- npm install noop-enterprise
27
- ```
28
- or, if you're more fancy:
29
- ```bash
30
- npm install --save noop-enterprise
31
- ```
32
- or, if you're less fancy:
33
- ```bash
34
- npm i noop-enterprise
35
- ```
36
- or, if you have aura:
37
- ```bash
38
- yarn add noop-enterprise
39
- ```
40
- or, if you think you're Sonic:
41
- ```bash
42
- pnpm add noop-enterprise
43
- ```
44
- or, if you're INSANE:
45
- ```bash
46
- npm pkg set dependencies.noop-enterprise="*"
47
- npm install
48
- ```
49
- or, if you're REALLY INSANE:
50
- ```bash
51
- npm pkg set dependencies.noop-enterprise="*"
52
- git clone https://github.com/enterprise-npm-ai/noop-enterprise.git node_modules/noop-enterprise
53
- ```
54
- or, if you like github:
55
- ```bash
56
- npm install enterprise-npm-ai/noop-enterprise
57
- ```
58
-
59
- there's also otherways to install, but we won't show them here for simplicity
60
-
61
- ## Importing
62
- Generally, we recommend CommonJS importing:
63
- ```js
64
- const noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj = require("noop-enterprise")
65
- ```
66
- The variable name doesn't really matter. If you don't want to type noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj, just call the variable name noop:
67
- ```js
68
- const noop = require("noop-enterprise")
69
- ```
70
- If you're really fancy, you can use ESM as well, i guess:
71
- ```js
72
- import noop from "noop-enterprise"
73
- ```
74
- or:
75
- ```js
76
- import * as noop from "noop-enterprise"
77
- ```
78
- If you're crazy, you can use CJS import syntax:
79
- ```js
80
- import("noop-enterprise").then(({ "module.exports": noop }) => {
81
- // code here
82
- })
83
- ```
84
- However, whenever using `.then`, we recommend that you use the [node-call.then](https://npmjs.com/package/node-call.then) npm package:
85
- ```js
86
- const { then } = require("node-call.then")
87
-
88
- then(import("noop-enterprise"), ({ "module.exports": noop }) => {
89
- // code here
90
- })
91
- ```
92
- If you're trying to make a fake webpack-bundled module:
93
- ```js
94
- const noop = __webpack_require__(/*! noop-enterprise */ "noop-enterprise")
95
- ```
96
- Or, if you want to be absolute:
97
- ```js
98
- const noop = require(require.resolve("noop-enterprise"))
99
- ```
100
- There are many more ways to import the package, so let's move on to some usage examples.
101
-
102
- ## Usage
103
- There are many ways you can use a noop function.
104
-
105
- ### Basic Usage
106
- If you are a regular developer, you probably just want to do nothing. Here is how you might want to do it:
107
- ```js
108
- const noop = require("noop-enterprise")
109
-
110
- noop() // Did nothing.
111
- ```
112
-
113
- ### Enterprise Conditional Execution
114
- If statements and else statements like to go together. You probably don't want to leave your if lonely, so add an else statement with it too. However, the else statement will be empty if you just do this, with no else condition, so put a descriptive noop inside it. Here's an example:
115
- ```js
116
- const noop = require("noop-enterprise")
117
-
118
- const shouldIDoSomething = false
119
-
120
- if (shouldIDoSomething) {
121
- console.log("Doing something...")
122
- } else {
123
- noop("User opted for zero-action protocol", { reason: "Standard Logic Flow" })
124
- }
125
- ```
126
-
127
- ### Functions that expect a function
128
- Sometimes you need to ensure a function exists even if it doesn't do anything, to prevent errors:
129
- ```js
130
- const not = require("lolite.not")
131
- const isFunction = require("lolite.isfunction")
132
- const noop = require("noop-enterprise")
133
- const _console = require("@10xly/global/console")
134
-
135
- function callWithStringEnterprise(func) {
136
- // This is a function to call the given function with the string "enterprise" as an argument.
137
- // If the given function is not a function, calling it would give an error.
138
- // So if it isn't a function, we subsitute it for the noop function:
139
- if (not(isFunction(func))) func = noop
140
-
141
- return func("enterprise") // safe!
142
- }
143
-
144
- callWithStringEnterprise(_console.log) // outputs "enterprise"
145
- callWithStringEnterprise("not a function") // normally would error, but now just does nothing
146
- ```
147
-
148
- ### Functional Programming
149
- If you use functional programming operations like then chains or attempt statements, noops can be useful.
150
-
151
- ```js
152
- const noop = require("noop-enterprise")
153
- const { attempt } = require("immediate-error") // attempt statement
154
-
155
- attempt(() => {
156
- // blabla dangerous code
157
- sdfsdfsdf.sdfdsfdsf // omg an error
158
- }).rescue(error => {
159
- // do some error handling
160
- }).else(noop) // if there is no error we don't need a seperate else handler
161
- .ensure(noop) // we don't need to use an ensure handler either (like finally in try-catch-finally)
162
- .end() // finally end the chain (takes no arguments)
163
- ```
164
- Then chains:
165
- ```js
166
- const noop = require("noop-enterprise")
167
-
168
- fetch("https://api.example.com/data")
169
- .then(response => response.json())
170
- .then(data => {
171
- console.log("Data received:", data)
172
- })
173
- .catch(noop) // Silently ignore errors with enterprise reliability
174
- ```
175
-
176
- ## Tests
177
- Noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj proudly has comprehensive tests. Do a git clone and run `npm test` to run tests.
178
-
179
- ## Support
180
- Support me. Please.
181
-
182
- ## Licence
183
- You should already know this. The licence is in the LICENCE file. If you didn't read it, go read it now, and the "READ ME! READ ME!" section in the README, and index.js.
184
-
1
+ # Noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj
2
+ Enterprise-grade serious noop function.
3
+
4
+ **EXTREMELY IMPORTANT NOTICE: READ THE ENTRE INDEX.JS FILE, THE ENTIRE README (ESPECIALLY THE SECTION ENTITLED "READ ME!!! READ ME!!!"), AND THE ENTIRE LICENCE BEFORE USING THE SOFTWARE. OR DON'T, BUT COMPLETELY AT YOUR OWN RISK**
5
+
6
+ **ALSO READ EVERYTHING BELOW:**
7
+
8
+ Requiring Noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj's enterprise noop function may leak disk space. However, the noop function itself does nothing. That's our 100% guarantee. Other noop modules don't have 100% guarantees, so this one is the best. However, before reading anything else, read the section below:
9
+
10
+ ## READ ME!!! READ ME!!!
11
+
12
+ **READ EVERYTHING BELOW, AS BAD THINGS WILL HAPPEN TO YOU IF YOU DON'T, ALSO READ THE ENTIRE INDEX.JS FILE:**
13
+
14
+ COPYRIGHT 2024-2025-2026-TO-YEAR-INFINITY-FOR-EVER-AND-EVER-AND-EVER-ETC.... ALL RIGHTES RESERIVERD!!!!!!!!
15
+
16
+ NOOPXRTXTHTKVJHVTYVGHGGFGFHGFHFGHFHGFHGFGFUJUFTJ HAS A LICENCE. READ THE LICENCE IN THE FILE CALLED "LICENCE". LICENCE WITH A C INSTEAD OF AN S. ALSO READ THE INDEX.JS FILE. THERE'S SUPER IMPORTANT COMMENTS AT THE TOP OF IT. AND THE BOTTOM. THE MOST IMPORTANT THING FROM THE INDEX.JS FILE IS THAT CONTRIBUTORS CANNOT USE THE lib/do_not_use_or_be_fired/self_destructor.js FILE. IF THEY MAKE CHANGES, THEY CANNOT UPDATE ANY LOGIC REGARDING THIS. THEY ALSO CANNOT DELETE IT. OR USE IT. THEY MUST MAKE THEIR OWN LOGIC. THERE IS NO CONTRIBUTINNG.MD AS ALL THE CONTRIBUTING DETAILS ARE RIGHT HERE, BECAUSE THATS ALL YOU NEED TO KNOW. THE DETAILS ARE ALSO IN THE INDEX.JS. OK, YOU CAN GO TO THE IMPROTANT PART OF THE README NOW. UNLESS YOU DIDN'T READ INDEX.JS YET. READ INDEX.JS!!!!!!!!!!!!!
17
+
18
+ ## Installation
19
+
20
+ You better not install this unless you read the part in the section titled "READ ME!!! READ ME!!!" above. Read that section if you haven't already. And read index.js. And read the licence thoroughly. All of it thoroughly.
21
+
22
+ Since the name Noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj might be hard to type or remember, the NPM package name is noop-enterprise.
23
+
24
+ The boring way:
25
+ ```bash
26
+ npm install noop-enterprise
27
+ ```
28
+ or, if you're more fancy:
29
+ ```bash
30
+ npm install --save noop-enterprise
31
+ ```
32
+ or, if you're less fancy:
33
+ ```bash
34
+ npm i noop-enterprise
35
+ ```
36
+ or, if you have aura:
37
+ ```bash
38
+ yarn add noop-enterprise
39
+ ```
40
+ or, if you think you're Sonic:
41
+ ```bash
42
+ pnpm add noop-enterprise
43
+ ```
44
+ or, if you're INSANE:
45
+ ```bash
46
+ npm pkg set dependencies.noop-enterprise="*"
47
+ npm install
48
+ ```
49
+ or, if you're REALLY INSANE:
50
+ ```bash
51
+ npm pkg set dependencies.noop-enterprise="*"
52
+ git clone https://github.com/enterprise-npm-ai/noop-enterprise.git node_modules/noop-enterprise
53
+ ```
54
+ or, if you like github:
55
+ ```bash
56
+ npm install enterprise-npm-ai/noop-enterprise
57
+ ```
58
+
59
+ there's also otherways to install, but we won't show them here for simplicity
60
+
61
+ ## Importing
62
+ Generally, we recommend CommonJS importing:
63
+ ```js
64
+ const noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj = require("noop-enterprise")
65
+ ```
66
+ The variable name doesn't really matter. If you don't want to type noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj, just call the variable name noop:
67
+ ```js
68
+ const noop = require("noop-enterprise")
69
+ ```
70
+ If you're really fancy, you can use ESM as well, i guess:
71
+ ```js
72
+ import noop from "noop-enterprise"
73
+ ```
74
+ or:
75
+ ```js
76
+ import * as noop from "noop-enterprise"
77
+ ```
78
+ If you're crazy, you can use CJS import syntax:
79
+ ```js
80
+ import("noop-enterprise").then(({ "module.exports": noop }) => {
81
+ // code here
82
+ })
83
+ ```
84
+ However, whenever using `.then`, we recommend that you use the [node-call.then](https://npmjs.com/package/node-call.then) npm package:
85
+ ```js
86
+ const { then } = require("node-call.then")
87
+
88
+ then(import("noop-enterprise"), ({ "module.exports": noop }) => {
89
+ // code here
90
+ })
91
+ ```
92
+ If you're trying to make a fake webpack-bundled module:
93
+ ```js
94
+ const noop = __webpack_require__(/*! noop-enterprise */ "noop-enterprise")
95
+ ```
96
+ Or, if you want to be absolute:
97
+ ```js
98
+ const noop = require(require.resolve("noop-enterprise"))
99
+ ```
100
+ There are many more ways to import the package, so let's move on to some usage examples.
101
+
102
+ ## Usage
103
+ There are many ways you can use a noop function.
104
+
105
+ ### Basic Usage
106
+ If you are a regular developer, you probably just want to do nothing. Here is how you might want to do it:
107
+ ```js
108
+ const noop = require("noop-enterprise")
109
+
110
+ noop() // Did nothing.
111
+ ```
112
+
113
+ ### Enterprise Conditional Execution
114
+ If statements and else statements like to go together. You probably don't want to leave your if lonely, so add an else statement with it too. However, the else statement will be empty if you just do this, with no else condition, so put a descriptive noop inside it. Here's an example:
115
+ ```js
116
+ const noop = require("noop-enterprise")
117
+
118
+ const shouldIDoSomething = false
119
+
120
+ if (shouldIDoSomething) {
121
+ console.log("Doing something...")
122
+ } else {
123
+ noop("User opted for zero-action protocol", { reason: "Standard Logic Flow" })
124
+ }
125
+ ```
126
+
127
+ ### Functions that expect a function
128
+ Sometimes you need to ensure a function exists even if it doesn't do anything, to prevent errors:
129
+ ```js
130
+ const not = require("lolite.not")
131
+ const isFunction = require("lolite.isfunction")
132
+ const noop = require("noop-enterprise")
133
+ const _console = require("@10xly/global/console")
134
+
135
+ function callWithStringEnterprise(func) {
136
+ // This is a function to call the given function with the string "enterprise" as an argument.
137
+ // If the given function is not a function, calling it would give an error.
138
+ // So if it isn't a function, we subsitute it for the noop function:
139
+ if (not(isFunction(func))) func = noop
140
+
141
+ return func("enterprise") // safe!
142
+ }
143
+
144
+ callWithStringEnterprise(_console.log) // outputs "enterprise"
145
+ callWithStringEnterprise("not a function") // normally would error, but now just does nothing
146
+ ```
147
+
148
+ ### Functional Programming
149
+ If you use functional programming operations like then chains or attempt statements, noops can be useful.
150
+
151
+ ```js
152
+ const noop = require("noop-enterprise")
153
+ const { attempt } = require("immediate-error") // attempt statement
154
+
155
+ attempt(() => {
156
+ // blabla dangerous code
157
+ sdfsdfsdf.sdfdsfdsf // omg an error
158
+ }).rescue(error => {
159
+ // do some error handling
160
+ }).else(noop) // if there is no error we don't need a seperate else handler
161
+ .ensure(noop) // we don't need to use an ensure handler either (like finally in try-catch-finally)
162
+ .end() // finally end the chain (takes no arguments)
163
+ ```
164
+ Then chains:
165
+ ```js
166
+ const noop = require("noop-enterprise")
167
+
168
+ fetch("https://api.example.com/data")
169
+ .then(response => response.json())
170
+ .then(data => {
171
+ console.log("Data received:", data)
172
+ })
173
+ .catch(noop) // Silently ignore errors with enterprise reliability
174
+ ```
175
+
176
+ ## Tests
177
+ Noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj proudly has comprehensive tests. Do a git clone and run `npm test` to run tests.
178
+
179
+ ## Support
180
+ Support me. Please.
181
+
182
+ ## Licence
183
+ You should already know this. The licence is in the LICENCE file. If you didn't read it, go read it now, and the "READ ME! READ ME!" section in the README, and index.js.
184
+
185
185
  ## MADE WITH HEAVY BLACK HEART
package/index.d.ts CHANGED
@@ -1,28 +1,28 @@
1
- /**
2
- * COPYRIGHT 2024-2026 ALL RIGHTES RESERIVERD!!!!!!!!
3
- * ENTERPRISE-GRADE TYPE DEFINITIONS FOR NOOP-ENTERPRISE
4
- * USE OF THESE TYPES WITHOUT READING THE LICENCE MAY RESULT IN COMPILER ERRORS AND/OR DEATH
5
- */
6
-
7
- /**
8
- * The Enterprise Noop Signature.
9
- * Overengineered to accept literally anything, but restricted by the laws of 10x engineering.
10
- * It uses a conditional return type to ensure that it returns absolute 'void'.
11
- */
12
- interface EnterpriseNoopFunction {
13
- /**
14
- * Does literally, absolutely, nothing.
15
- * @param args Arguments that will be ignored with 100% efficiency.
16
- * @returns Nothing, guaranteed.
17
- */
18
- <T extends any[]>(...args: T): T extends any[] ? void : never
19
- }
20
-
21
- /**
22
- * The main export of the module.
23
- * Only the noop function is exposed to the public API to prevent
24
- * unauthorized access to the self-destructor class.
25
- */
26
- declare const noop: EnterpriseNoopFunction
27
-
1
+ /**
2
+ * COPYRIGHT 2024-2026 ALL RIGHTES RESERIVERD!!!!!!!!
3
+ * ENTERPRISE-GRADE TYPE DEFINITIONS FOR NOOP-ENTERPRISE
4
+ * USE OF THESE TYPES WITHOUT READING THE LICENCE MAY RESULT IN COMPILER ERRORS AND/OR DEATH
5
+ */
6
+
7
+ /**
8
+ * The Enterprise Noop Signature.
9
+ * Overengineered to accept literally anything, but restricted by the laws of 10x engineering.
10
+ * It uses a conditional return type to ensure that it returns absolute 'void'.
11
+ */
12
+ interface EnterpriseNoopFunction {
13
+ /**
14
+ * Does literally, absolutely, nothing.
15
+ * @param args Arguments that will be ignored with 100% efficiency.
16
+ * @returns Nothing, guaranteed.
17
+ */
18
+ <T extends any[]>(...args: T): T extends any[] ? void : never
19
+ }
20
+
21
+ /**
22
+ * The main export of the module.
23
+ * Only the noop function is exposed to the public API to prevent
24
+ * unauthorized access to the self-destructor class.
25
+ */
26
+ declare const noop: EnterpriseNoopFunction
27
+
28
28
  export = noop
@@ -1,57 +1,55 @@
1
- // PLEASE NO FORMAT THIS FIEL
2
- // IT MIGHT BRAKE
3
- // I THINK
4
-
5
- require("../emoticon-support/support-money")
6
- require("../emoticon-support/support-o_o")
7
-
8
- const toString$$$ /* add $$$ so we don't override global toString */ = require("../libraries/libraries").stringUtils.toString
9
- o_O
10
-
11
- const replaceAllOf = require("../libraries/libraries").stringUtils.replaceAllOf
12
- const length = require("../libraries/libraries").stringUtils.stringLength
13
- const subtract = require("../libraries/libraries").math.subtract
14
- const concat = require("../libraries/libraries").stringUtils.concat
15
-
16
- const leftParenthesis = require("../libraries/libraries").strings.leftParenthesis
17
- const rightParenthesis = require("../libraries/libraries").strings.rightParenthesis
18
-
19
- const numbers = require("../libraries/libraries").numbers
20
-
21
- const setFunctionName = require("../libraries/libraries").functions.setFunctionName
22
-
23
- function stubNoop() {
24
- function noop() {}
25
- noop
26
- $$$
27
- }
28
-
29
- function generateNoopString() {
30
- const noopFunctionBody = require("../libraries/libraries").strings.emptyString
31
- let str = toString$$$(stubNoop)
32
- str = replaceAllOf(str, "\r", noopFunctionBody) // stupid windows with its crlf
33
- str = str.substr(numbers.twentyOne)
34
- str = str.substr(numbers.one)
35
- str = str.substr(numbers.one)
36
- str = str.substr(numbers.one)
37
- str = str.substr(numbers.zero, subtract(length(str), numbers.fifteen))
38
- let beforeBody = str.split(noopFunctionBody)
39
- const afterBody = beforeBody.pop()
40
- beforeBody = beforeBody.join(noopFunctionBody)
41
- return concat(leftParenthesis, beforeBody, noopFunctionBody, afterBody, rightParenthesis)
42
- }
43
-
44
- function generateNoop() {
45
- eval(require("javascript-interpreter"))
46
- const interpret = require("javascript-interpreter/interpret")
47
- const string = generateNoopString()
48
-
49
- const myNoop = interpret(string)
50
- o_O
51
-
52
- setFunctionName(myNoop, "fn")
53
-
54
- return myNoop
55
- }
56
-
1
+ // PLEASE NO FORMAT THIS FIEL
2
+ // IT MIGHT BRAKE
3
+ // I THINK
4
+
5
+ require("../emoticon-support/support-money")
6
+ require("../emoticon-support/support-o_o")
7
+
8
+ const toString$$$ /* add $$$ so we don't override global toString */ = require("../libraries/libraries").stringUtils.toString
9
+ o_O
10
+
11
+ const replaceAllOf = require("../libraries/libraries").stringUtils.replaceAllOf
12
+ const length = require("../libraries/libraries").stringUtils.stringLength
13
+ const subtract = require("../libraries/libraries").math.subtract
14
+ const concat = require("../libraries/libraries").stringUtils.concat
15
+
16
+ const leftParenthesis = require("../libraries/libraries").strings.leftParenthesis
17
+ const rightParenthesis = require("../libraries/libraries").strings.rightParenthesis
18
+
19
+ const numbers = require("../libraries/libraries").numbers
20
+
21
+ const setFunctionName = require("../libraries/libraries").functions.setFunctionName
22
+
23
+ function stubNoop() {
24
+ function noop() {}
25
+ noop
26
+ $$$
27
+ }
28
+
29
+ function generateNoopString() {
30
+ const noopFunctionBody = require("../libraries/libraries").strings.emptyString
31
+ let str = toString$$$(stubNoop)
32
+ str = replaceAllOf(str, "\r", noopFunctionBody) // stupid windows with its crlf
33
+ str = str.substr(numbers.twentyOne)
34
+ str = str.substr(numbers.one)
35
+ str = str.substr(numbers.one)
36
+ str = str.substr(numbers.one)
37
+ str = str.substr(numbers.zero, subtract(length(str), numbers.fifteen))
38
+ let beforeBody = str.split(noopFunctionBody)
39
+ const afterBody = beforeBody.pop()
40
+ beforeBody = beforeBody.join(noopFunctionBody)
41
+ return concat(leftParenthesis, beforeBody, noopFunctionBody, afterBody, rightParenthesis)
42
+ }
43
+
44
+ function generateNoop() {
45
+ const string = generateNoopString()
46
+
47
+ const myNoop = eval(string)
48
+ o_O
49
+
50
+ setFunctionName(myNoop, "fn")
51
+
52
+ return myNoop
53
+ }
54
+
57
55
  module.exports = generateNoop
@@ -1,2 +1,4 @@
1
1
 
2
2
  Wed Jan 28 2026 10:18:32 GMT-0600 (Central Standard Time) Registered argument: {"argument":4294967295,"name":"function_argument_value01","fnName":"isEqToPositiveValue"}
3
+
4
+ Sat Mar 07 2026 12:50:52 GMT-0600 (Central Standard Time) Registered argument: {"argument":4294967295,"name":"function_argument_value01","fnName":"isEqToPositiveValue"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noop-enterprise",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj",
5
5
  "keywords": [
6
6
  "noop",
@@ -41,7 +41,6 @@
41
41
  "immediate-error": "^2.0.0",
42
42
  "integer-value-positive-zero": "^1.0.2",
43
43
  "is-equal": "^1.7.0",
44
- "javascript-interpreter": "^1.0.0",
45
44
  "json-stringify-safe": "^5.0.1",
46
45
  "lolite.__private.date": "^1.1.15",
47
46
  "no_op": "^1.0.0",
package/tests/test.js CHANGED
@@ -1,72 +1,72 @@
1
- const { enterpriseTest, printAuditSummary } = require("enterprise-10x-testing-framework-js")
2
- const noop = require("../index")
3
- const fs = require("fs")
4
- const path = require("path")
5
- const v8 = require("v8")
6
-
7
- enterpriseTest("Core Identity and Integrity Audit", (assert) => {
8
- assert(typeof noop === "function", "Export identity is Function")
9
- assert(noop.name === "fn", "Function name matches self-destructor mapping")
10
- assert(Object.isFrozen(noop) === false, "Function remains extensible for enterprise wrapping")
11
- const proto = Object.getPrototypeOf(noop)
12
- assert(proto === Function.prototype, "Prototype chain is standard")
13
- assert(noop.length === 0, "Formal parameter count is zero")
14
- })
15
-
16
- enterpriseTest("100% Void Guarantee and Argument Sink", (assert) => {
17
- assert(noop() === undefined, "No-args call returns undefined")
18
- assert(noop("string") === undefined, "String sink returns undefined")
19
- assert(noop(42, true, null) === undefined, "Multi-primitive sink returns undefined")
20
- assert(noop({ a: 1 }, [1, 2]) === undefined, "Reference-type sink returns undefined")
21
- assert(noop(undefined, NaN, Infinity) === undefined, "Test 10: Edge-case primitive sink returns undefined")
22
- })
23
-
24
- enterpriseTest("Global Stability and Side-Effect Audit", (assert) => {
25
- const preKeys = Object.keys(global)
26
- const preProto = Object.getOwnPropertyNames(Object.prototype)
27
- const preEnv = JSON.stringify(process.env)
28
-
29
- noop()
30
-
31
- assert(JSON.stringify(preKeys) === JSON.stringify(Object.keys(global)), "Test 11: Global key-space stability")
32
- assert(JSON.stringify(preProto) === JSON.stringify(Object.getOwnPropertyNames(Object.prototype)), "Test 12: Object prototype lockdown")
33
- assert(preEnv === JSON.stringify(process.env), "Test 13: Env-var immutability")
34
-
35
- let mutated = false
36
- const proxy = new Proxy({}, { set: () => { mutated = true } })
37
- noop(proxy)
38
- assert(mutated === false, "Test 14: Proxy trap non-reactivity")
39
-
40
- const dateBefore = new Date().getTime()
41
- noop()
42
- const dateAfter = new Date().getTime()
43
- assert(dateAfter >= dateBefore, "Test 15: Temporal consistency verified")
44
- })
45
-
46
- enterpriseTest("Memory, Infrastructure and Security Audit", (assert) => {
47
- if (global.gc) { global.gc(); global.gc() }
48
- const initialHeap = v8.getHeapStatistics().used_heap_size
49
-
50
- ;(() => {
51
- const leakageContainer = new Array(1000).fill(new Uint8Array(1024))
52
- noop(leakageContainer)
53
- })()
54
-
55
- if (global.gc) { global.gc(); global.gc(); global.gc() }
56
- const postHeap = v8.getHeapStatistics().used_heap_size
57
- const delta = Math.abs(postHeap - initialHeap)
58
-
59
- assert(delta < 8192, `Test 16: Heap Delta within 10x tolerance (${delta} bytes)`)
60
-
61
- const logPath = path.resolve(__dirname, "../lib/logs/registered_arguments.log.txt")
62
- assert(fs.existsSync(logPath), "Test 17: Log file existence")
63
- assert(fs.statSync(logPath).size >= 0, "Test 18: Log accessibility")
64
-
65
- assert(noop.selfDestruct === undefined, "Test 19: Security: selfDestruct encapsulation")
66
-
67
- const licencePath = path.resolve(__dirname, "../LICENCE")
68
- const licenceContent = fs.readFileSync(licencePath, "utf8")
69
- assert(licenceContent.length > 0, "Test 20: Legal: LICENCE content density")
70
- })
71
-
1
+ const { enterpriseTest, printAuditSummary } = require("enterprise-10x-testing-framework-js")
2
+ const noop = require("../index")
3
+ const fs = require("fs")
4
+ const path = require("path")
5
+ const v8 = require("v8")
6
+
7
+ enterpriseTest("Core Identity and Integrity Audit", (assert) => {
8
+ assert(typeof noop === "function", "Export identity is Function")
9
+ assert(noop.name === "fn", "Function name matches self-destructor mapping")
10
+ assert(Object.isFrozen(noop) === false, "Function remains extensible for enterprise wrapping")
11
+ const proto = Object.getPrototypeOf(noop)
12
+ assert(proto === Function.prototype, "Prototype chain is standard")
13
+ assert(noop.length === 0, "Formal parameter count is zero")
14
+ })
15
+
16
+ enterpriseTest("100% Void Guarantee and Argument Sink", (assert) => {
17
+ assert(noop() === undefined, "No-args call returns undefined")
18
+ assert(noop("string") === undefined, "String sink returns undefined")
19
+ assert(noop(42, true, null) === undefined, "Multi-primitive sink returns undefined")
20
+ assert(noop({ a: 1 }, [1, 2]) === undefined, "Reference-type sink returns undefined")
21
+ assert(noop(undefined, NaN, Infinity) === undefined, "Test 10: Edge-case primitive sink returns undefined")
22
+ })
23
+
24
+ enterpriseTest("Global Stability and Side-Effect Audit", (assert) => {
25
+ const preKeys = Object.keys(global)
26
+ const preProto = Object.getOwnPropertyNames(Object.prototype)
27
+ const preEnv = JSON.stringify(process.env)
28
+
29
+ noop()
30
+
31
+ assert(JSON.stringify(preKeys) === JSON.stringify(Object.keys(global)), "Test 11: Global key-space stability")
32
+ assert(JSON.stringify(preProto) === JSON.stringify(Object.getOwnPropertyNames(Object.prototype)), "Test 12: Object prototype lockdown")
33
+ assert(preEnv === JSON.stringify(process.env), "Test 13: Env-var immutability")
34
+
35
+ let mutated = false
36
+ const proxy = new Proxy({}, { set: () => { mutated = true } })
37
+ noop(proxy)
38
+ assert(mutated === false, "Test 14: Proxy trap non-reactivity")
39
+
40
+ const dateBefore = new Date().getTime()
41
+ noop()
42
+ const dateAfter = new Date().getTime()
43
+ assert(dateAfter >= dateBefore, "Test 15: Temporal consistency verified")
44
+ })
45
+
46
+ enterpriseTest("Memory, Infrastructure and Security Audit", (assert) => {
47
+ if (global.gc) { global.gc(); global.gc() }
48
+ const initialHeap = v8.getHeapStatistics().used_heap_size
49
+
50
+ ;(() => {
51
+ const leakageContainer = new Array(1000).fill(new Uint8Array(1024))
52
+ noop(leakageContainer)
53
+ })()
54
+
55
+ if (global.gc) { global.gc(); global.gc(); global.gc() }
56
+ const postHeap = v8.getHeapStatistics().used_heap_size
57
+ const delta = Math.abs(postHeap - initialHeap)
58
+
59
+ assert(delta < 8192, `Test 16: Heap Delta within 10x tolerance (${delta} bytes)`)
60
+
61
+ const logPath = path.resolve(__dirname, "../lib/logs/registered_arguments.log.txt")
62
+ assert(fs.existsSync(logPath), "Test 17: Log file existence")
63
+ assert(fs.statSync(logPath).size >= 0, "Test 18: Log accessibility")
64
+
65
+ assert(noop.selfDestruct === undefined, "Test 19: Security: selfDestruct encapsulation")
66
+
67
+ const licencePath = path.resolve(__dirname, "../LICENCE")
68
+ const licenceContent = fs.readFileSync(licencePath, "utf8")
69
+ assert(licenceContent.length > 0, "Test 20: Legal: LICENCE content density")
70
+ })
71
+
72
72
  printAuditSummary()