Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@empathyco/x-archetype-utils

Package Overview
Dependencies
Maintainers
5
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@empathyco/x-archetype-utils - npm Package Compare versions

Comparing version 0.1.0-alpha.10 to 0.1.0-alpha.11

dist/home/home-template.html

12

dist/cjs/build/webpack/webpack.config.js

@@ -1,5 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.webpackConfig = void 0;
exports.webpackConfig = {
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const webpackConfig = {
transpileDependencies: ['@empathyco/x-components'],

@@ -26,2 +27,3 @@ configureWebpack: {

};
//# sourceMappingURL=webpack.config.js.map
exports.webpackConfig = webpackConfig;

@@ -1,8 +0,13 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.I18n = void 0;
const tslib_1 = require("tslib");
const x_utils_1 = require("@empathyco/x-utils");
const vue_i18n_1 = tslib_1.__importDefault(require("vue-i18n"));
const x_deep_merge_1 = require("@empathyco/x-deep-merge");
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var xUtils = require('@empathyco/x-utils');
var VueI18n = require('vue-i18n');
var xDeepMerge = require('@empathyco/x-deep-merge');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var VueI18n__default = /*#__PURE__*/_interopDefaultLegacy(VueI18n);
/**

@@ -43,4 +48,4 @@ * I18n settings manager.

install(vue) {
vue.use(vue_i18n_1.default);
this.vueI18n = new vue_i18n_1.default({
vue.use(VueI18n__default["default"]);
this.vueI18n = new VueI18n__default["default"]({
locale: this.locale,

@@ -69,3 +74,3 @@ messages: this.currentMessages ? { [this.locale]: this.currentMessages } : {},

var _a;
return (0, x_utils_1.isObject)(messages)
return xUtils.isObject(messages)
? (_a = messages[key]) !== null && _a !== void 0 ? _a : messages[pathParts.slice(index).join('.')]

@@ -124,6 +129,5 @@ : messages;

// eslint-disable-next-line @typescript-eslint/no-unsafe-call
return (0, x_deep_merge_1.deepMerge)({}, messages.base, messages[this.device]);
return xDeepMerge.deepMerge({}, messages.base, messages[this.device]);
}
}
exports.I18n = I18n;
/**

@@ -139,2 +143,3 @@ * Type-guard to check if the passed messages should be lazy-loaded.

}
//# sourceMappingURL=i18n.plugin.js.map
exports.I18n = I18n;

@@ -1,7 +0,11 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./i18n/i18n.plugin"), exports);
tslib_1.__exportStar(require("./i18n/i18n.types"), exports);
tslib_1.__exportStar(require("./build/webpack/webpack.config"), exports);
//# sourceMappingURL=index.js.map
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var i18n_plugin = require('./i18n/i18n.plugin.js');
var webpack_config = require('./build/webpack/webpack.config.js');
exports.I18n = i18n_plugin.I18n;
exports.webpackConfig = webpack_config.webpackConfig;

@@ -1,2 +0,2 @@

export const webpackConfig = {
const webpackConfig = {
transpileDependencies: ['@empathyco/x-components'],

@@ -23,2 +23,3 @@ configureWebpack: {

};
//# sourceMappingURL=webpack.config.js.map
export { webpackConfig };
import { isObject } from '@empathyco/x-utils';
import VueI18n from 'vue-i18n';
import { deepMerge } from '@empathyco/x-deep-merge';
/**

@@ -9,3 +10,3 @@ * I18n settings manager.

*/
export class I18n {
class I18n {
/**

@@ -132,2 +133,3 @@ * Constructs a new {@link I18n} instance with the passed {@link I18nOptions | i18n options}.

}
//# sourceMappingURL=i18n.plugin.js.map
export { I18n };

@@ -1,4 +0,2 @@

export * from './i18n/i18n.plugin';
export * from './i18n/i18n.types';
export * from './build/webpack/webpack.config';
//# sourceMappingURL=index.js.map
export { I18n } from './i18n/i18n.plugin.js';
export { webpackConfig } from './build/webpack/webpack.config.js';

@@ -0,0 +0,0 @@ import { VueConstructor } from 'vue';

@@ -0,0 +0,0 @@ import VueI18n from 'vue-i18n';

export * from './i18n/i18n.plugin';
export * from './i18n/i18n.types';
export * from './build/webpack/webpack.config';
{
"name": "@empathyco/x-archetype-utils",
"version": "0.1.0-alpha.10",
"version": "0.1.0-alpha.11",
"description": "Utilities for x-archetype",

@@ -29,3 +29,3 @@ "author": "Empathy Systems Corporation S.L.",

"prebuild": "rimraf dist ./*.tgz",
"build": "concurrently \"npm run build:*\"",
"build": "rollup -c",
"build:cjs": "tsc --project tsconfig.cjs.json",

@@ -46,4 +46,7 @@ "build:esm": "tsc --project tsconfig.esm.json",

"@vue/test-utils": "~1.0.3",
"concurrently": "~7.6.0",
"jest": "~27.3.1",
"rollup": "~2.79.1",
"rollup-plugin-copy": "~3.4.0",
"rollup-plugin-delete": "~2.0.0",
"rollup-plugin-typescript2": "~0.31.2",
"ts-jest": "~27.0.7",

@@ -60,3 +63,3 @@ "typescript": "~4.6.2",

},
"gitHead": "9a571e850e671c1227d17db9b574579a8a8464ae"
"gitHead": "a9186b792b81b355139c31a2e01833bb3232944c"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc