File tree Expand file tree Collapse file tree 3 files changed +22
-13
lines changed Expand file tree Collapse file tree 3 files changed +22
-13
lines changed Original file line number Diff line number Diff line change 44 * @license  MIT License, http://www.opensource.org/licenses/MIT 
55 */ 
66
7- angular . module ( 'slug' ,  [ ] ) 
7+ ( function ( )  { 
8+   'use strict' ; 
9+ 
10+   angular . module ( 'slug' ,  [ ] ) 
11+     . provider ( 'slug' ,  slugProvider ) 
12+     . filter ( 'slug' ,  slugFilter ) ; 
13+ 
14+   slugProvider . $inject  =  [ ] ; 
15+   slugFilter . $inject  =  [ 'slug' ] ; 
816
917  /** 
1018   * Simple slug wrapper as provider. 
1119   */ 
12-   . provider ( 'slug' ,   function  ( )  { 
13-     slug . $get  =  function   ( )  { 
20+   function  slugProvider ( )  { 
21+     slug . $get  =  function ( )  { 
1422      return  slug ; 
1523    } 
16- 
1724    return  slug ; 
18-   } ) 
25+   } 
1926
2027  /** 
2128   * Slugifies a given string. 
2229   */ 
23-   . filter ( 'slug' ,   function  ( slug )  { 
30+   function  slugFilter ( slug )  { 
2431    return  slug ; 
25-   } ) ; 
32+   } 
33+ 
34+ } ) ( ) ; 
Original file line number Diff line number Diff line change 11{
22  "name" : " angular-slug"  ,
33  "main" : " angular-slug.js"  ,
4-   "version" : " 0.0.3 "  ,
4+   "version" : " 0.0.4 "  ,
55  "authors" : [
66    " Lucas Constantino Silva" 
77  ],
2222    " tests" 
2323  ],
2424  "dependencies" : {
25-     "slug" : " ~0.8.0 "  ,
26-     "angular" : " ~1.3.15 " 
25+     "slug" : " ~0.9.1 "  ,
26+     "angular" : " ~1.5.7 " 
2727  }
2828}
Original file line number Diff line number Diff line change 11{
22  "name" : " angular-slug"  ,
3-   "version" : " 0.0.3 "  ,
3+   "version" : " 0.0.4 "  ,
44  "repository" : {
55    "type"  : " git"  ,
66    "url"  : " http://github.com/lucasconstantino/angular-slug.git" 
1414  "author" : " Lucas Constantino Silva"  ,
1515  "license" : " MIT"  ,
1616  "dependencies" : {
17-     "angular" : " ^1.3.15 "  ,
18-     "slug" : " ^0.8.0 " 
17+     "angular" : " ^1.5.7 "  ,
18+     "slug" : " ^0.9.1 " 
1919  }
2020}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments