Skip to content

Commit

Permalink
chore: Bumped version number
Browse files Browse the repository at this point in the history
  • Loading branch information
edcarroll committed Jul 4, 2017
1 parent 3e2d02c commit ad7f1c4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 20 deletions.
18 changes: 6 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "bundles/ng2-semantic-ui.umd.min.js",
"module": "dist/public.js",
"typings": "dist/public.d.ts",
"version": "0.9.1",
"version": "0.9.2",
"description": "Angular 2 Semantic UI Components",
"repository": {
"type": "git",
Expand Down Expand Up @@ -48,8 +48,8 @@
"@types/popper.js": "^1.10.0",
"bowser": "^1.7.0",
"date-fns": "2.0.0-alpha.1",
"deep-extend": "^0.5.0",
"element-closest": "^2.0.2",
"extend": "^3.0.1",
"popper.js": "^1.10.6",
"rxjs": "^5.0.1"
},
Expand All @@ -61,7 +61,7 @@
"@angular/platform-browser": "^4.1.3",
"@angular/platform-browser-dynamic": "^4.1.3",
"@angular/router": "^4.1.3",
"@types/deep-extend": "^0.4.30",
"@types/extend": "^2.0.30",
"@types/jasmine": "^2.5.53",
"@types/prismjs": "~1.4.18",
"codelyzer": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const defaultPlugins = [
"node_modules/popper.js/**",
"node_modules/date-fns/**",
"node_modules/bowser/src/bowser.js",
"node_modules/deep-extend/**"
"node_modules/extend/**"
]
})
]
Expand Down
11 changes: 7 additions & 4 deletions src/behaviors/localization/services/localization.service.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import { Injectable, EventEmitter } from "@angular/core";
import { ILocaleValues, IPartialLocaleValues, RecursivePartial } from "../interfaces/values";
import enGB from "../locales/en-GB";

// Oh rollup.
import * as $deepExtend from "deep-extend";
const deepExtend:<T, U>(target:T, source:U) => T & U = ($deepExtend as any).default || $deepExtend;
import * as $extend from "extend";

function deepClone<T>(obj:T):T {
return JSON.parse(JSON.stringify(obj));
}

function deepExtend<T, U>(target:T, source:U):T & U {
// Rollup...
const extend = ($extend as any).default || $extend;
return extend(true, target, source);
}

function lang(language:string):string {
return language.toLowerCase().replace("-", "");
}
Expand Down

0 comments on commit ad7f1c4

Please sign in to comment.