Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap-drawer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap-drawer - npm Package Compare versions

Comparing version 1.0.2 to 1.0.4

customize.html

10

bower.json
{
"name": "bootstrap-drawer",
"version": "1.0.2",
"version": "1.0.4",
"authors": [
"Caroline Amaba <her@carolineamaba.com>"
],
"description": "A Bootstrap add-on to create drawer (off-canvas) styled navigation",
"description": "A Bootstrap 3 add-on to create drawer (off-canvas) styled navigation",
"moduleType": [

@@ -20,2 +20,4 @@ "globals"

"keywords": [
"bootstrap3",
"bootstrap-3",
"bootstrap",

@@ -47,5 +49,5 @@ "offcanvas",

"dependencies": {
"jquery": "~2.1.4",
"bootstrap": "~3.3.4"
"jquery": "2.x",
"bootstrap": "3.x"
}
}

@@ -9,2 +9,11 @@ # bootstrap-drawer

#### v 1.0.4
* Fix docs.
* Update `package.json`, `bower.json`
#### v 1.0.3
* Fixed to be backwards compatible with Bootstrap 3.0.0 - somwhere after 3.0.0, the name of the transition.end event changed
#### v 1.0.2

@@ -11,0 +20,0 @@ * Updated some typos in the docs [detailed documentation](http://clineamb.github.io/bootstrap-drawer).

20

example/drawer.js
/* ========================================================================
* Bootstrap: drawer.js v1.0
* Bootstrap: drawer.js v1.0.3
# Heavily based on collapse, but had to change the name to "fold" to

@@ -85,6 +85,10 @@ # avoid transition conflicts.

if (!$.support.transition) return complete.call(this)
if (!$.support.transition) {
return complete.call(this)
} else {
this.transEventName = $.support.transition.end;
}
this.$element
.one('bsTransitionEnd', $.proxy(complete, this))
.one(this.transEventName, $.proxy(complete, this))
.emulateTransitionEnd(Drawer.TRANSITION_DURATION).css(dimension, 0)

@@ -121,7 +125,11 @@ }

if (!$.support.transition) return complete.call(this)
if (!$.support.transition) {
return complete.call(this)
} else {
this.transEventName = $.support.transition.end;
}
this.$element
.css(dimension, '')
.one('bsTransitionEnd', $.proxy(complete, this))
.one(this.transEventName, $.proxy(complete, this))
.emulateTransitionEnd(Drawer.TRANSITION_DURATION)

@@ -207,2 +215,2 @@ }

}(jQuery);
}(jQuery);
// --- bootstrap.offcanvas gulpfile
var VERSION = "0.9.0";
var gulp = require('gulp'),
less = require('gulp-less'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename')
var gulp = require('gulp'),
less = require('gulp-less'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
markdown = require('gulp-markdown'),
through2 = require('through2'),
fs = require('fs')
;

@@ -66,2 +67,42 @@

;
});
gulp.task('docs.less', function() {
gulp.src("./less/drawer-docs.less")
.pipe(less({compress: true}))
.pipe(gulp.dest("./example"))
;
});
gulp.task('docs.md', function() {
gulp.src("./docs/*.md")
.pipe(markdown())
.pipe(gulp.dest("./docs/html"))
});
gulp.task('docs', ['docs.less', 'docs.md'], function() {
var header = fs.readFileSync("./docs/_header.htm")
, footer = fs.readFileSync("./docs/_footer.htm")
;
gulp.src("./docs/html/*.html")
.pipe(through2.obj(function(file, enc, cb){
if (file.isNull()) {
// return empty file
cb(null);
}
if (file.isStream()) {
return callback(new gutil.PluginError(PLUGIN_NAME, 'No stream support.'));
}
file.contents = Buffer.concat([
header, file.contents, footer
]);
cb(null, file);
}))
.pipe(gulp.dest("./"))
;
});
/* ========================================================================
* Bootstrap: drawer.js v1.0
* Bootstrap: drawer.js v1.0.3
# Heavily based on collapse, but had to change the name to "fold" to

@@ -85,6 +85,10 @@ # avoid transition conflicts.

if (!$.support.transition) return complete.call(this)
if (!$.support.transition) {
return complete.call(this)
} else {
this.transEventName = $.support.transition.end;
}
this.$element
.one('bsTransitionEnd', $.proxy(complete, this))
.one(this.transEventName, $.proxy(complete, this))
.emulateTransitionEnd(Drawer.TRANSITION_DURATION).css(dimension, 0)

@@ -121,7 +125,11 @@ }

if (!$.support.transition) return complete.call(this)
if (!$.support.transition) {
return complete.call(this)
} else {
this.transEventName = $.support.transition.end;
}
this.$element
.css(dimension, '')
.one('bsTransitionEnd', $.proxy(complete, this))
.one(this.transEventName, $.proxy(complete, this))
.emulateTransitionEnd(Drawer.TRANSITION_DURATION)

@@ -207,2 +215,2 @@ }

}(jQuery);
}(jQuery);
{
"name": "bootstrap-drawer",
"version": "1.0.2",
"version": "1.0.4",
"description": "A Bootstrap add-on to create drawer (off-canvas) styled navigation",

@@ -15,2 +15,4 @@ "main": "index.js",

"keywords": [
"bootstrap3",
"bootstrap-3",
"bootstrap",

@@ -40,11 +42,16 @@ "offcanvas",

"devDependencies": {
"gulp": "^3.8.10",
"gulp-less": "^2.0.1",
"gulp-rename": "^1.2.0",
"gulp-uglify": "^1.1.0"
"gulp": "^3.9.0",
"gulp-concat": "^2.6.0",
"gulp-less": "^3.0.3",
"gulp-markdown": "^1.0.0",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.4.1",
"gulp-util": "^3.0.6",
"nunjucks": "^2.0.0",
"through2": "^2.0.0"
},
"dependencies": {
"bootstrap": "^3.3.2",
"jquery": "^2.1.3"
"jquery": "2.x",
"bootstrap": "3.x"
}
}

@@ -13,3 +13,3 @@ # bootstrap-drawer

**Version:** 1.0.1
**Version:** 1.0.4

@@ -122,3 +122,3 @@ ## Requirements

Copyright (c) 2014, [Caroline Amaba](mailto:github@carolineamaba.com)
Copyright (c) 2015, [Caroline Amaba](mailto:github@carolineamaba.com)

@@ -125,0 +125,0 @@ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

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