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

@datagrok-libraries/utils

Package Overview
Dependencies
Maintainers
0
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datagrok-libraries/utils - npm Package Compare versions

Comparing version 4.2.29 to 4.2.30-rc

4

CHANGELOG.md
# utils changelog
## 4.2.30 (2024-09-06)
- Preparing 1.21.1 release
## 4.2.29 (2024-08-23)

@@ -4,0 +8,0 @@

4

package.json

@@ -11,7 +11,7 @@ {

"fullName": "Utils",
"version": "4.2.29",
"version": "4.2.30-rc",
"description": "Common utilities",
"dependencies": {
"cash-dom": "^8.1.1",
"datagrok-api": "^1.20.0",
"datagrok-api": ">=1.21.1-rc.9611340ae5.984aeb5375",
"fast-sha256": "^1.3.0",

@@ -18,0 +18,0 @@ "rxjs": "^6.5.5",

import * as DG from 'datagrok-api/dg';
import { Subject } from 'rxjs';
import { Subject, Observable } from 'rxjs';
export type ItemType = {

@@ -30,3 +30,3 @@ [_: string]: any;

value: any;
onChanged: (action: () => void) => void;
onChanged: Observable<any>;
addOptions?: (el: HTMLElement) => void;

@@ -33,0 +33,0 @@ addValidator: (validator: (value: string) => string | null) => void;

@@ -117,3 +117,3 @@ import * as DG from 'datagrok-api/dg';

inputsMap[prop.name] = input;
input.onChanged(() => {
input.onChanged.subscribe(() => {
item[prop.name] = input.value;

@@ -173,2 +173,2 @@ isAdding ? this.onAddingItemChanged.next({ item, fieldName: prop.name }) :

*/
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbXMtZ3JpZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIml0ZW1zLWdyaWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUN0QyxPQUFPLEtBQUssRUFBRSxNQ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getUserSettings(): Promise<FilesSettings>;
setUserSettings(value: FilesSettings): Promise<void>;
setUserSettings(value: FilesSettings): void;
protected getAllAvailable(): Promise<string[]>;

@@ -17,0 +17,0 @@ getActive(): Promise<string[]>;

@@ -28,3 +28,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

return this.settings;
const resStr = yield grok.dapi.userDataStorage.getValue(this.userStorageName, 'Settings', true);
const resStr = grok.userSettings.getValue(this.userStorageName, 'Settings');
const res = resStr ? JSON.parse(resStr) : { excluded: [], explicit: [] };

@@ -37,6 +37,4 @@ res.explicit = res.explicit instanceof Array ? res.explicit : [];

setUserSettings(value) {
return __awaiter(this, void 0, void 0, function* () {
this.settings = value;
yield grok.dapi.userDataStorage.postValue(this.userStorageName, 'Settings', JSON.stringify(value), true);
});
this.settings = value;
grok.userSettings.add(this.userStorageName, 'Settings', JSON.stringify(value));
}

@@ -63,3 +61,3 @@ getAllAvailable() {

value: isChecked,
onValueChanged: (input) => this.updateSelectionStatus(available, input.value)
onValueChanged: (value) => this.updateSelectionStatus(available, value)
});

@@ -125,6 +123,4 @@ cb.addOptions(ui.button(ui.iconFA('trash'), () => {

settings.excluded.splice(index, 1);
yield Promise.all([
this.setUserSettings(settings),
grok.dapi.files.delete(this.path + available)
]);
this.setUserSettings(settings);
yield grok.dapi.files.delete(this.path + available);
grok.shell.info(`File ${available} successfully deleted`);

@@ -149,2 +145,2 @@ });

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLWZpbGVzLWJhc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhY3RpdmUtZmlsZXMtYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxPQUFPLEtBQUssSUFBSSxNQUFNLG1CQUFtQixDQUFDO0FBQzFDLE9BQU8sS0FBSyxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFD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Ake2F2YWlsYWJsZX0gc3VjY2Vzc2Z1bGx5IGRlbGV0ZWRgKTtcbiAgfVxuXG4gIHByaXZhdGUgYXN5bmMgZ2V0TmV3QXZhaWxhYmxlKCk6IFByb21pc2U8c3RyaW5nPiB7XG4gICAgcmV0dXJuIG5ldyBQcm9taXNlPHN0cmluZz4oKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgREcuVXRpbHMub3BlbkZpbGUoe1xuICAgICAgICBhY2NlcHQ6IHRoaXMuZXh0LFxuICAgICAgICBvcGVuOiBhc3luYyAoc2VsZWN0ZWRGaWxlKSA9PiB7XG4gICAgICAgICAgY29uc3QgcGF0aCA9IHNlbGVjdGVkRmlsZS5uYW1lO1xuICAgICAgICAgIGNvbnN0IGJ1ZmZlciA9IGF3YWl0IHNlbGVjdGVkRmlsZS5hcnJheUJ1ZmZlcigpO1xuICAgICAgICAgIGF3YWl0IGdyb2suZGFwaS5maWxlcy53cml0ZSh0aGlzLnBhdGggKyBgJHtzZWxlY3RlZEZpbGUubmFtZX1gLCAobmV3IFVpbnQ4QXJyYXkoYnVmZmVyKSkgYXMgYW55KTtcbiAgICAgICAgICByZXNvbHZlKHBhdGgpO1xuICAgICAgICB9XG4gICAgICB9KTtcbiAgICB9KTtcbiAgfVxufVxuIl19

@@ -261,2 +261,2 @@ import * as DG from 'datagrok-api/dg';

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybXMtdmlld2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZm9ybXMtdmlld2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDdEMsT0FBTyxLQUFLLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUN0QyxPQUFPLEtBQUssSUFBSSxNQUFNLG1CQUFtQixDQUFDO0FBQzFDLE9BQU8sRUF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Q7YCk7XG4gICAgICAgICAgICAgICAgICAgIGlucHV0LmlucHV0LnN0eWxlLmJhY2tncm91bmRDb2xvciA9IERHLkNvbG9yLnRvSHRtbChjb2xvcik7XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpbnB1dC5pbnB1dC5vbmNsaWNrID0gKGU6IE1vdXNlRXZlbnQpID0+IHtcbiAgICAgICAgICAgICAgdGhpcy5kYXRhRnJhbWUuY3VycmVudENlbGwgPSB0aGlzLmRhdGFGcmFtZS5jZWxsKHJvdywgbmFtZSk7XG4gICAgICAgICAgICAgIHRoaXMuaW5wdXRDbGlja2VkLm5leHQobmFtZSk7XG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgdWkudG9vbHRpcC5iaW5kKGlucHV0LmlucHV0LCBuYW1lKTtcblxuICAgICAgICAgICAgcmVzRGl2ID0gaW5wdXQuaW5wdXQ7XG4gICAgICAgICAgfVxuICAgICAgICB9IGNhdGNoIHsgfVxuICAgICAgICByZXR1cm4gcmVzRGl2O1xuICAgICAgfVxuICAgICAgKSwgJ2Q0LW11bHRpLWZvcm0tZm9ybScpO1xuXG4gICAgaWYgKHRoaXMuc2hvd01vdXNlT3ZlclJvdyAmJiBzYXZlZElkeCA9PSB0aGlzLm1vdXNlT3ZlclBvcylcbiAgICAgIGZvcm0uYXBwZW5kKHRoaXMubW91c2VPdmVyUm93SW5kaWNhdG9yKTtcbiAgICBpZiAodGhpcy5zaG93Q3VycmVudFJvdyAmJiBzYXZlZElkeCA9PT0gdGhpcy5jdXJyZW50Um93UG9zKVxuICAgICAgZm9ybS5hcHBlbmQodGhpcy5jdXJyZW50Um93SW5kaWNhdG9yKTtcblxuICAgIGZvcm0ub25jbGljayA9IChldmVudDogTW91c2VFdmVudCkgPT4ge1xuICAgICAgaWYgKGV2ZW50LmN0cmxLZXkgJiYgZXZlbnQuc2hpZnRLZXkpIH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9sZWN1bGUtaW5wdXQtJHt0aGlzLm1vbGVjdWxlU2l6ZX1gKTtcbiAgICAgICAgICAgIGlucHV0LmlucHV0LnNldEF0dHJpYnV0ZSgnY29sdW1uJywgbmFtZSk7XG4gICAgICAgICAgICBpbnB1dC52YWx1ZSA9IHRoaXMuZGF0YUZyYW1lLmdldChuYW1lLCByb3cpO1xuICAgICAgICAgICAgaW5wdXQucmVhZE9ubHkgPSB0cnVlO1xuXG4gICAgICAgICAgICBpZiAodGhpcy5jb2xvckNvZGUpIHtcbiAgICAgICAgICAgICAgY29uc3QgZ3JpZCA9ICgodGhpcy52aWV3ID8/IGdyb2suc2hlbGwudHYpIGFzIERHLlRhYmxlVmlldykuZ3JpZDtcbiAgICAgICAgICAgICAgaWYgKGdyaWQpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBncmlkQ2VsbElkeCA9IGdyaWQuZ2V0Um93T3JkZXIoKS5pbmRleE9mKHJvdyk7XG4gICAgICAgICAgICAgICAgaWYgKGdyaWRDZWxsSWR4ICE9PSAtMSkge1xuICAgICAgICAgICAgICAgICAgY29uc3QgY29sb3IgPSBncmlkLmNlbGwobmFtZSwgZ3JpZENlbGxJZHgpLmNvbG9yO1xuICAgICAgICAgICAgICAgICAgaWYgKGdyaWQuY29sKG5hbWUpPy5pc1RleHRDb2xvckNvZGVkKVxuICAgICAgICAgICAgICAgICAgICBpbnB1dC5pbnB1dC5zZXRBdHRyaWJ1dGUoJ3N0eWxlJywgYGNvbG9yOiR7REcuQ29sb3IudG9IdG1sKGNvbG9yKX0haW1wb3J0YW50O2ApO1xuICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGlucHV0LmlucHV0LnNldEF0dHJpYnV0ZSgnc3R5bGUnLFxuICAgICAgICAgICAgICAgICAgICAgIGBjb2xvcjoke0RHLkNvbG9yLnRvSHRtbChERy5Db2xvci5nZXRDb250cmFzdENvbG9yKGNvbG9yKSl9IWltcG9ydGFudDtgKTtcbiAgICAgICAgICAgICAgICAgICAgaW5wdXQuaW5wdXQuc3R5bGUuYmFja2dyb3VuZENvbG9yID0gREcuQ29sb3IudG9IdG1sKGNvbG9yKTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlucHV0LmlucHV0Lm9uY2xpY2sgPSAoZTogTW91c2VFdmVudCkgPT4ge1xuICAgICAgICAgICAgICB0aGlzLmRhdGFGcmFtZS5jdXJyZW50Q2VsbCA9IHRoaXMuZGF0YUZyYW1lLmNlbGwocm93LCBuYW1lKTtcbiAgICAgICAgICAgICAgdGhpcy5pbnB1dENsaWNrZWQubmV4dChuYW1lKTtcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICB1aS50b29sdGlwLmJpbmQoaW5wdXQuaW5wdXQsIG5hbWUpO1xuXG4gICAgICAgICAgICByZXNEaXYgPSBpbnB1dC5pbnB1dDtcbiAgICAgICAgICB9XG4gICAgICAgIH0gY2F0Y2ggeyB9XG4gICAgICAgIHJldHVybiByZXNEaXY7XG4gICAgICB9XG4gICAgICApLCAnZDQtbXVsdGktZm9ybS1mb3JtJyk7XG5cbiAgICBpZiAodGhpcy5zaG93TW91c2VPdmVyUm93ICYmIHNhdmVkSWR4ID09IHRoaXMubW91c2VPdmVyUG9zKVxuICAgICAgZm9ybS5hcHBlbmQodGhpcy5tb3VzZU92ZXJSb3dJbmRpY2F0b3IpO1xuICAgIGlmICh0aGlzLnNob3dDdXJyZW50Um93ICYmIHNhdmVkSWR4ID09PSB0aGlzLmN1cnJlbnRSb3dQb3MpXG4gICAgICBmb3JtLmFwcGVuZCh0aGlzLmN1cnJlbnRSb3dJbmRpY2F0b3IpO1xuXG4gICAgZm9ybS5vbmNsaWNrID0gKGV2ZW50OiBNb3VzZUV2ZW50KSA9PiB7XG4gICAgICBpZiAoZXZlbnQuY3RybEtleSAmJiBldmVudC5zaGlmdEtleSkge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9XG5cbiAgcmVuZGVyKCkge1xuICAgIGlmICghdGhpcy5zaG93Rml4ZWRSb3dzKSB7XG4gICAgICBpZiAodGhpcy5zaG93U2VsZWN0ZWRSb3dzKSB7XG4gICAgICAgIHRoaXMuaW5kZXhlcyA9IHRoaXMuZGF0YUZyYW1lLnNlbGVjdGlvbi50cnVlQ291bnQgPiAwID9cbiAgICAgICAgICBBcnJheS5mcm9tKHRoaXMuZGF0YUZyYW1lLnNlbGVjdGlvbi5nZXRTZWxlY3RlZEluZGV4ZXMoKSkgOiBbXTtcbiAgICAgIH1cbiAgICAgIGVsc2VcbiAgICAgICAgdGhpcy5pbmRleGVzID0gW107XG4gICAgfVxuXG4gICAgdWkuZW1wdHkodGhpcy5jb2x1bW5IZWFkZXJzRGl2KTtcblxuICAgIHRoaXMucmVuZGVySGVhZGVyKCk7XG5cbiAgICB0aGlzLnZpcnR1YWxWaWV3LnNldERhdGEoXG4gICAgICB0aGlzLmluZGV4ZXMubGVuZ3RoICsgKHRoaXMuc2hvd0N1cnJlbnRSb3cgPyAxIDogMCkgKyAodGhpcy5zaG93TW91c2VPdmVyUm93ID8gMSA6IDApLFxuICAgICAgKGk6IG51bWJlcikgPT4gdGhpcy5yZW5kZXJGb3JtKGkpKTtcbiAgfVxufVxuIl19

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

Sorry, the diff of this file is too big to display

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