Skip to content

Commit c94a102

Browse files
committed
#master Update cda base path
1 parent 9cd1d49 commit c94a102

11 files changed

+29
-21
lines changed

bin/epi_sync_models.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function isNetworkErrorResponse(
4848
*/
4949
export class EpiModelSync {
5050
protected _modelDir: Readonly<string> = "src/Models/Episerver";
51-
protected _servicePath: Readonly<string> = "api/episerver/v3/model";
51+
protected _servicePath: Readonly<string> = "api/haldex/v1.0/cda/v3/model";
5252
protected _rootDir: string;
5353
protected _config: GlobalConfig;
5454
protected _iContentProps: string[] = ["contentLink"];

cjs/ContentDelivery/ClientAuthStorage.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ const crypto_1 = __importDefault(require("crypto"));
1515
* @implements { epi.ContentDelivery.IAuthStorage }
1616
*/
1717
class ClientAuthStorage {
18+
static CreateFromUrl(u) {
19+
const hash = crypto_1.default.createHash('sha256');
20+
hash.update(u.host);
21+
return new ClientAuthStorage(hash.digest('hex'));
22+
}
1823
/**
1924
*
2025
* @param {string} [scope] The scope for the file name
@@ -40,11 +45,6 @@ class ClientAuthStorage {
4045
this._homeDir = os_1.default.homedir();
4146
this._filePostFix = scope || '';
4247
}
43-
static CreateFromUrl(u) {
44-
const hash = crypto_1.default.createHash('sha256');
45-
hash.update(u.host);
46-
return new ClientAuthStorage(hash.digest('hex'));
47-
}
4848
/**
4949
* @returns { boolean }
5050
*/

cjs/bin/epi-auth.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"use strict";
33
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
44
if (k2 === undefined) k2 = k;
5-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5+
var desc = Object.getOwnPropertyDescriptor(m, k);
6+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7+
desc = { enumerable: true, get: function() { return m[k]; } };
8+
}
9+
Object.defineProperty(o, k2, desc);
610
}) : (function(o, m, k, k2) {
711
if (k2 === undefined) k2 = k;
812
o[k2] = m[k];

cjs/bin/epi_sync_models.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
*/
77
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
88
if (k2 === undefined) k2 = k;
9-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9+
var desc = Object.getOwnPropertyDescriptor(m, k);
10+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11+
desc = { enumerable: true, get: function() { return m[k]; } };
12+
}
13+
Object.defineProperty(o, k2, desc);
1014
}) : (function(o, m, k, k2) {
1115
if (k2 === undefined) k2 = k;
1216
o[k2] = m[k];

cjs/bin/epi_sync_models.module.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import { ContentDelivery } from "@episerver/spa-core";
22
import GlobalConfig from "../util/Config";
3-
export declare type TypeOverviewResponse = TypeDefinition[];
4-
export declare type TypeDefinition = {
3+
export type TypeOverviewResponse = TypeDefinition[];
4+
export type TypeDefinition = {
55
name: string;
66
displayName: string;
77
description: string;
88
guid: string;
99
};
10-
export declare type TypeDefinitionData = TypeDefinition & {
10+
export type TypeDefinitionData = TypeDefinition & {
1111
properties: {
1212
name: string;
1313
displayName: string;
1414
description: string;
1515
type: string;
1616
}[];
1717
};
18-
declare type internalAuthService = ContentDelivery.IAuthService & ContentDelivery.IAuthTokenProvider;
18+
type internalAuthService = ContentDelivery.IAuthService & ContentDelivery.IAuthTokenProvider;
1919
/**
2020
* Episerver Model Synchronization Job
2121
*/

cjs/bin/epi_sync_models.module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class EpiModelSync {
3535
*/
3636
constructor(config) {
3737
this._modelDir = "src/Models/Episerver";
38-
this._servicePath = "api/episerver/v3/model";
38+
this._servicePath = "api/haldex/v1.0/cda/v3/model";
3939
this._iContentProps = ["contentLink"];
4040
this._config = config;
4141
this._rootDir = config.getRootDir();

cjs/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export declare const EmptyLoaderImpl: any;
66
export declare const Config: typeof _Config;
77
export declare const EpiEnvOptions: typeof _EpiEnvOptions;
88
export declare const DeployToEpiserverPlugin: typeof _DeployToEpiserverPlugin;
9-
export declare type DeployToEpiserverPluginOptions = _DeployToEpiserverPluginOptions;
10-
export declare type EpiEnvOption = _EpiEnvOption;
9+
export type DeployToEpiserverPluginOptions = _DeployToEpiserverPluginOptions;
10+
export type EpiEnvOption = _EpiEnvOption;
1111
export declare const PreLoadLoader: string;
1212
export declare const EmptyLoader: string;
1313
export declare const SpaWebpackAddOn: {

cjs/util/CliArguments.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { URL } from 'url';
44
import { EpiEnvOption } from './EpiEnvOptions';
55
import GlobalConfig from './Config';
66
import { DotenvParseOutput } from 'dotenv/types';
7-
export declare type CliArgs = {
7+
export type CliArgs = {
88
e: EpiEnvOption;
99
d: URL | undefined;
1010
i: boolean | undefined;
@@ -13,8 +13,8 @@ export declare type CliArgs = {
1313
domain: CliArgs['d'];
1414
insecure: CliArgs['i'];
1515
};
16-
declare type ConfigureCallback<T extends object = {}> = (yargs: yargs.Argv<T>) => void;
17-
declare type SetupFunction = <T extends object = {}>(yargs: yargs.Argv<{}>, defaultEnv?: EpiEnvOption, name?: string, config?: ConfigureCallback<T & CliArgs>) => yargs.Argv<T & CliArgs>;
16+
type ConfigureCallback<T extends object = {}> = (yargs: yargs.Argv<T>) => void;
17+
type SetupFunction = <T extends object = {}>(yargs: yargs.Argv<{}>, defaultEnv?: EpiEnvOption, name?: string, config?: ConfigureCallback<T & CliArgs>) => yargs.Argv<T & CliArgs>;
1818
export declare const Setup: SetupFunction;
1919
export declare const CreateConfig: (cliArgs: yargs.Arguments<CliArgs>, overrides?: DotenvParseOutput) => GlobalConfig;
2020
export default Setup;

cjs/util/EpiEnvOptions.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ export declare class EpiEnvOptions {
1111
*/
1212
static Parse<T extends EpiEnvOption | undefined>(strValue: string, defaultValue: T): Readonly<EpiEnvOption | T>;
1313
}
14-
export declare type EpiEnvOption = "development" | "integration" | "preproduction" | "production";
14+
export type EpiEnvOption = "development" | "integration" | "preproduction" | "production";
1515
export default EpiEnvOptions;

cjs/webpack-plugins/DeployToEpiserverPlugin.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DelegatedPlugin as Plugin, Compiler } from 'webpack';
2-
export declare type DeployToEpiserverPluginOptions = {
2+
export type DeployToEpiserverPluginOptions = {
33
base: string;
44
filepath: string;
55
filename: string;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@episerver/webpack",
3-
"version": "0.1.17",
3+
"version": "0.1.18",
44
"description": "Episerver React SPA - Webpack add-ons",
55
"homepage": "https://github.com/episerver/foundation-lib-spa-webpack",
66
"bugs": "https://github.com/episerver/foundation-lib-spa-webpack/issues",

0 commit comments

Comments
 (0)