Skip to content

Commit

Permalink
Merge pull request #1307 from jovotech/v4/dev
Browse files Browse the repository at this point in the history
🔖 Prepare latest release
  • Loading branch information
aswetlow authored Apr 27, 2022
2 parents 77d4d0a + b7bc2c5 commit 3d2565e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

name: jovo-framework workflow

on: [push, pull_request]
on: [push]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion framework/src/plugins/DbPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export abstract class DbPlugin<
}
return this.loadData(jovo.$user.id, jovo);
});
parent.middlewareCollection.use('response.start', (jovo) => {
parent.middlewareCollection.use('response.end', (jovo) => {
if (!jovo.$user.id) {
return;
}
Expand Down
7 changes: 1 addition & 6 deletions framework/src/testsuite/TestSuite.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { Constructor, Input, InputType, JovoError, OmitWhere } from '@jovotech/common';
import {
JovoResponse,
OutputTemplate,
OutputTemplateConverterStrategyConfig,
SingleResponseOutputTemplateConverterStrategy,
} from '@jovotech/output';
import { OutputTemplate } from '@jovotech/output';
import { existsSync } from 'fs';
import _cloneDeep from 'lodash.clonedeep';
import _merge from 'lodash.merge';
Expand Down
10 changes: 10 additions & 0 deletions platforms/platform-alexa/src/cli/hooks/BuildHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,16 @@ export class BuildHook extends AlexaHook<BuildPlatformEvents> {
});
}

// replace ${JOVO_WEBHOOK_URL} in event uri with the Jovo Webhook url
const eventEndpointUriPath = 'skill-package/["skill.json"].manifest.events.endpoint.uri';
if (_has(projectFiles, eventEndpointUriPath)) {
_set(
projectFiles,
eventEndpointUriPath,
this.$cli.resolveEndpoint(_get(projectFiles, eventEndpointUriPath).toString()),
);
}

// Create entries for Alexa Conversations
const conversationsPath = 'skill-package/["skill.json"].manifest.apis.custom.dialogManagement';
if (this.$context.alexa.isACSkill && !_has(projectFiles, conversationsPath)) {
Expand Down
9 changes: 1 addition & 8 deletions platforms/platform-core/src/CoreRequest.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import {
Input,
InputTypeLike,
JovoInput,
JovoInputBuilder,
JovoRequest,
UnknownObject,
} from '@jovotech/framework';
import { Input, InputTypeLike, JovoInput, JovoRequest, UnknownObject } from '@jovotech/framework';

import { CoreCapabilityType } from './CoreDevice';
import { CoreRequestContext } from './interfaces';
Expand Down

0 comments on commit 3d2565e

Please sign in to comment.