Skip to content

Commit e293a2a

Browse files
committed
v1.8.0
2 parents f31e2a0 + 026ddb5 commit e293a2a

File tree

6 files changed

+27
-11
lines changed

6 files changed

+27
-11
lines changed

dist/angular-openlayers-directive.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
(function (root, factory) {
2-
if (typeof define === 'function' && define.amd) {
2+
if (typeof require === 'function' && typeof exports === 'object') {
3+
// CommonJS
4+
var ol = require('openlayers');
5+
exports.angularOpenlayersDirective = factory(ol);
6+
} else if (typeof define === 'function' && define.amd) {
37
// AMD.
48
define(['ol'], function (ol) {
59
return root.angularOpenlayersDirective = factory(ol);

dist/angular-openlayers-directive.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-openlayers-directive.min.no-header.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-openlayers-directive.pre.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
(function (root, factory) {
2-
if (typeof define === 'function' && define.amd) {
2+
if (typeof require === 'function' && typeof exports === 'object') {
3+
// CommonJS
4+
var ol = require('openlayers');
5+
exports.angularOpenlayersDirective = factory(ol);
6+
} else if (typeof define === 'function' && define.amd) {
37
// AMD.
48
define(['ol'], function (ol) {
59
return root.angularOpenlayersDirective = factory(ol);

grunt/concat.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
'use strict';
22

33
var banner = '(function (root, factory) {\n' +
4-
' if (typeof define === \'function\' && define.amd) {\n' +
4+
' if (typeof require === \'function\' && typeof exports === \'object\') {\n' +
5+
' // CommonJS\n' +
6+
' var ol = require(\'openlayers\');\n' +
7+
' exports.angularOpenlayersDirective = factory(ol);\n' +
8+
' } else if (typeof define === \'function\' && define.amd) {\n' +
59
' // AMD.\n' +
610
' define([\'ol\'], function (ol) {\n' +
711
' return root.angularOpenlayersDirective = factory(ol);\n' +

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
"cli"
1717
],
1818
"license": "MIT",
19-
"dependencies": {},
19+
"dependencies": {
20+
"angular": "~1.4.8",
21+
"angular-sanitize": "~1.4.8",
22+
"openlayers": "~3.8"
23+
},
2024
"devDependencies": {
2125
"grunt": "~0.4.5",
2226
"grunt-bower-task": "~0.4.0",
@@ -61,5 +65,5 @@
6165
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
6266
},
6367
"main": "dist/angular-openlayers-directive",
64-
"version": "1.7.0"
68+
"version": "1.8.0"
6569
}

0 commit comments

Comments
 (0)