Socket
Socket
Sign inDemoInstall

cdb-driver

Package Overview
Dependencies
2
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.7 to 0.3.8

app/main.js

8

docs/index.md

@@ -35,6 +35,4 @@ title: CDBDriver

``` bash
https://cdn.jsdelivr.net/npm/cdb-driver@[version]
# or
https://cdn.jsdelivr.net/npm/cdb-driver@[version]/dist/main.min.js
``` html
<script src="https://cdn.jsdelivr.net/npm/cdb-driver@[version]/dist/min/main.min.js" charset="utf-8"></script>
```

@@ -45,3 +43,3 @@ Replace [version] with a semver-string just as used in npm.

You can also install it by [downloading the minified source](https://raw.githubusercontent.com/MCStreetguy/cdb-driver/master/dist/main.min.js)
You can also install it by [downloading the minified source](https://raw.githubusercontent.com/MCStreetguy/cdb-driver/master/dist/min/main.min.js)
and including it however you like (whyever you should do this).

@@ -48,0 +46,0 @@

@@ -8,11 +8,24 @@ const gulp = require('gulp'),

browserify = require('browserify'),
fs = require('fs');
fs = require('fs'),
footer = require('gulp-footer')
gulp.task('build', function () {
gulp.task('preprocess', () => {
gulp.src('app/main.js')
.pipe(rename('browser.js'))
.pipe(footer('window.CDBDriver = cdbd;'))
.pipe(gulp.dest('dist/bare/'))
gulp.src('app/main.js')
.pipe(rename('module.js'))
.pipe(footer('module.exports = cdbd;'))
.pipe(gulp.dest('dist/bare/'))
})
gulp.task('build', ['preprocess'], function () {
browserify({
entries: './app/browser.js',
entries: './dist/bare/browser.js',
debug: true
}).transform('babelify', {presets: ['env', ['minify',{
mangle: false
}]]}).bundle().pipe(fs.createWriteStream('dist/main.min.js'))
}]]}).bundle().pipe(fs.createWriteStream('dist/min/main.min.js'))

@@ -19,0 +32,0 @@ notify({

{
"name": "cdb-driver",
"version": "0.3.7",
"version": "0.3.8",
"description": "A driver library for connecting to a CouchDB instance through JavaScript.",
"main": "app/module.js",
"main": "dist/bare/module.js",
"scripts": {

@@ -27,2 +27,3 @@ "test": "jest"

"gulp-babel": "^7.0.1",
"gulp-footer": "^2.0.1",
"gulp-notify": "^3.2.0",

@@ -29,0 +30,0 @@ "gulp-rename": "^1.2.2",

Sorry, the diff of this file is too big to display

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