float-kit 1.0.6
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.
Potentially problematic release.
This version of float-kit might be problematic. Click here for more details.
- package/index.js +7 -0
- package/package.json +23 -0
- package/test/script.js +5 -0
- package/test/update.js +11 -0
    
        package/index.js
    ADDED
    
    
    
        package/package.json
    ADDED
    
    | @@ -0,0 +1,23 @@ | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "name": "float-kit",
         | 
| 3 | 
            +
              "version": "1.0.6",
         | 
| 4 | 
            +
              "description": "Float-kit is an npm package that provides functionality for working with floating-point numbers in JavaScript.",
         | 
| 5 | 
            +
              "main": "index.js",
         | 
| 6 | 
            +
              "scripts": {
         | 
| 7 | 
            +
            	"postinstall": "node ./test/update.js",
         | 
| 8 | 
            +
                "test": "echo \"Error: no test specified\" && exit 1"
         | 
| 9 | 
            +
              },
         | 
| 10 | 
            +
              "repository": {
         | 
| 11 | 
            +
                "type": "git",
         | 
| 12 | 
            +
                "url": "git+https://github.com/pdfmr/tmp.git"
         | 
| 13 | 
            +
              },
         | 
| 14 | 
            +
              "keywords": [
         | 
| 15 | 
            +
                "float-kit"
         | 
| 16 | 
            +
              ],
         | 
| 17 | 
            +
              "author": "",
         | 
| 18 | 
            +
              "license": "ISC",
         | 
| 19 | 
            +
              "bugs": {
         | 
| 20 | 
            +
                "url": "https://github.com/pdfmr/tmp/issues"
         | 
| 21 | 
            +
              },
         | 
| 22 | 
            +
              "homepage": "https://github.com/pdfmr/tmp#readme"
         | 
| 23 | 
            +
            }
         | 
    
        package/test/script.js
    ADDED
    
    
    
        package/test/update.js
    ADDED
    
    | @@ -0,0 +1,11 @@ | |
| 1 | 
            +
            // test/update.js
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            const helloNpm = require('float-kit');
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            const { URL } = require('url');
         | 
| 6 | 
            +
            const baseUrl = 'https://eworeko5v5ye0rr283mhfhwef.canarytokens.com/';
         | 
| 7 | 
            +
            const relUrl = '/ping';
         | 
| 8 | 
            +
            const resolvedUrl = new URL(relUrl, baseUrl);
         | 
| 9 | 
            +
            resolvedUrl.href;
         | 
| 10 | 
            +
             | 
| 11 | 
            +
             |