Socket
Socket
Sign inDemoInstall

git-tags-remote

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

5

dist/index.d.ts
export declare const get: (repo: string) => Promise<Map<string, string>>;
export declare const latest: (repo: string) => Promise<[string, string]>;
declare const _default: {
get: (repo: string) => Promise<Map<string, string>>;
latest: (repo: string) => Promise<[string, string]>;
};
export default _default;
//# sourceMappingURL=index.d.ts.map

2

dist/index.js

@@ -16,3 +16,3 @@ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("semver"),t=require("child_process");

***************************************************************************** */
function r(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}const n=n=>r(void 0,void 0,void 0,(function*(){var r;return(t=>{const r=new Map;return t.split("\n").forEach((e=>{const t=e.split(/\t/);r.set(t[1].split("/")[2].replace(/\^\{\}$/,""),t[0])})),new Map([...r.entries()].filter((t=>e.valid(t[0]))).sort(((t,r)=>e.compare(t[0],r[0]))).reverse())})(yield(r=n,new Promise(((e,n)=>{let o="",i="";const s=t.spawn("git",["ls-remote","--tags",r]);s.stdout.on("data",(e=>{i+=e})),s.stderr.on("data",(e=>{o+=e})),s.on("error",n),s.on("close",(t=>{(0!==t||o.length)&&n(new Error(o)),e(i.toString().trim())}))}))))})),o=e=>r(void 0,void 0,void 0,(function*(){return(yield n(e)).entries().next().value}));module.exports={get:n,latest:o},exports.get=n,exports.latest=o;
function r(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}const n=n=>r(void 0,void 0,void 0,(function*(){var r;return(t=>{const r=new Map;return t.split("\n").forEach((e=>{const t=e.split(/\t/);r.set(t[1].split("/")[2].replace(/\^\{\}$/,""),t[0])})),new Map([...r.entries()].filter((t=>e.valid(t[0]))).sort(((t,r)=>e.compare(t[0],r[0]))).reverse())})(yield(r=n,new Promise(((e,n)=>{let o="",i="";const s=t.spawn("git",["ls-remote","--tags",r]);s.stdout.on("data",(e=>{i+=e})),s.stderr.on("data",(e=>{o+=e})),s.on("error",n),s.on("close",(t=>{(0!==t||o.length)&&n(new Error(o)),e(i.toString().trim())}))}))))})),o=e=>r(void 0,void 0,void 0,(function*(){return(yield n(e)).entries().next().value}));var i={get:n,latest:o};exports.default=i,exports.get=n,exports.latest=o;
//# sourceMappingURL=index.js.map
{
"name": "git-tags-remote",
"version": "1.0.4",
"version": "1.0.5",
"description": "Get remote repository tags.",

@@ -47,7 +47,7 @@ "keywords": [

"@types/semver": "^7.3.1",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"ava": "^3.11.1",
"eslint": "^7.6.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint": "^8.4.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.22.0",

@@ -59,4 +59,5 @@ "esm": "^3.2.25",

"standard-version": "^9.3.0",
"tslib": "^2.3.0",
"typescript": "^4.3.4"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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