chore: rename package to vite-plugin-component-locker and update documentation and imports

This commit is contained in:
Vitalii Litvinchuk
2026-06-10 15:51:04 +03:00
parent dc8c379ecf
commit d787116167
6 changed files with 14 additions and 12 deletions
+1
View File
@@ -1 +1,2 @@
#### Created by Claude Opus 4.6 #### Created by Claude Opus 4.6
NPM link: https://www.npmjs.com/package/vite-plugin-component-locker
+1 -1
View File
@@ -9,7 +9,7 @@
"crypto", "crypto",
"security" "security"
], ],
"name": "@crypto-locker/core", "name": "vite-plugin-component-locker",
"version": "1.0.0", "version": "1.0.0",
"type": "module", "type": "module",
"main": "./dist/crypto-locker.umd.cjs", "main": "./dist/crypto-locker.umd.cjs",
+8 -7
View File
@@ -8,9 +8,9 @@
"name": "crypto-locker-example", "name": "crypto-locker-example",
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"@crypto-locker/core": "file:../core",
"react": "^19.1.0", "react": "^19.1.0",
"react-dom": "^19.1.0" "react-dom": "^19.1.0",
"vite-plugin-component-locker": "file:../core"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^19.1.0", "@types/react": "^19.1.0",
@@ -21,8 +21,9 @@
} }
}, },
"../core": { "../core": {
"name": "@crypto-locker/core", "name": "vite-plugin-component-locker",
"version": "1.0.0", "version": "1.0.0",
"license": "MIT",
"dependencies": { "dependencies": {
"crypto-js": "^4.2.0" "crypto-js": "^4.2.0"
}, },
@@ -324,10 +325,6 @@
"node": ">=6.9.0" "node": ">=6.9.0"
} }
}, },
"node_modules/@crypto-locker/core": {
"resolved": "../core",
"link": true
},
"node_modules/@esbuild/aix-ppc64": { "node_modules/@esbuild/aix-ppc64": {
"version": "0.25.12", "version": "0.25.12",
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",
@@ -1844,6 +1841,10 @@
} }
} }
}, },
"node_modules/vite-plugin-component-locker": {
"resolved": "../core",
"link": true
},
"node_modules/yallist": { "node_modules/yallist": {
"version": "3.1.1", "version": "3.1.1",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+1 -1
View File
@@ -9,7 +9,7 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"@crypto-locker/core": "file:../core", "vite-plugin-component-locker": "file:../core",
"react": "^19.1.0", "react": "^19.1.0",
"react-dom": "^19.1.0" "react-dom": "^19.1.0"
}, },
+1 -1
View File
@@ -1,5 +1,5 @@
import React, { useState } from "react"; import React, { useState } from "react";
import { useCryptoLocker } from "@crypto-locker/core"; import { useCryptoLocker } from "vite-plugin-component-locker";
import "./App.css"; import "./App.css";
// The decrypted data will be a React component type // The decrypted data will be a React component type
+1 -1
View File
@@ -1,6 +1,6 @@
import { defineConfig, loadEnv } from "vite"; import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react"; import react from "@vitejs/plugin-react";
import { cryptoLockerPlugin } from "@crypto-locker/core/plugin"; import { cryptoLockerPlugin } from "vite-plugin-component-locker/plugin";
export default defineConfig(({ mode }) => { export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), ''); const env = loadEnv(mode, process.cwd(), '');