Socket
Socket
Sign inDemoInstall

@ossmo/client

Package Overview
Dependencies
173
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

.package.json.swo

17

lib/util.js

@@ -25,2 +25,14 @@ /**

* npm package cannot have uppercaes letters in the name. So we can use this as escape character. And convert to unicode char codes. e.g. "U0026__" instead of "&"
*
*
* FIXME: 1-24-2019:
* This mapping doesn't actually work.
* We can pass uppercase letters to the prohashing groupname,
* it doesn't complain, but the streaming API does convert the letters to lowercase,
* thus breaking our mapping.
* So neither npm package names nor prohashing groups really allow uppercase lettes.
*
* Temporary workaround: use lowercase u instead of uppercase. This will break
* in case there is a package name that includes character sequence that
* matches regexp /u(\d+)__/g
*/

@@ -36,9 +48,8 @@

return name.replace(re, function(match, offset, string){
return 'U' + match.charCodeAt(0) + '__';
return 'u' + match.charCodeAt(0) + '__';
})
}
function prohashingGroupNameToNpmPkgName(name){
const re = /U(\d+)__/g; //escape code
const re = /u(\d+)__/g; //escape code
return name.replace(re, function(match, p1, offset, string){

@@ -45,0 +56,0 @@ return String.fromCharCode(parseInt(p1));

16

package.json
{
"name": "@ossmo/client",
"version": "1.0.2",
"version": "1.0.3",
"description": "Mine cryptocurrency to support open source sorftware projects.",
"author": {
"name": "Jacob Beard",
"email": "jake@jacobeanrnd.com",
"btc": "3FjAWbhkXJGaPfz8mCqCufsBvQ4UgGdH5y"
"email": "jake@jacobeanrnd.com"
},
"homepage": "",
"tips": {
"jake@jacobeanrnd.com": {
"btc": "3FjAWbhkXJGaPfz8mCqCufsBvQ4UgGdH5y"
}
},
"homepage": "https://gitlab.com/jbeard4/ossmo",
"license": "Apache-2.0",

@@ -17,6 +21,6 @@ "main": "lib/ossmo-client.js",

"dependencies": {
"@ossmo/my-multi-miner": "^1.0.2",
"@ossmo/my-multi-miner": "^1.0.3",
"enquirer": "^2.3.0"
},
"gitHead": "a850c2148d84c1149a3de86f90d8f2d23f3541b2"
"gitHead": "a6897a5d20bde3efbbb68b4c2e1d6fbbd04f9fb1"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc