🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

nuxt-typed-vuex

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-typed-vuex - npm Package Compare versions

Comparing version

to
0.1.9-beta.0

25

lib/module.js

@@ -1,4 +0,12 @@

import path from 'path';
import normalize from "normalize-path";
export default async function nuxtTypedVuex() {
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
const normalize_path_1 = __importDefault(require("normalize-path"));
async function nuxtTypedVuex() {
if (!this.options.store) {

@@ -10,13 +18,14 @@ console.warn('You do not have a Nuxt store defined.');

this.addPlugin({
src: path.resolve(__dirname, './plugin.js'),
src: path_1.default.resolve(__dirname, './plugin.js'),
fileName: 'nuxt-typed-vuex.js',
options: {
utils: normalize(path.join(libDir, 'utils')),
store: normalize(path.join(buildDir, 'store')),
utils: normalize_path_1.default(path_1.default.join(libDir, 'utils')),
store: normalize_path_1.default(path_1.default.join(buildDir, 'store')),
},
});
}
exports.default = nuxtTypedVuex;
// eslint-disable-next-line
export const meta = require('../package.json');
export * from './utils';
exports.meta = require('../package.json');
__export(require("./utils"));
//# sourceMappingURL=module.js.map

@@ -0,1 +1,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// eslint-disable-next-line

@@ -6,5 +8,5 @@ const { createStore } = require('<%= options.store %>');

const storeAccessor = getAccessorFromStore(createStore());
export default async ({ store }, inject) => {
exports.default = async ({ store }, inject) => {
inject('accessor', storeAccessor(store));
};
//# sourceMappingURL=plugin.js.map

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

export const getStoreType = (store) => {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStoreType = (store) => {
return {

@@ -9,3 +11,3 @@ actionContext: {},

};
export const getAccessorType = (store) => {
exports.getAccessorType = (store) => {
return {};

@@ -43,3 +45,3 @@ };

};
export const useAccessor = (store, input) => {
exports.useAccessor = (store, input) => {
const accessor = createAccessor(store, input);

@@ -49,11 +51,11 @@ Object.keys(input.modules || {}).forEach(namespace => {

});
const storeType = getAccessorType(input);
const storeType = exports.getAccessorType(input);
return accessor;
};
export const getAccessorFromStore = (pattern) => {
return (store) => useAccessor(store, pattern._modules.root._rawModule);
exports.getAccessorFromStore = (pattern) => {
return (store) => exports.useAccessor(store, pattern._modules.root._rawModule);
};
export const getterTree = (_state, tree) => tree;
export const mutationTree = (_state, tree) => tree;
export const actionTree = (_store, tree) => tree;
exports.getterTree = (_state, tree) => tree;
exports.mutationTree = (_state, tree) => tree;
exports.actionTree = (_store, tree) => tree;
//# sourceMappingURL=utils.js.map
{
"name": "nuxt-typed-vuex",
"version": "0.1.8",
"version": "0.1.9-beta.0",
"description": "A typed store accessor for Nuxt.",

@@ -13,2 +13,11 @@ "repository": "danielroe/nuxt-typed-vuex",

],
"keywords": [
"vuex",
"nuxt",
"typescript",
"vue",
"vuejs",
"nuxtjs",
"nuxt-module"
],
"files": [

@@ -31,17 +40,17 @@ "lib"

"@babel/preset-typescript": "^7.6.0",
"@nuxt/typescript-build": "^0.3.1",
"@nuxt/typescript-runtime": "^0.2.1",
"@nuxt/typescript-build": "^0.3.2",
"@nuxt/typescript-runtime": "^0.2.2",
"@nuxtjs/eslint-config": "^1.1.2",
"@types/jest": "^24.0.18",
"@types/jest": "^24.0.19",
"@types/normalize-path": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^2.3.3",
"@typescript-eslint/parser": "^2.3.3",
"@typescript-eslint/eslint-plugin": "^2.5.0",
"@typescript-eslint/parser": "^2.5.0",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"codecov": "^3.5.0",
"eslint": "^6.3.0",
"codecov": "^3.6.1",
"eslint": "^6.5.1",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.17.0",
"eslint-plugin-jest": "^22.20.0",
"eslint-plugin-node": "^10.0.0",

@@ -53,3 +62,3 @@ "eslint-plugin-promise": "^4.2.1",

"standard-version": "^7.0.0",
"ts-loader": "^6.2.0",
"ts-loader": "^6.2.1",
"typescript": "^3.6.4"

@@ -56,0 +65,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet