@commercelayer/cli-dev
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -6,5 +6,5 @@ "use strict"; | ||
const fs = tslib_1.__importStar(require("fs-extra")); | ||
const _ = tslib_1.__importStar(require("lodash")); | ||
const path = tslib_1.__importStar(require("path")); | ||
const url_1 = require("url"); | ||
const path = tslib_1.__importStar(require("node:path")); | ||
const node_url_1 = require("node:url"); | ||
const lodash_template_1 = tslib_1.__importDefault(require("lodash.template")); | ||
const util_1 = require("../util"); | ||
@@ -195,3 +195,3 @@ const help_compatibility_1 = require("../help-compatibility"); | ||
const template = plugin.pjson.oclif.repositoryPrefix || '<%- repo %>/blob/v<%- version %>/<%- commandPath %>'; | ||
return `_See code: [${label}](${_.template(template)({ repo, version, commandPath, config, c })})_`; | ||
return `_See code: [${label}](${(0, lodash_template_1.default)(template)({ repo, version, commandPath, config, c })})_`; | ||
} | ||
@@ -204,3 +204,3 @@ repo(plugin) { | ||
return; | ||
const url = new url_1.URL(repo); | ||
const url = new node_url_1.URL(repo); | ||
if (!['github.com', 'gitlab.com'].includes(url.hostname) && !pjson.oclif.repositoryPrefix) | ||
@@ -207,0 +207,0 @@ return; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sortVersionsObjectByKeysDesc = exports.template = exports.sortBy = exports.compact = exports.uniqBy = exports.castArray = void 0; | ||
const _ = require("lodash"); | ||
const tslib_1 = require("tslib"); | ||
// import _ = require('lodash') | ||
const lodash_template_1 = tslib_1.__importDefault(require("lodash.template")); | ||
function castArray(input) { | ||
@@ -43,3 +45,3 @@ if (input === undefined) | ||
exports.sortBy = sortBy; | ||
const template = (context) => (t) => _.template(t || '')(context); | ||
const template = (context) => (t) => (0, lodash_template_1.default)(t || '')(context); | ||
exports.template = template; | ||
@@ -46,0 +48,0 @@ const sortVersionsObjectByKeysDesc = (input) => { |
@@ -76,3 +76,3 @@ { | ||
}, | ||
"version": "3.0.2" | ||
"version": "3.0.3" | ||
} |
{ | ||
"name": "@commercelayer/cli-dev", | ||
"description": "Commerce Layer CLI development tools and helpers", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"author": "Pierluigi Viti <pierluigi@commercelayer.io>", | ||
@@ -62,3 +62,3 @@ "homepage": "https://github.com/commercelayer/commercelayer-cli-dev", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/lodash": "^4.17.0", | ||
"@types/lodash.template": "^4.5.3", | ||
"@types/mocha": "^10.0.6", | ||
@@ -69,6 +69,6 @@ "@types/node": "^20.12.7", | ||
"globby": "^10.0.2", | ||
"lodash": "^4.17.21", | ||
"lodash.template": "^4.5.0", | ||
"mocha": "^10.4.0", | ||
"nyc": "^15.1.0", | ||
"oclif": "^4.8.5", | ||
"oclif": "^4.8.8", | ||
"semantic-release": "^23.0.8", | ||
@@ -79,3 +79,3 @@ "tsx": "^4.7.2", | ||
"dependencies": { | ||
"@oclif/core": "^3.26.3", | ||
"@oclif/core": "^3.26.4", | ||
"fs-extra": "^10.1.0", | ||
@@ -82,0 +82,0 @@ "github-slugger": "^1.5.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25674
516
Updated@oclif/core@^3.26.4