Skip to content

Commit

Permalink
commonjs package manager support
Browse files Browse the repository at this point in the history
  • Loading branch information
benoror committed Jul 26, 2015
1 parent d5ddc03 commit affc74b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions angular-urlify-filter.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* commonjs package manager support (eg componentjs) */
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){
module.exports = 'ngUrlify';
}

(function (angular) {
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-urlify",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/benoror/angular-urlify",
"authors": [
"Tarkan Anlar",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-urlify",
"version": "1.0.0",
"version": "1.0.1",
"description": "Filter to create better seo urls and slugs with AngularJS based on Django Urlify",
"main": "angular-urlify-filter.js",
"scripts": {
Expand Down

0 comments on commit affc74b

Please sign in to comment.