@hubspot/local-dev-lib 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/sandboxHubs.d.ts +1 -1
- package/config/CLIConfiguration.d.ts +4 -4
- package/config/CLIConfiguration.js +42 -33
- package/config/configFile.js +5 -4
- package/config/configUtils.js +3 -2
- package/config/config_DEPRECATED.d.ts +2 -1
- package/config/config_DEPRECATED.js +23 -3
- package/config/environment.js +5 -4
- package/config/index.d.ts +2 -1
- package/config/index.js +8 -1
- package/constants/config.d.ts +7 -0
- package/constants/config.js +8 -1
- package/errors/apiErrors.d.ts +7 -2
- package/errors/apiErrors.js +12 -11
- package/errors/standardErrors.d.ts +1 -1
- package/http/index.d.ts +2 -4
- package/http/index.js +6 -7
- package/lang/en.json +10 -10
- package/lang/lang/en.json +10 -10
- package/lib/archive.d.ts +1 -3
- package/lib/archive.js +14 -16
- package/lib/cms/functions.d.ts +1 -3
- package/lib/cms/functions.js +25 -32
- package/lib/cms/handleFieldsJS.js +6 -5
- package/lib/cms/modules.d.ts +2 -3
- package/lib/cms/modules.js +16 -9
- package/lib/cms/templates.d.ts +1 -3
- package/lib/cms/templates.js +6 -7
- package/lib/cms/uploadFolder.d.ts +1 -3
- package/lib/cms/uploadFolder.js +14 -16
- package/lib/cms/watch.d.ts +1 -4
- package/lib/cms/watch.js +34 -47
- package/lib/fileManager.d.ts +2 -6
- package/lib/fileManager.js +31 -42
- package/lib/fileMapper.d.ts +2 -4
- package/lib/fileMapper.js +24 -35
- package/lib/github.d.ts +3 -4
- package/lib/github.js +35 -14
- package/lib/oauth.d.ts +1 -4
- package/lib/oauth.js +7 -9
- package/lib/personalAccessKey.js +19 -2
- package/lib/sandboxes.d.ts +1 -1
- package/lib/sandboxes.js +7 -8
- package/lib/trackUsage.js +5 -4
- package/models/OAuth2Manager.d.ts +16 -13
- package/models/OAuth2Manager.js +30 -38
- package/package.json +3 -2
- package/types/Accounts.d.ts +5 -0
- package/types/Sandbox.d.ts +13 -12
- package/utils/PortManagerServer.js +7 -7
- package/types/LogCallbacks.d.ts +0 -7
- package/types/LogCallbacks.js +0 -2
- package/utils/logger.d.ts +0 -5
- package/utils/logger.js +0 -23
package/utils/logger.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { LogCallbacks } from '../types/LogCallbacks';
|
|
2
|
-
import { InterpolationData, LangKey } from '../types/Lang';
|
|
3
|
-
export declare function log<T extends string>(key: T, callbacks?: LogCallbacks<T>, debugKey?: LangKey, interpolationData?: InterpolationData): void;
|
|
4
|
-
export declare function makeTypedLogger<T extends readonly string[]>(callbacks?: LogCallbacks<T[number]>): (key: T[number], debugKey?: LangKey, interpolationData?: InterpolationData) => void;
|
|
5
|
-
export declare function debug(identifier: LangKey, interpolationData?: InterpolationData): void;
|
package/utils/logger.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.debug = exports.makeTypedLogger = exports.log = void 0;
|
|
4
|
-
const lang_1 = require("./lang");
|
|
5
|
-
const logger_1 = require("../lib/logging/logger");
|
|
6
|
-
function log(key, callbacks, debugKey, interpolationData) {
|
|
7
|
-
if (callbacks && callbacks[key]) {
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
9
|
-
callbacks[key](interpolationData);
|
|
10
|
-
}
|
|
11
|
-
else if (debugKey) {
|
|
12
|
-
debug(debugKey, interpolationData);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.log = log;
|
|
16
|
-
function makeTypedLogger(callbacks) {
|
|
17
|
-
return (key, debugKey, interpolationData) => log(key, callbacks, debugKey, interpolationData);
|
|
18
|
-
}
|
|
19
|
-
exports.makeTypedLogger = makeTypedLogger;
|
|
20
|
-
function debug(identifier, interpolationData) {
|
|
21
|
-
logger_1.logger.debug((0, lang_1.i18n)(identifier, interpolationData));
|
|
22
|
-
}
|
|
23
|
-
exports.debug = debug;
|