Skip to content

Commit

Permalink
feat(version): release date constant (#735)
Browse files Browse the repository at this point in the history
* feat(core) add release date to constants.

* fix(storedqueries) handle empty configs

* extra file
  • Loading branch information
pelord authored Oct 6, 2020
1 parent be77ec8 commit 2b93269
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ gulp.task('core:bumpVersion', done => {
gulp
.src(['./packages/core/src/lib/config/version.ts'])
.pipe(replace(/lib: '[A-Za-z0-9\.\-]+'/g, `lib: '${version}'`))
.pipe(replace(/releaseDate: [0-9]+/g, `releaseDate: ${Date.now()}`))
.pipe(gulp.dest('./packages/core/src/lib/config/.'));

done();
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/lib/config/version.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export interface Version {
lib: string;
releaseDate: number;
}

export const version: Version = {
lib: '1.4.3'
lib: '1.4.3',
releaseDate: 1602002282549
};
5 changes: 5 additions & 0 deletions packages/geo/src/lib/search/shared/sources/storedqueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@ export class StoredQueriesReverseSearchSource extends SearchSource
) {
super(options);
this.storedQueriesOptions = options as StoredQueriesReverseSearchSourceOptions;

if (!this.storedQueriesOptions || (this.storedQueriesOptions && !this.storedQueriesOptions.available) ) {
return;
}

if (!this.storedQueriesOptions.storedquery_id) {
const err =
'Stored Queries :You have to set "storedquery_id" into StoredQueries options. ex: storedquery_id: "nameofstoredquerie"';
Expand Down

0 comments on commit 2b93269

Please sign in to comment.