Skip to content

Instantly share code, notes, and snippets.

View romk1n's full-sized avatar

Roman romk1n

  • London
View GitHub Profile
@romk1n
romk1n / gist:9bd90661e91f98bd5709
Created May 21, 2015 23:38
Problem adding owner to repository
render_error function raised error: (new TypeError("tempbody['dist-tags'] is undefined", "updates.package", 12))
stacktrace: ([object Object],[object Object])@updates.package:12
runUpdate(function (doc, req) {require("monkeypatch").patch(Object, Date, Array, String);var tempbody = JSON.parse(req.body);if (tempbody._npmVersion) {if (tempbody._npmVersion != "1.3.4") {return error("This version of plugman publish is broken, please update plugman with npm install -g plugman@latest.");}} else {var latest = tempbody['dist-tags'].latest;if (latest) {if (tempbody.versions[latest]._npmVersion != "1.3.4") {return error("This version of plugman publish is broken, please update plugman with npm install -g plugman@latest.");}}}var semver = require("semver");var valid = require("valid");
function error(reason) {return [{_id: "error: forbidden", forbidden: reason}, JSON.stringify({forbidden: reason})];}
function ok(doc, message) {delete doc.mtime;delete doc.ctime;var time = doc.time = doc.time || {};time.modified = (new
@romk1n
romk1n / Keybase.md
Created May 16, 2019 06:30
Keybase

Keybase proof

I hereby claim:

  • I am romk1n on github.
  • I am ramzez (https://keybase.io/ramzez) on keybase.
  • I have a public key ASAPGKV1sf0o6wQNKIrsz-YNZdNqq5Jy0o8r8l5WUSvNeQo

To claim this, I am signing this object: