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

@iyio/common

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iyio/common - npm Package Compare versions

Comparing version 0.0.29 to 0.0.30

src/lib/auth.deps.d.ts

2

package.json
{
"name": "@iyio/common",
"version": "0.0.29",
"version": "0.0.30",
"type": "commonjs",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

export * from './lib/array';
export * from './lib/auth-types';
export * from './lib/auth.deps';
export * from './lib/AuthService';

@@ -20,2 +21,3 @@ export * from './lib/base64';

export * from './lib/http-types';
export * from './lib/http.deps';
export * from './lib/HttpClient';

@@ -25,2 +27,3 @@ export * from './lib/HttpDefaultFetcher';

export * from './lib/jwt';
export * from './lib/jwt.deps';
export * from './lib/LocalStorageStore';

@@ -39,2 +42,3 @@ export * from './lib/Lock';

export * from './lib/QueryCtrl';
export * from './lib/QueryCtrl.deps';
export * from './lib/RouterStore';

@@ -52,2 +56,3 @@ export * from './lib/rxjs-types';

export * from './lib/sql-types';
export * from './lib/sql.deps';
export * from './lib/SqlBaseClient';

@@ -59,2 +64,3 @@ export * from './lib/SqlHttpClient';

export * from './lib/store-types';
export * from './lib/store.deps';
export * from './lib/string';

@@ -66,2 +72,3 @@ export * from './lib/string-converters';

export * from './lib/ui-lib';
export * from './lib/ui-lib.deps';
export * from './lib/uri';

@@ -71,2 +78,1 @@ export * from './lib/uuid';

export * from './lib/window-size-lib';
export * from './lib/_types.common';

@@ -6,2 +6,3 @@ "use strict";

tslib_1.__exportStar(require("./lib/auth-types"), exports);
tslib_1.__exportStar(require("./lib/auth.deps"), exports);
tslib_1.__exportStar(require("./lib/AuthService"), exports);

@@ -24,2 +25,3 @@ tslib_1.__exportStar(require("./lib/base64"), exports);

tslib_1.__exportStar(require("./lib/http-types"), exports);
tslib_1.__exportStar(require("./lib/http.deps"), exports);
tslib_1.__exportStar(require("./lib/HttpClient"), exports);

@@ -29,2 +31,3 @@ tslib_1.__exportStar(require("./lib/HttpDefaultFetcher"), exports);

tslib_1.__exportStar(require("./lib/jwt"), exports);
tslib_1.__exportStar(require("./lib/jwt.deps"), exports);
tslib_1.__exportStar(require("./lib/LocalStorageStore"), exports);

@@ -43,2 +46,3 @@ tslib_1.__exportStar(require("./lib/Lock"), exports);

tslib_1.__exportStar(require("./lib/QueryCtrl"), exports);
tslib_1.__exportStar(require("./lib/QueryCtrl.deps"), exports);
tslib_1.__exportStar(require("./lib/RouterStore"), exports);

@@ -56,2 +60,3 @@ tslib_1.__exportStar(require("./lib/rxjs-types"), exports);

tslib_1.__exportStar(require("./lib/sql-types"), exports);
tslib_1.__exportStar(require("./lib/sql.deps"), exports);
tslib_1.__exportStar(require("./lib/SqlBaseClient"), exports);

@@ -63,2 +68,3 @@ tslib_1.__exportStar(require("./lib/SqlHttpClient"), exports);

tslib_1.__exportStar(require("./lib/store-types"), exports);
tslib_1.__exportStar(require("./lib/store.deps"), exports);
tslib_1.__exportStar(require("./lib/string"), exports);

@@ -70,2 +76,3 @@ tslib_1.__exportStar(require("./lib/string-converters"), exports);

tslib_1.__exportStar(require("./lib/ui-lib"), exports);
tslib_1.__exportStar(require("./lib/ui-lib.deps"), exports);
tslib_1.__exportStar(require("./lib/uri"), exports);

@@ -75,3 +82,2 @@ tslib_1.__exportStar(require("./lib/uuid"), exports);

tslib_1.__exportStar(require("./lib/window-size-lib"), exports);
tslib_1.__exportStar(require("./lib/_types.common"), exports);
//# sourceMappingURL=index.js.map

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

import { BaseUser } from "./BaseUser";
import type { BaseUser } from "./BaseUser";
export declare const TypeDefStaticValue: unique symbol;

@@ -3,0 +3,0 @@ export declare const TypeDefDefaultValue: unique symbol;

@@ -5,7 +5,8 @@ "use strict";

const tslib_1 = require("tslib");
const auth_deps_1 = require("./auth.deps");
const common_lib_1 = require("./common-lib");
const DisposeContainer_1 = require("./DisposeContainer");
const store_deps_1 = require("./store.deps");
const validation_1 = require("./validation");
const _internal_common_1 = require("./_internal.common");
const _types_common_1 = require("./_types.common");
const providerDataKey = 'app-common/Auth/UserAuthProviderData';

@@ -24,6 +25,6 @@ class AuthService {

return new AuthService({
currentUser: scope.subject(_types_common_1.currentBaseUser),
currentUser: scope.subject(auth_deps_1.currentBaseUser),
setUser: scope.to(_internal_common_1._setUser),
providers: scope.to(_types_common_1.AuthProviders),
store: scope.require(_types_common_1.storeRoot)
providers: scope.to(auth_deps_1.AuthProviders),
store: scope.require(store_deps_1.storeRoot)
});

@@ -30,0 +31,0 @@ }

@@ -7,4 +7,5 @@ "use strict";

const errors_1 = require("./errors");
const http_deps_1 = require("./http.deps");
const jwt_deps_1 = require("./jwt.deps");
const object_1 = require("./object");
const _types_common_1 = require("./_types.common");
class HttpClient {

@@ -14,3 +15,3 @@ constructor(options) {

if (!options.fetchers) {
options.fetchers = _types_common_1.HttpFetchers;
options.fetchers = http_deps_1.HttpFetchers;
}

@@ -20,4 +21,4 @@ }

var _a;
const apiBaseUrl = scope.to(_types_common_1.apiBaseUrlParam).get();
let baseUrlMap = scope.to(_types_common_1.httpBaseUrlMapParam).get();
const apiBaseUrl = scope.to(http_deps_1.apiBaseUrlParam).get();
let baseUrlMap = scope.to(http_deps_1.httpBaseUrlMapParam).get();
if (apiBaseUrl && !baseUrlMap) {

@@ -31,10 +32,10 @@ baseUrlMap = {};

baseUrlMap,
signers: scope.to(_types_common_1.HttpRequestSigners),
jwtProviders: scope.to(_types_common_1.JwtProviders),
fetchers: scope.to(_types_common_1.HttpFetchers),
baseUrlPrefix: (_a = scope.get(_types_common_1.httpBaseUrlPrefixParam)) !== null && _a !== void 0 ? _a : '@',
logRequests: scope.get(_types_common_1.httpLogRequestsParam),
logResponses: scope.get(_types_common_1.httpLogResponsesParam),
maxRetries: scope.get(_types_common_1.httpMaxRetriesParam),
retryDelay: scope.get(_types_common_1.httpRetryDelayMsParam),
signers: scope.to(http_deps_1.HttpRequestSigners),
jwtProviders: scope.to(jwt_deps_1.JwtProviders),
fetchers: scope.to(http_deps_1.HttpFetchers),
baseUrlPrefix: (_a = scope.get(http_deps_1.httpBaseUrlPrefixParam)) !== null && _a !== void 0 ? _a : '@',
logRequests: scope.get(http_deps_1.httpLogRequestsParam),
logResponses: scope.get(http_deps_1.httpLogResponsesParam),
maxRetries: scope.get(http_deps_1.httpMaxRetriesParam),
retryDelay: scope.get(http_deps_1.httpRetryDelayMsParam),
};

@@ -41,0 +42,0 @@ }

@@ -6,5 +6,5 @@ "use strict";

const array_1 = require("./array");
const auth_deps_1 = require("./auth.deps");
const common_lib_1 = require("./common-lib");
const uuid_1 = require("./uuid");
const _types_common_1 = require("./_types.common");
class MemoryAuthProvider {

@@ -23,3 +23,3 @@ constructor(options) {

return new MemoryAuthProvider({
userFactory: scope.to(_types_common_1.UserFactory)
userFactory: scope.to(auth_deps_1.UserFactory)
});

@@ -26,0 +26,0 @@ }

@@ -12,7 +12,9 @@ "use strict";

const query_types_1 = require("./query-types");
const QueryCtrl_deps_1 = require("./QueryCtrl.deps");
const sql_query_builder_1 = require("./sql-query-builder");
const _types_common_1 = require("./_types.common");
const sql_deps_1 = require("./sql.deps");
const store_deps_1 = require("./store.deps");
exports.defaultQueryRecordStorePath = '/QueryRecords';
class QueryCtrl {
constructor({ store = (0, _types_common_1.storeRoot)(), queryRecordStorePath = exports.defaultQueryRecordStorePath } = {}) {
constructor({ store = (0, store_deps_1.storeRoot)(), queryRecordStorePath = exports.defaultQueryRecordStorePath } = {}) {
this._query = new rxjs_1.BehaviorSubject(null);

@@ -36,4 +38,4 @@ this._state = new rxjs_1.BehaviorSubject({});

return {
store: (0, _types_common_1.storeRoot)(scope),
queryRecordStorePath: (0, _types_common_1.queryRecordStorePathParam)(scope),
store: (0, store_deps_1.storeRoot)(scope),
queryRecordStorePath: (0, QueryCtrl_deps_1.queryRecordStorePathParam)(scope),
};

@@ -93,3 +95,3 @@ }

}
data = yield (0, _types_common_1.sqlClient)().selectAsync((0, sql_query_builder_1.buildQuery)(query));
data = yield (0, sql_deps_1.sqlClient)().selectAsync((0, sql_query_builder_1.buildQuery)(query));
if (rId !== this.runId) {

@@ -164,3 +166,3 @@ return;

}
const total = (_a = (yield (0, _types_common_1.sqlClient)().selectColAsync((0, sql_query_builder_1.buildQuery)(totalQuery)))[0]) !== null && _a !== void 0 ? _a : undefined;
const total = (_a = (yield (0, sql_deps_1.sqlClient)().selectColAsync((0, sql_query_builder_1.buildQuery)(totalQuery)))[0]) !== null && _a !== void 0 ? _a : undefined;
return {

@@ -237,3 +239,3 @@ total,

delete query.limit;
data = yield (0, _types_common_1.sqlClient)().selectAsync((0, sql_query_builder_1.buildQuery)(query));
data = yield (0, sql_deps_1.sqlClient)().selectAsync((0, sql_query_builder_1.buildQuery)(query));
}

@@ -240,0 +242,0 @@ else if ((0, query_types_1.isQueryWithData)(query)) {

@@ -5,5 +5,5 @@ "use strict";

const tslib_1 = require("tslib");
const http_deps_1 = require("./http.deps");
const scope_lib_1 = require("./scope-lib");
const SqlBaseClient_1 = require("./SqlBaseClient");
const _types_common_1 = require("./_types.common");
exports.sqlHttpClientUrlParam = (0, scope_lib_1.defineStringParam)('sqlHttpClientUrl');

@@ -17,3 +17,3 @@ class SqlHttpClient extends SqlBaseClient_1.SqlBaseClient {

static fromScope(scope, options) {
return new SqlHttpClient((0, _types_common_1.httpClient)(scope), options !== null && options !== void 0 ? options : {
return new SqlHttpClient((0, http_deps_1.httpClient)(scope), options !== null && options !== void 0 ? options : {
url: scope.require(exports.sqlHttpClientUrlParam)

@@ -20,0 +20,0 @@ });

@@ -8,4 +8,4 @@ "use strict";

const scope_lib_1 = require("./scope-lib");
const store_deps_1 = require("./store.deps");
const uuid_1 = require("./uuid");
const _types_common_1 = require("./_types.common");
const keepTestStoreItemsParam = (0, scope_lib_1.defineBoolParam)('keepTestStoreItems', false);

@@ -28,3 +28,3 @@ const randomName = () => 'name-' + (0, uuid_1.uuid)();

const testMountedStoreAsync = (scope, basePath, route) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
const root = (0, _types_common_1.storeRoot)(scope);
const root = (0, store_deps_1.storeRoot)(scope);
root.mountRoute(route);

@@ -31,0 +31,0 @@ const sourceItem = (0, exports.generateRandomTestStoreItem)();

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 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 not supported yet

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