Skip to content

Commit

Permalink
fix @subql/node-core/XX not found
Browse files Browse the repository at this point in the history
  • Loading branch information
yoozo committed Nov 25, 2024
1 parent 7761cde commit ad5868d
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 15 deletions.
3 changes: 3 additions & 0 deletions packages/node-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
- @subql/node-core/XX not found issues

## [15.0.1] - 2024-11-25
### Changed
- Update polkadot/api library to 14 version
Expand Down
4 changes: 2 additions & 2 deletions packages/node-core/src/indexer/StoreOperations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// SPDX-License-Identifier: GPL-3.0

import assert from 'assert';
import {CachedModel, DbOption, handledStringify, modelsTypeToModelAttributes, NodeConfig} from '@subql/node-core';
import {Entity, FunctionPropertyNames, Store} from '@subql/types-core';
import {Boolean, GraphQLModelsType, Int, u8aToHex} from '@subql/utils';
import {GraphQLModelsType, u8aToHex} from '@subql/utils';
import {Sequelize} from '@subql/x-sequelize';
import {CachedModel, DbOption, handledStringify, modelsTypeToModelAttributes, NodeConfig} from '../';
import {EntityClass} from './store/entity';
import {StoreOperations} from './StoreOperations';
import {OperationType} from './types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { BeforeApplicationShutdown } from '@nestjs/common';
import { getLogger } from '@subql/node-core/logger';
import { ModelStatic } from '@subql/x-sequelize';
import { MetadataRepo, PoiRepo } from '../entities';
import { HistoricalMode } from '../types';
import { METADATA_ENTITY_NAME } from './metadata/utils';
import { BaseEntity, IModel } from './model';
import { POI_ENTITY_NAME } from './poi';
import { Exporter } from './types';
import {BeforeApplicationShutdown} from '@nestjs/common';
import {ModelStatic} from '@subql/x-sequelize';
import {getLogger} from '../../logger';
import {MetadataRepo, PoiRepo} from '../entities';
import {HistoricalMode} from '../types';
import {METADATA_ENTITY_NAME} from './metadata/utils';
import {BaseEntity, IModel} from './model';
import {POI_ENTITY_NAME} from './poi';
import {Exporter} from './types';

const logger = getLogger('BaseStoreModelService');
export abstract class BaseStoreModelService<M = IModel<any>> implements BeforeApplicationShutdown {
Expand Down Expand Up @@ -40,7 +40,7 @@ export abstract class BaseStoreModelService<M = IModel<any>> implements BeforeAp
return this.cachedModels[entity] as IModel<T>;
}

updateModels({ modifiedModels, removedModels }: { modifiedModels: ModelStatic<any>[]; removedModels: string[] }): void {
updateModels({modifiedModels, removedModels}: {modifiedModels: ModelStatic<any>[]; removedModels: string[]}): void {
modifiedModels.forEach((m) => {
this.cachedModels[m.name] = this.createModel(m.name);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: GPL-3.0

import assert from 'assert';
import {hasValue} from '@subql/node-core/utils';
import {Op, Transaction} from '@subql/x-sequelize';
import {hasValue} from '../../../utils';
import {DatasourceParams} from '../../dynamic-ds.service';
import {Metadata, MetadataKeys, MetadataRepo} from '../../entities';
import {APPEND_DS_QUERY, INCREMENT_QUERY} from './utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {DbOption} from '@subql/node-core/db';
import {DataTypes, Sequelize} from '@subql/x-sequelize';
import _ from 'lodash';
import {NodeConfig} from '../../../configure';
import {DbOption} from '../../../db';
import {CachedModel} from './cacheModel';
import {PlainModel} from './model';

Expand Down
2 changes: 1 addition & 1 deletion packages/node-core/src/indexer/storeModelProvider/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import {EventEmitter2} from '@nestjs/event-emitter';
import {SchedulerRegistry} from '@nestjs/schedule';
import {NodeConfig} from '@subql/node-core/configure';
import {Sequelize} from '@subql/x-sequelize';
import {NodeConfig} from '../../configure';
import {StoreCacheService} from './storeCache.service';
import {PlainStoreModelService} from './storeModel.service';
import {IStoreModelProvider} from './types';
Expand Down
3 changes: 3 additions & 0 deletions packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
- @subql/node-core/XX not found issues

## [5.4.0] - 2024-11-25
### Changed
- Improve event iteration, this improves performance with large blocks (#2601)
Expand Down

0 comments on commit ad5868d

Please sign in to comment.