Skip to content

Commit

Permalink
chore(build): release 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vheissu committed Mar 20, 2018
1 parent 388cb2f commit a8a05c7
Show file tree
Hide file tree
Showing 13 changed files with 115 additions and 84 deletions.
10 changes: 6 additions & 4 deletions dist/amd/google-maps.js

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

2 changes: 1 addition & 1 deletion dist/amd/google-maps.js.map

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions dist/commonjs/google-maps.js

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

2 changes: 1 addition & 1 deletion dist/commonjs/google-maps.js.map

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions dist/es2015/google-maps.js

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

2 changes: 1 addition & 1 deletion dist/es2015/google-maps.js.map

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions dist/native-modules/google-maps.js

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

2 changes: 1 addition & 1 deletion dist/native-modules/google-maps.js.map

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions dist/system/google-maps.js

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

2 changes: 1 addition & 1 deletion dist/system/google-maps.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-google-maps",
"version": "2.2.0",
"version": "2.2.1",
"description": "A plugin for working with Google Maps within Aurelia",
"keywords": [
"aurelia",
Expand Down Expand Up @@ -79,18 +79,18 @@
"devDependencies": {}
},
"dependencies": {
"aurelia-binding": "^1.6.0",
"aurelia-binding": "^1.7.1",
"aurelia-dependency-injection": "^1.3.2",
"aurelia-event-aggregator": "^1.0.1",
"aurelia-framework": "^1.1.5",
"aurelia-logging": "^1.4.0",
"aurelia-pal": "^1.5.0",
"aurelia-pal": "^1.7.0",
"aurelia-task-queue": "^1.2.1",
"aurelia-templating": "^1.7.0"
},
"devDependencies": {
"@types/jasmine": "^2.8.6",
"@types/node": "^9.4.0",
"@types/node": "^9.4.7",
"aurelia-bootstrapper": "^2.2.0",
"aurelia-pal-browser": "^1.4.0",
"aurelia-polyfills": "^1.3.0",
Expand Down
108 changes: 58 additions & 50 deletions test/unit/configure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,50 +1,58 @@
import { Configure } from '../../src/configure';

describe('configure', () => {
let sut: any;

beforeEach(() => {
sut = new Configure();
});

it('default configuration options are set', () => {
expect(sut._config).toEqual({
apiScript: 'https://maps.googleapis.com/maps/api/js',
apiKey: '',
region: '',
language: '',
apiLibraries: '',
options: {}
});
});

it('set a new option using options', () => {
expect(sut.get('test-option')).toBeUndefined();

sut.options({ 'test-option': 'test value123' });

expect(sut.get('test-option')).toEqual('test value123');
});


it('override default option using options', () => {
expect(sut.get('apiScript')).toEqual('https://maps.googleapis.com/maps/api/js');

sut.options({ 'apiScript': 'http://facebook.com/123' });

expect(sut.get('apiScript')).toEqual('http://facebook.com/123');
});

it('get an existing option', () => {
expect(sut.get('apiScript')).toEqual('https://maps.googleapis.com/maps/api/js');
});

it('get an existing option that does not exist', () => {
expect(sut.get('fsdfsdfsdf')).toBeUndefined();
});

it('set a new single option and return value', () => {
expect(sut.set('fsdfsdfsdf', 'fdkj98340982')).toEqual('fdkj98340982');
});

})
import { Configure } from '../../src/configure';

const markerCluster = {
enable: false,
src: 'https://cdn.rawgit.com/googlemaps/v3-utility-library/99a385c1/markerclusterer/src/markerclusterer.js',
imagePath: 'https://raw.githubusercontent.com/googlemaps/v3-utility-library/99a385c1/markerclusterer/images/m',
imageExtension: 'png',
}

describe('configure', () => {
let sut: any;

beforeEach(() => {
sut = new Configure();
});

it('default configuration options are set', () => {
expect(sut._config).toEqual({
apiScript: 'https://maps.googleapis.com/maps/api/js',
apiKey: '',
region: '',
language: '',
apiLibraries: '',
options: {},
markerCluster
});
});

it('set a new option using options', () => {
expect(sut.get('test-option')).toBeUndefined();

sut.options({ 'test-option': 'test value123' });

expect(sut.get('test-option')).toEqual('test value123');
});


it('override default option using options', () => {
expect(sut.get('apiScript')).toEqual('https://maps.googleapis.com/maps/api/js');

sut.options({ 'apiScript': 'http://facebook.com/123' });

expect(sut.get('apiScript')).toEqual('http://facebook.com/123');
});

it('get an existing option', () => {
expect(sut.get('apiScript')).toEqual('https://maps.googleapis.com/maps/api/js');
});

it('get an existing option that does not exist', () => {
expect(sut.get('fsdfsdfsdf')).toBeUndefined();
});

it('set a new single option and return value', () => {
expect(sut.set('fsdfsdfsdf', 'fdkj98340982')).toEqual('fdkj98340982');
});

})
23 changes: 18 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
version "2.8.6"
resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-2.8.6.tgz#14445b6a1613cf4e05dd61c3c3256d0e95c0421e"

"@types/node@^9.4.0":
version "9.4.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.0.tgz#b85a0bcf1e1cc84eb4901b7e96966aedc6f078d1"
"@types/node@^9.4.7":
version "9.4.7"
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.7.tgz#57d81cd98719df2c9de118f2d5f3b1120dcd7275"

JSONStream@^1.0.3, JSONStream@^1.0.4:
version "1.3.2"
Expand Down Expand Up @@ -239,7 +239,7 @@ asynckit@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"

aurelia-binding@^1.0.0, aurelia-binding@^1.3.0, aurelia-binding@^1.5.0, aurelia-binding@^1.6.0:
aurelia-binding@^1.0.0, aurelia-binding@^1.3.0, aurelia-binding@^1.5.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/aurelia-binding/-/aurelia-binding-1.6.0.tgz#a3db1f43f823a0d392e9d2d7db4442a2d336255d"
dependencies:
Expand All @@ -248,6 +248,15 @@ aurelia-binding@^1.0.0, aurelia-binding@^1.3.0, aurelia-binding@^1.5.0, aurelia-
aurelia-pal "^1.0.0"
aurelia-task-queue "^1.0.0"

aurelia-binding@^1.7.1:
version "1.7.1"
resolved "https://registry.yarnpkg.com/aurelia-binding/-/aurelia-binding-1.7.1.tgz#9d76784d35d84b8117f23c0eba00de6282ded107"
dependencies:
aurelia-logging "^1.0.0"
aurelia-metadata "^1.0.0"
aurelia-pal "^1.0.0"
aurelia-task-queue "^1.0.0"

aurelia-bootstrapper@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/aurelia-bootstrapper/-/aurelia-bootstrapper-2.2.0.tgz#947e6244bf2ec9cd4aba8abb4b322dc6d629b65c"
Expand Down Expand Up @@ -342,10 +351,14 @@ aurelia-pal-browser@^1.0.0, aurelia-pal-browser@^1.4.0:
dependencies:
aurelia-pal "^1.4.0"

aurelia-pal@^1.0.0, aurelia-pal@^1.3.0, aurelia-pal@^1.4.0, aurelia-pal@^1.5.0:
aurelia-pal@^1.0.0, aurelia-pal@^1.3.0, aurelia-pal@^1.4.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/aurelia-pal/-/aurelia-pal-1.5.0.tgz#26607538d60a973f73824d75b0bfa91384ce9dd3"

aurelia-pal@^1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/aurelia-pal/-/aurelia-pal-1.7.0.tgz#443fd75c72a0b3e1daa3181f655ea770a579dd88"

aurelia-path@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/aurelia-path/-/aurelia-path-1.1.1.tgz#caa9d20bc8515a5f9f286d9a3b18d81b2c85b0dd"
Expand Down

0 comments on commit a8a05c7

Please sign in to comment.