New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

browserify-commit-sha

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-commit-sha - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "browserify-commit-sha",
"version": "0.0.2",
"version": "0.0.3",
"description": "browserify transform for appending lastest git commit sha",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,1 +5,28 @@ browserify-commit-sha

browserify transform for appending the latest git commit SHA
The output looks like this:
```js
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (process){
/**
*
* latest commit: c6541cbdf842e204fd2a958a28e83ba7be42f3c9
* created at: Sun Feb 15 2015 17:18:10 GMT-0500 (PET)
*
**/
'use strict';
// this is the entry point file that you browserified
var x require('x')
var y = require('y')
// ...
```
Its a bit of a hack, but it works alright.
You'll most likely want to do this another way,
such that it survives minification
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc