relic 0.2.0 → 0.4.1
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/README.md +129 -0
- package/dist/cli.js +464 -0
- package/package.json +62 -6
- package/prebuilds/darwin-arm64/.gitkeep +0 -0
- package/prebuilds/darwin-arm64/librelic_runner.d +1 -0
- package/prebuilds/darwin-arm64/librelic_runner.dylib +0 -0
- package/prebuilds/darwin-x64/.gitkeep +0 -0
- package/prebuilds/darwin-x64/librelic_runner.d +1 -0
- package/prebuilds/darwin-x64/librelic_runner.dylib +0 -0
- package/prebuilds/linux-x64/.gitkeep +0 -0
- package/prebuilds/linux-x64/librelic_runner.d +1 -0
- package/prebuilds/linux-x64/librelic_runner.so +0 -0
- package/prebuilds/win32-x64/.gitkeep +0 -0
- package/prebuilds/win32-x64/relic_runner.dll +0 -0
- package/index.js +0 -52
package/package.json
CHANGED
|
@@ -1,7 +1,63 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
"name": "relic",
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"description": "The Relic CLI for managing and sharing secrets. Encrypted on your device, never exposed to anyone else. Not even us.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"tui"
|
|
8
|
+
],
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/heycupola/relic.git",
|
|
12
|
+
"directory": "apps/cli"
|
|
13
|
+
},
|
|
14
|
+
"author": "Can Vardar",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"module": "index.ts",
|
|
17
|
+
"type": "module",
|
|
18
|
+
"bin": {
|
|
19
|
+
"relic": "dist/cli.js"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "bun run scripts/build.ts",
|
|
23
|
+
"build:runner": "cd ../../packages/runner && cargo build --release",
|
|
24
|
+
"prepublishOnly": "bun run build",
|
|
25
|
+
"dev:cli": "DEV=true bun run build:runner && bun run index.ts",
|
|
26
|
+
"log:watch": "bun run ../../packages/logger/scripts/watch.ts",
|
|
27
|
+
"lint": "biome check --write .",
|
|
28
|
+
"format": "biome format --write .",
|
|
29
|
+
"check-types": "tsc --noEmit",
|
|
30
|
+
"test": "bun test"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist/**",
|
|
34
|
+
"prebuilds/**",
|
|
35
|
+
"README.md"
|
|
36
|
+
],
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"argon2": "^0.41.1"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@clack/prompts": "^0.11.0",
|
|
42
|
+
"@repo/auth": "*",
|
|
43
|
+
"@repo/backend": "*",
|
|
44
|
+
"@repo/crypto": "*",
|
|
45
|
+
"@repo/logger": "*",
|
|
46
|
+
"@repo/tui": "*",
|
|
47
|
+
"@repo/typescript-config": "*",
|
|
48
|
+
"@types/bun": "latest",
|
|
49
|
+
"bun-types": "^1.3.1",
|
|
50
|
+
"commander": "^13.1.0",
|
|
51
|
+
"convex": "catalog:",
|
|
52
|
+
"open": "^11.0.0",
|
|
53
|
+
"ora": "^8.2.0",
|
|
54
|
+
"picocolors": "^1.1.1",
|
|
55
|
+
"smol-toml": "^1.6.0"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"typescript": "^5"
|
|
59
|
+
},
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">=18"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/Users/runner/work/relic/relic/packages/runner/target/aarch64-apple-darwin/release/librelic_runner.dylib: /Users/runner/work/relic/relic/packages/runner/src/lib.rs
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/Users/runner/work/relic/relic/packages/runner/target/x86_64-apple-darwin/release/librelic_runner.dylib: /Users/runner/work/relic/relic/packages/runner/src/lib.rs
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/home/runner/work/relic/relic/packages/runner/target/x86_64-unknown-linux-gnu/release/librelic_runner.so: /home/runner/work/relic/relic/packages/runner/src/lib.rs
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
package/index.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* New relic
|
|
5
|
-
*/
|
|
6
|
-
var Relic = function(){
|
|
7
|
-
this.cache = {};
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Set a new key into the cache
|
|
12
|
-
* @param {String} key
|
|
13
|
-
* @param {Mixed} value
|
|
14
|
-
* @param {Number} ttl
|
|
15
|
-
*/
|
|
16
|
-
Relic.prototype.set = function(key, value, ttl){
|
|
17
|
-
var record = this.cache[key] || {};
|
|
18
|
-
|
|
19
|
-
if (record.timeout){
|
|
20
|
-
clearTimeout(record.timeout);
|
|
21
|
-
record = {};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (ttl){
|
|
25
|
-
record.expires = ttl + (+new Date());
|
|
26
|
-
record.timeout = setTimeout(function(){
|
|
27
|
-
this.del(key);
|
|
28
|
-
}.bind(this), ttl);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
record.value = value;
|
|
32
|
-
this.cache[key] = record;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Get a key from the cache
|
|
37
|
-
* @param {String} key
|
|
38
|
-
*/
|
|
39
|
-
Relic.prototype.get = function(key){
|
|
40
|
-
var record = this.cache[key];
|
|
41
|
-
return record ? record.value : undefined;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Delete a key from the cache
|
|
46
|
-
* @param {String} key
|
|
47
|
-
*/
|
|
48
|
-
Relic.prototype.del = function(key){
|
|
49
|
-
delete this.cache[key];
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
module.exports = Relic;
|