casualos 3.5.1-alpha.15592353169 → 3.5.1-alpha.15615897404
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/dist/cli.js +25 -12
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -96946,7 +96946,7 @@ var trace = TraceAPI.getInstance();
|
|
|
96946
96946
|
function hashLowEntropyPasswordWithSalt2(password, salt) {
|
|
96947
96947
|
const tracer = trace.getTracer(
|
|
96948
96948
|
"InstrumentedHashHelpers",
|
|
96949
|
-
false ? void 0 : "v3.5.1-alpha.
|
|
96949
|
+
false ? void 0 : "v3.5.1-alpha.15615897404"
|
|
96950
96950
|
);
|
|
96951
96951
|
return tracer.startActiveSpan(
|
|
96952
96952
|
"hashLowEntropyPasswordWithSalt",
|
|
@@ -96964,7 +96964,7 @@ function hashLowEntropyPasswordWithSalt2(password, salt) {
|
|
|
96964
96964
|
function hashHighEntropyPasswordWithSalt2(password, salt) {
|
|
96965
96965
|
const tracer = trace.getTracer(
|
|
96966
96966
|
"InstrumentedHashHelpers",
|
|
96967
|
-
false ? void 0 : "v3.5.1-alpha.
|
|
96967
|
+
false ? void 0 : "v3.5.1-alpha.15615897404"
|
|
96968
96968
|
);
|
|
96969
96969
|
return tracer.startActiveSpan(
|
|
96970
96970
|
"hashHighEntropyPasswordWithSalt",
|
|
@@ -96982,7 +96982,7 @@ function hashHighEntropyPasswordWithSalt2(password, salt) {
|
|
|
96982
96982
|
function verifyPasswordAgainstHashes2(password, salt, hashes) {
|
|
96983
96983
|
const tracer = trace.getTracer(
|
|
96984
96984
|
"InstrumentedHashHelpers",
|
|
96985
|
-
false ? void 0 : "v3.5.1-alpha.
|
|
96985
|
+
false ? void 0 : "v3.5.1-alpha.15615897404"
|
|
96986
96986
|
);
|
|
96987
96987
|
return tracer.startActiveSpan(
|
|
96988
96988
|
"verifyPasswordAgainstHashes",
|
|
@@ -103814,7 +103814,7 @@ var import_semantic_conventions = __toESM(require_src3());
|
|
|
103814
103814
|
function traced(tracerName, options = {}, metricOptions = {}) {
|
|
103815
103815
|
const tracer = trace.getTracer(
|
|
103816
103816
|
tracerName,
|
|
103817
|
-
false ? void 0 : "v3.5.1-alpha.
|
|
103817
|
+
false ? void 0 : "v3.5.1-alpha.15615897404"
|
|
103818
103818
|
);
|
|
103819
103819
|
return function(target, propertyKey, descriptor) {
|
|
103820
103820
|
const originalMethod = descriptor.value;
|
|
@@ -103896,7 +103896,7 @@ function getHistogram(meter) {
|
|
|
103896
103896
|
}
|
|
103897
103897
|
return metrics.getMeter(
|
|
103898
103898
|
meter.meter,
|
|
103899
|
-
false ? void 0 : "v3.5.1-alpha.
|
|
103899
|
+
false ? void 0 : "v3.5.1-alpha.15615897404"
|
|
103900
103900
|
).createHistogram(meter.name, meter.options);
|
|
103901
103901
|
}
|
|
103902
103902
|
function getCounter(meter) {
|
|
@@ -103905,7 +103905,7 @@ function getCounter(meter) {
|
|
|
103905
103905
|
}
|
|
103906
103906
|
return metrics.getMeter(
|
|
103907
103907
|
meter.meter,
|
|
103908
|
-
false ? void 0 : "v3.5.1-alpha.
|
|
103908
|
+
false ? void 0 : "v3.5.1-alpha.15615897404"
|
|
103909
103909
|
).createCounter(meter.name, meter.options);
|
|
103910
103910
|
}
|
|
103911
103911
|
function traceHttpResponse(options = {}) {
|
|
@@ -103975,6 +103975,18 @@ var AuthController = class {
|
|
|
103975
103975
|
set privoEnabled(value) {
|
|
103976
103976
|
this._privoEnabled = value;
|
|
103977
103977
|
}
|
|
103978
|
+
/**
|
|
103979
|
+
* Gets the privo client interface.
|
|
103980
|
+
*/
|
|
103981
|
+
get privoClient() {
|
|
103982
|
+
return this._privoClient;
|
|
103983
|
+
}
|
|
103984
|
+
/**
|
|
103985
|
+
* Sets the privo client interface.
|
|
103986
|
+
*/
|
|
103987
|
+
set privoClient(value) {
|
|
103988
|
+
this._privoClient = value;
|
|
103989
|
+
}
|
|
103978
103990
|
async createAccount(request2) {
|
|
103979
103991
|
try {
|
|
103980
103992
|
const createSession = request2.createSession ?? true;
|
|
@@ -108822,8 +108834,9 @@ var PolicyController = class {
|
|
|
108822
108834
|
request2.userId
|
|
108823
108835
|
);
|
|
108824
108836
|
}
|
|
108837
|
+
const userRole = (request2.userId ? userPrivacyFeatures?.userRole : request2.userRole) ?? "none";
|
|
108825
108838
|
if (!userPrivacyFeatures) {
|
|
108826
|
-
if (this._auth.privoEnabled) {
|
|
108839
|
+
if (this._auth.privoEnabled && userRole !== "system") {
|
|
108827
108840
|
userPrivacyFeatures = {
|
|
108828
108841
|
allowAI: false,
|
|
108829
108842
|
allowPublicData: false,
|
|
@@ -108850,7 +108863,7 @@ var PolicyController = class {
|
|
|
108850
108863
|
recordStudioId: studioId,
|
|
108851
108864
|
recordStudioMembers: studioMembers,
|
|
108852
108865
|
userId: request2.userId,
|
|
108853
|
-
userRole
|
|
108866
|
+
userRole,
|
|
108854
108867
|
userPrivacyFeatures,
|
|
108855
108868
|
sendNotLoggedIn: request2.sendNotLoggedIn ?? true
|
|
108856
108869
|
};
|
|
@@ -113997,7 +114010,7 @@ var RecordsServer = class {
|
|
|
113997
114010
|
this._packageVersionController = packageVersionController;
|
|
113998
114011
|
this._tracer = trace.getTracer(
|
|
113999
114012
|
"RecordsServer",
|
|
114000
|
-
false ? void 0 : "v3.5.1-alpha.
|
|
114013
|
+
false ? void 0 : "v3.5.1-alpha.15615897404"
|
|
114001
114014
|
);
|
|
114002
114015
|
this._procedures = this._createProcedures();
|
|
114003
114016
|
this._setupRoutes();
|
|
@@ -116808,8 +116821,8 @@ var RecordsServer = class {
|
|
|
116808
116821
|
return {
|
|
116809
116822
|
success: true,
|
|
116810
116823
|
...metadata,
|
|
116811
|
-
version: true ? "v3.5.1-alpha.
|
|
116812
|
-
versionHash: true ? "
|
|
116824
|
+
version: true ? "v3.5.1-alpha.15615897404" : void 0,
|
|
116825
|
+
versionHash: true ? "67a4b68fddda1b038a11514c661663f638ea2429" : void 0
|
|
116813
116826
|
};
|
|
116814
116827
|
})
|
|
116815
116828
|
};
|
|
@@ -148471,7 +148484,7 @@ var config = new Conf({
|
|
|
148471
148484
|
projectName: "casualos-cli"
|
|
148472
148485
|
});
|
|
148473
148486
|
var program2 = new Command();
|
|
148474
|
-
program2.name("casualos").description("A CLI for CasualOS").version("v3.5.1-alpha.
|
|
148487
|
+
program2.name("casualos").description("A CLI for CasualOS").version("v3.5.1-alpha.15615897404").option(
|
|
148475
148488
|
"-e, --endpoint <url>",
|
|
148476
148489
|
"The endpoint to use for queries. Can be used to override the current endpoint."
|
|
148477
148490
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "casualos",
|
|
3
|
-
"version": "3.5.1-alpha.
|
|
3
|
+
"version": "3.5.1-alpha.15615897404",
|
|
4
4
|
"description": "Command line interface for CasualOS.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@casual-simulation/aux-common": "^3.5.1-alpha.
|
|
39
|
-
"@casual-simulation/aux-records": "^3.5.1-alpha.
|
|
38
|
+
"@casual-simulation/aux-common": "^3.5.1-alpha.15615897404",
|
|
39
|
+
"@casual-simulation/aux-records": "^3.5.1-alpha.15615897404",
|
|
40
40
|
"@octokit/app": "^15.1.0",
|
|
41
41
|
"@octokit/auth-oauth-device": "^7.1.1",
|
|
42
42
|
"@octokit/core": "^6.1.2",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"**/*.def",
|
|
64
64
|
"templates/**"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "67a4b68fddda1b038a11514c661663f638ea2429"
|
|
67
67
|
}
|