gt-next 6.16.21 → 6.16.23
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/CHANGELOG.md +22 -0
- package/dist/_dictionary.d.ts.map +1 -1
- package/dist/_dictionary.js +1 -1
- package/dist/_dictionary.js.map +1 -1
- package/dist/_load-dictionary.d.ts.map +1 -1
- package/dist/_load-dictionary.js +1 -1
- package/dist/_load-dictionary.js.map +1 -1
- package/dist/_load-translations.d.ts.map +1 -1
- package/dist/_load-translations.js +1 -1
- package/dist/_load-translations.js.map +1 -1
- package/dist/branches/Branch.d.ts +2 -3
- package/dist/branches/Branch.d.ts.map +1 -1
- package/dist/branches/Branch.js +1 -1
- package/dist/branches/Branch.js.map +1 -1
- package/dist/branches/Plural.d.ts +2 -3
- package/dist/branches/Plural.d.ts.map +1 -1
- package/dist/branches/Plural.js +3 -6
- package/dist/branches/Plural.js.map +1 -1
- package/dist/config-dir/DictionaryManager.d.ts +1 -2
- package/dist/config-dir/DictionaryManager.d.ts.map +1 -1
- package/dist/config-dir/DictionaryManager.js +4 -8
- package/dist/config-dir/DictionaryManager.js.map +1 -1
- package/dist/config-dir/I18NConfiguration.d.ts +17 -77
- package/dist/config-dir/I18NConfiguration.d.ts.map +1 -1
- package/dist/config-dir/I18NConfiguration.js +81 -246
- package/dist/config-dir/I18NConfiguration.js.map +1 -1
- package/dist/config-dir/getI18NConfig.d.ts +2 -2
- package/dist/config-dir/getI18NConfig.d.ts.map +1 -1
- package/dist/config-dir/getI18NConfig.js +6 -9
- package/dist/config-dir/getI18NConfig.js.map +1 -1
- package/dist/config-dir/loadTranslation.d.ts +1 -1
- package/dist/config-dir/loadTranslation.d.ts.map +1 -1
- package/dist/config-dir/loadTranslation.js +5 -8
- package/dist/config-dir/loadTranslation.js.map +1 -1
- package/dist/config-dir/props/defaultWithGTConfigProps.d.ts +2 -2
- package/dist/config-dir/props/defaultWithGTConfigProps.d.ts.map +1 -1
- package/dist/config-dir/props/defaultWithGTConfigProps.js +2 -3
- package/dist/config-dir/props/defaultWithGTConfigProps.js.map +1 -1
- package/dist/config-dir/props/withGTConfigProps.d.ts +1 -2
- package/dist/config-dir/props/withGTConfigProps.d.ts.map +1 -1
- package/dist/config-dir/utils/resolveConfigFilepath.d.ts.map +1 -1
- package/dist/config-dir/utils/resolveConfigFilepath.js +2 -11
- package/dist/config-dir/utils/resolveConfigFilepath.js.map +1 -1
- package/dist/config-dir/utils/resolveRequestFunctionPaths.d.ts +1 -1
- package/dist/config-dir/utils/resolveRequestFunctionPaths.d.ts.map +1 -1
- package/dist/config-dir/utils/resolveRequestFunctionPaths.js.map +1 -1
- package/dist/config-dir/utils/validateCompiler.d.ts +1 -1
- package/dist/config-dir/utils/validateCompiler.d.ts.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +28 -62
- package/dist/config.js.map +1 -1
- package/dist/dictionary/getDictionary.d.ts +1 -1
- package/dist/dictionary/getDictionary.d.ts.map +1 -1
- package/dist/dictionary/getDictionary.js +8 -9
- package/dist/dictionary/getDictionary.js.map +1 -1
- package/dist/dictionary/setDictionary.d.ts +1 -1
- package/dist/dictionary/setDictionary.d.ts.map +1 -1
- package/dist/dictionary/setDictionary.js +1 -1
- package/dist/dictionary/setDictionary.js.map +1 -1
- package/dist/index.server.d.ts +9 -9
- package/dist/index.server.d.ts.map +1 -1
- package/dist/index.server.js +23 -26
- package/dist/index.server.js.map +1 -1
- package/dist/index.types.d.ts +2 -2
- package/dist/index.types.d.ts.map +1 -1
- package/dist/middleware-dir/createNextMiddleware.d.ts +1 -1
- package/dist/middleware-dir/createNextMiddleware.d.ts.map +1 -1
- package/dist/middleware-dir/createNextMiddleware.js +1 -1
- package/dist/middleware-dir/createNextMiddleware.js.map +1 -1
- package/dist/middleware-dir/utils.js +1 -1
- package/dist/middleware-dir/utils.js.map +1 -1
- package/dist/middleware.d.ts +1 -1
- package/dist/middleware.d.ts.map +1 -1
- package/dist/middleware.js +2 -5
- package/dist/middleware.js.map +1 -1
- package/dist/plugin/checks/cacheComponentsChecks.d.ts +1 -1
- package/dist/plugin/checks/cacheComponentsChecks.d.ts.map +1 -1
- package/dist/plugin/checks/ssgChecks.d.ts +1 -1
- package/dist/plugin/checks/ssgChecks.d.ts.map +1 -1
- package/dist/plugin/checks/ssgChecks.js.map +1 -1
- package/dist/provider/ClientProviderWrapper.d.ts +1 -1
- package/dist/provider/ClientProviderWrapper.d.ts.map +1 -1
- package/dist/provider/ClientProviderWrapper.js +2 -2
- package/dist/provider/ClientProviderWrapper.js.map +1 -1
- package/dist/provider/GTProvider.d.ts +1 -1
- package/dist/provider/GTProvider.d.ts.map +1 -1
- package/dist/provider/GTProvider.js +7 -43
- package/dist/provider/GTProvider.js.map +1 -1
- package/dist/request/getLocale.js +4 -7
- package/dist/request/getLocale.js.map +1 -1
- package/dist/request/getLocaleDirection.js +3 -6
- package/dist/request/getLocaleDirection.js.map +1 -1
- package/dist/request/headers/getNextLocale.js +5 -8
- package/dist/request/headers/getNextLocale.js.map +1 -1
- package/dist/request/registerLocale.js +2 -5
- package/dist/request/registerLocale.js.map +1 -1
- package/dist/request/utils/getRequestFunction.js +2 -5
- package/dist/request/utils/getRequestFunction.js.map +1 -1
- package/dist/request/utils/isSSR.d.ts +1 -1
- package/dist/request/utils/isSSR.d.ts.map +1 -1
- package/dist/request/utils/isSSR.js +3 -3
- package/dist/request/utils/isSSR.js.map +1 -1
- package/dist/request/utils/legacyGetLocaleFunction.d.ts +1 -1
- package/dist/request/utils/legacyGetLocaleFunction.d.ts.map +1 -1
- package/dist/request/utils/legacyGetLocaleFunction.js +2 -5
- package/dist/request/utils/legacyGetLocaleFunction.js.map +1 -1
- package/dist/request/utils/legacyGetRegionFunction.js +2 -5
- package/dist/request/utils/legacyGetRegionFunction.js.map +1 -1
- package/dist/request/utils/legacyGetRequestFunction.d.ts +1 -1
- package/dist/request/utils/legacyGetRequestFunction.d.ts.map +1 -1
- package/dist/request/utils/legacyGetRequestFunction.js +9 -9
- package/dist/request/utils/legacyGetRequestFunction.js.map +1 -1
- package/dist/resolvers/resolveDictionaryLoader.d.ts +1 -1
- package/dist/resolvers/resolveDictionaryLoader.d.ts.map +1 -1
- package/dist/resolvers/resolveDictionaryLoader.js +4 -2
- package/dist/resolvers/resolveDictionaryLoader.js.map +1 -1
- package/dist/resolvers/resolveTranslationLoader.d.ts +1 -1
- package/dist/resolvers/resolveTranslationLoader.d.ts.map +1 -1
- package/dist/resolvers/resolveTranslationLoader.js +4 -2
- package/dist/resolvers/resolveTranslationLoader.js.map +1 -1
- package/dist/server-dir/buildtime/T.d.ts +2 -3
- package/dist/server-dir/buildtime/T.d.ts.map +1 -1
- package/dist/server-dir/buildtime/T.js +8 -11
- package/dist/server-dir/buildtime/T.js.map +1 -1
- package/dist/server-dir/buildtime/getTranslationFunction.d.ts.map +1 -1
- package/dist/server-dir/buildtime/getTranslationFunction.js +9 -12
- package/dist/server-dir/buildtime/getTranslationFunction.js.map +1 -1
- package/dist/server-dir/buildtime/getTranslations.d.ts.map +1 -1
- package/dist/server-dir/buildtime/getTranslations.js +19 -25
- package/dist/server-dir/buildtime/getTranslations.js.map +1 -1
- package/dist/server-dir/runtime/_Tx.d.ts +2 -3
- package/dist/server-dir/runtime/_Tx.d.ts.map +1 -1
- package/dist/server-dir/runtime/_Tx.js +19 -18
- package/dist/server-dir/runtime/_Tx.js.map +1 -1
- package/dist/server-dir/runtime/tx.d.ts +1 -1
- package/dist/server-dir/runtime/tx.d.ts.map +1 -1
- package/dist/server-dir/runtime/tx.js +17 -16
- package/dist/server-dir/runtime/tx.js.map +1 -1
- package/dist/server-dir/variables/renderVariable.d.ts +1 -2
- package/dist/server-dir/variables/renderVariable.d.ts.map +1 -1
- package/dist/server-dir/variables/renderVariable.js +13 -15
- package/dist/server-dir/variables/renderVariable.js.map +1 -1
- package/dist/server.d.ts +4 -4
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +13 -16
- package/dist/server.js.map +1 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +0 -1
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/use.d.ts +1 -2
- package/dist/utils/use.d.ts.map +1 -1
- package/dist/utils/use.js +2 -1
- package/dist/utils/use.js.map +1 -1
- package/dist/variables/Currency.d.ts +2 -3
- package/dist/variables/Currency.d.ts.map +1 -1
- package/dist/variables/Currency.js +4 -7
- package/dist/variables/Currency.js.map +1 -1
- package/dist/variables/DateTime.d.ts +2 -3
- package/dist/variables/DateTime.d.ts.map +1 -1
- package/dist/variables/DateTime.js +4 -7
- package/dist/variables/DateTime.js.map +1 -1
- package/dist/variables/Num.d.ts +2 -3
- package/dist/variables/Num.d.ts.map +1 -1
- package/dist/variables/Num.js +4 -7
- package/dist/variables/Num.js.map +1 -1
- package/dist/variables/RelativeTime.d.ts +2 -3
- package/dist/variables/RelativeTime.d.ts.map +1 -1
- package/dist/variables/RelativeTime.js +4 -7
- package/dist/variables/RelativeTime.js.map +1 -1
- package/dist/variables/Var.d.ts +2 -3
- package/dist/variables/Var.d.ts.map +1 -1
- package/dist/variables/Var.js +1 -1
- package/dist/variables/Var.js.map +1 -1
- package/package.json +6 -8
- package/dist/config-dir/TranslationManager.d.ts +0 -69
- package/dist/config-dir/TranslationManager.d.ts.map +0 -1
- package/dist/config-dir/TranslationManager.js +0 -186
- package/dist/config-dir/TranslationManager.js.map +0 -1
- package/dist/errors/index.d.ts +0 -3
- package/dist/errors/index.d.ts.map +0 -1
- package/dist/errors/index.js +0 -19
- package/dist/errors/index.js.map +0 -1
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
24
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
50
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
-
};
|
|
52
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.TranslationManager = void 0;
|
|
54
|
-
var generaltranslation_1 = require("generaltranslation");
|
|
55
|
-
var internal_1 = require("generaltranslation/internal");
|
|
56
|
-
var loadTranslation_1 = __importDefault(require("./loadTranslation"));
|
|
57
|
-
/**
|
|
58
|
-
* Manages translations
|
|
59
|
-
*/
|
|
60
|
-
var TranslationManager = /** @class */ (function () {
|
|
61
|
-
/**
|
|
62
|
-
* Creates an instance of TranslationManager.
|
|
63
|
-
* @constructor
|
|
64
|
-
*/
|
|
65
|
-
function TranslationManager() {
|
|
66
|
-
this.config = {
|
|
67
|
-
cacheUrl: internal_1.defaultCacheUrl,
|
|
68
|
-
projectId: '',
|
|
69
|
-
_versionId: undefined,
|
|
70
|
-
translationEnabled: true,
|
|
71
|
-
};
|
|
72
|
-
this.translationsMap = new Map();
|
|
73
|
-
this.translationTimestamps = new Map();
|
|
74
|
-
this.fetchPromises = new Map();
|
|
75
|
-
this.gtServicesEnabled =
|
|
76
|
-
process.env._GENERALTRANSLATION_GT_SERVICES_ENABLED === 'true';
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Standardizes a locale if GT services are enabled.
|
|
80
|
-
* @param {string} locale - The locale to standardize.
|
|
81
|
-
* @returns {string} The standardized locale.
|
|
82
|
-
*/
|
|
83
|
-
TranslationManager.prototype._standardizeLocale = function (locale) {
|
|
84
|
-
return this.gtServicesEnabled ? (0, generaltranslation_1.standardizeLocale)(locale) : locale;
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Sets the configuration for the TranslationManager.
|
|
88
|
-
* @param {Partial<TranslationManagerConfig>} newConfig - The new configuration to apply.
|
|
89
|
-
*/
|
|
90
|
-
TranslationManager.prototype.setConfig = function (newConfig) {
|
|
91
|
-
this.config = __assign(__assign({}, this.config), newConfig);
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Fetches translations from the remote cache.
|
|
95
|
-
* @param {string} reference - The translation reference.
|
|
96
|
-
* @returns {Promise<Translations | undefined>} The fetched translations or undefined if not found.
|
|
97
|
-
*/
|
|
98
|
-
TranslationManager.prototype._fetchTranslations = function (reference) {
|
|
99
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
-
var result;
|
|
101
|
-
return __generator(this, function (_a) {
|
|
102
|
-
switch (_a.label) {
|
|
103
|
-
case 0:
|
|
104
|
-
if (!this.config.translationEnabled)
|
|
105
|
-
return [2 /*return*/, undefined];
|
|
106
|
-
return [4 /*yield*/, (0, loadTranslation_1.default)(__assign(__assign(__assign({ targetLocale: reference }, (this.config._versionId && { _versionId: this.config._versionId })), (this.config.cacheUrl && { cacheUrl: this.config.cacheUrl })), (this.config.projectId && { projectId: this.config.projectId })))];
|
|
107
|
-
case 1:
|
|
108
|
-
result = _a.sent();
|
|
109
|
-
return [2 /*return*/, result];
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* Retrieves translations for a given locale from the remote or local cache.
|
|
116
|
-
* @param {string} locale - The locale code.
|
|
117
|
-
* @returns {Promise<Translations | undefined>} The translations data or undefined if not found.
|
|
118
|
-
*/
|
|
119
|
-
TranslationManager.prototype.getCachedTranslations = function (locale) {
|
|
120
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
121
|
-
var reference, hasExpired, fetchPromise, retrievedTranslations;
|
|
122
|
-
var _a;
|
|
123
|
-
return __generator(this, function (_b) {
|
|
124
|
-
switch (_b.label) {
|
|
125
|
-
case 0:
|
|
126
|
-
reference = this._standardizeLocale(locale);
|
|
127
|
-
hasExpired = false;
|
|
128
|
-
if (typeof this.config.cacheExpiryTime === 'number') {
|
|
129
|
-
hasExpired =
|
|
130
|
-
this.config.loadTranslationsType === 'remote' &&
|
|
131
|
-
this.translationsMap.has(reference) &&
|
|
132
|
-
Date.now() - ((_a = this.translationTimestamps.get(reference)) !== null && _a !== void 0 ? _a : 0) >
|
|
133
|
-
this.config.cacheExpiryTime;
|
|
134
|
-
}
|
|
135
|
-
// Return cached translations if available
|
|
136
|
-
if (this.translationsMap.has(reference) && !hasExpired) {
|
|
137
|
-
return [2 /*return*/, this.translationsMap.get(reference)];
|
|
138
|
-
}
|
|
139
|
-
if (!this.fetchPromises.has(reference)) return [3 /*break*/, 2];
|
|
140
|
-
return [4 /*yield*/, this.fetchPromises.get(reference)];
|
|
141
|
-
case 1: return [2 /*return*/, _b.sent()];
|
|
142
|
-
case 2:
|
|
143
|
-
fetchPromise = this._fetchTranslations(reference);
|
|
144
|
-
this.fetchPromises.set(reference, fetchPromise);
|
|
145
|
-
return [4 /*yield*/, fetchPromise];
|
|
146
|
-
case 3:
|
|
147
|
-
retrievedTranslations = _b.sent();
|
|
148
|
-
this.fetchPromises.delete(reference);
|
|
149
|
-
if (retrievedTranslations) {
|
|
150
|
-
// Cache the retrieved translations
|
|
151
|
-
this.translationsMap.set(reference, retrievedTranslations);
|
|
152
|
-
this.translationTimestamps.set(reference, Date.now());
|
|
153
|
-
}
|
|
154
|
-
return [2 /*return*/, retrievedTranslations];
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* Retrieves translations for a given locale which are already cached locally.
|
|
161
|
-
* @param {string} locale - The locale code.
|
|
162
|
-
* @returns {Translations | undefined} The translations data or undefined if not found.
|
|
163
|
-
*/
|
|
164
|
-
TranslationManager.prototype.getRecentTranslations = function (locale) {
|
|
165
|
-
var reference = this._standardizeLocale(locale);
|
|
166
|
-
return this.translationsMap.get(reference);
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* Sets a new translation entry.
|
|
170
|
-
* @param {string} locale - The locale code.
|
|
171
|
-
* @param {string} hash - The key for the new entry.
|
|
172
|
-
* @param {TranslatedChildren} translation - The translation value.
|
|
173
|
-
*/
|
|
174
|
-
TranslationManager.prototype.setTranslations = function (locale, hash, translation) {
|
|
175
|
-
var _a;
|
|
176
|
-
if (!(locale && hash && translation))
|
|
177
|
-
return false;
|
|
178
|
-
var reference = this._standardizeLocale(locale);
|
|
179
|
-
this.translationsMap.set(reference, __assign(__assign({}, (this.translationsMap.get(reference) || {})), (_a = {}, _a[hash] = translation, _a)));
|
|
180
|
-
};
|
|
181
|
-
return TranslationManager;
|
|
182
|
-
}());
|
|
183
|
-
exports.TranslationManager = TranslationManager;
|
|
184
|
-
var translationManager = new TranslationManager();
|
|
185
|
-
exports.default = translationManager;
|
|
186
|
-
//# sourceMappingURL=TranslationManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationManager.js","sourceRoot":"","sources":["../../src/config-dir/TranslationManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAuD;AACvD,wDAA8D;AAE9D,s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S,CAAC,CAAC;wBAErC,IAAI,qBAAqB,EAAE,CAAC;4BAC1B,mCAAmC;4BACnC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;4BAC3D,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;wBACxD,CAAC;wBAED,sBAAO,qBAAqB,EAAC;;;;KAC9B;IAED;;;;OAIG;IACH,kDAAqB,GAArB,UAAsB,MAAc;QAClC,IAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAClD,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;IAED;;;;;OAKG;IACH,4CAAe,GAAf,UACE,MAAc,EACd,IAAY,EACZ,WAA+B;;QAE/B,IAAI,CAAC,CAAC,MAAM,IAAI,IAAI,IAAI,WAAW,CAAC;YAAE,OAAO,KAAK,CAAC;QACnD,IAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,wBAC7B,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,gBAC7C,IAAI,IAAG,WAAW,OACnB,CAAC;IACL,CAAC;IACH,yBAAC;AAAD,CAAC,AApID,IAoIC;AApIY,gDAAkB;AAsI/B,IAAM,kBAAkB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AACpD,kBAAe,kBAAkB,CAAC"}
|
package/dist/errors/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC"}
|
package/dist/errors/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./createErrors"), exports);
|
|
18
|
-
__exportStar(require("./ssg"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/dist/errors/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,wCAAsB"}
|