git-describeify
Advanced tools
Comparing version 1.0.2 to 1.0.3
'use strict'; | ||
const _ = require('lodash'); | ||
const first = require('lodash/first'); | ||
const slice = require('lodash/slice'); | ||
const transformtools = require('browserify-transform-tools'); | ||
@@ -11,6 +13,6 @@ const gitDescribeSync = require('git-describe').gitDescribeSync; | ||
(args, opts, cb) => { | ||
if (_.first(args) === packageJson.name) { | ||
if (first(args) === packageJson.name) { | ||
let gitInfo = {}; | ||
try { | ||
gitInfo = gitDescribeSync.apply(this, _.slice(args, 1)); | ||
gitInfo = gitDescribeSync.apply(this, slice(args, 1)); | ||
} catch (err) { | ||
@@ -17,0 +19,0 @@ console.log('Failed to retrieve git info:', err); |
{ | ||
"name": "git-describeify", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A Browserify tranform to require Git describe information at transform time", | ||
@@ -20,3 +20,3 @@ "keywords": [ | ||
"type": "git", | ||
"url": "git+https://github.com/idelsink/browserify-git-describe.git" | ||
"url": "git+https://github.com/idelsink/git-describeify.git" | ||
}, | ||
@@ -26,5 +26,5 @@ "author": "Ingmar Delsink", | ||
"bugs": { | ||
"url": "https://github.com/idelsink/browserify-git-describe.git/issues" | ||
"url": "https://github.com/idelsink/git-describeify.git/issues" | ||
}, | ||
"homepage": "https://github.com/idelsink/browserify-git-describe#readme", | ||
"homepage": "https://github.com/idelsink/git-describeify#readme", | ||
"dependencies": { | ||
@@ -31,0 +31,0 @@ "browserify-transform-tools": "^1.7.0", |
@@ -52,3 +52,3 @@ # git-describeify | ||
```js | ||
// Require the module the arguments passed to git-describe | ||
// Require the module the arguments passed to git-describe | ||
require('git-describeify', argument1, argument2, argument3, ...); | ||
@@ -55,0 +55,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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
21
6044
4