@project-sunbird/client-services
Advanced tools
Comparing version 2.10.1 to 3.0.0
@@ -1,9 +0,32 @@ | ||
export * from './channel'; | ||
export * from './content'; | ||
export * from './course'; | ||
export * from './faq'; | ||
export * from './page'; | ||
export * from './user'; | ||
export * from './device'; | ||
export * from './organisation'; | ||
export * from './form'; | ||
import { CsHttpService } from './core/http-service/interface'; | ||
import { CsClassRoomService } from './services/class-room/interface'; | ||
export interface CsConfig { | ||
core: { | ||
httpAdapter: 'HttpClientBrowserAdapter' | 'HttpClientCordovaAdapter'; | ||
global: { | ||
channelId?: string; | ||
producerId?: string; | ||
deviceId?: string; | ||
}; | ||
api: { | ||
host: string; | ||
authentication: { | ||
userToken?: string; | ||
bearerToken?: string; | ||
}; | ||
}; | ||
}; | ||
} | ||
export declare class CsModule { | ||
private static _instance?; | ||
static readonly instance: CsModule; | ||
private _container; | ||
private _isInitialised; | ||
private _config; | ||
readonly isInitialised: boolean; | ||
readonly httpService: CsHttpService; | ||
readonly classRoomService: CsClassRoomService; | ||
readonly config: CsConfig; | ||
init(config: CsConfig): Promise<void>; | ||
updateConfig(config: CsConfig): void; | ||
} |
{ | ||
"name": "@project-sunbird/client-services", | ||
"version": "2.10.1", | ||
"version": "3.0.0", | ||
"description": "Type definitions and models for Sunbird platform clients", | ||
@@ -11,5 +11,10 @@ "main": "dist/index.js", | ||
"build": "rm -rf dist && NODE_ENV=production webpack --verbose true --progress true --cache false", | ||
"build:prod": "rm -rf dist && NODE_ENV=production webpack --verbose true --progress true --cache false && cp ./package.json ./LICENSE ./README.md ./dist" | ||
"build:prod": "rm -rf dist && NODE_ENV=production webpack --verbose true --progress true --cache false && cp ./package.json ./LICENSE ./README.md ./dist", | ||
"build:analyze": "webpack --verbose true --progress true --cache false --profile --json > stats.json && npx webpack-bundle-analyzer ./stats.json", | ||
"build:dev": "rm -rf tmp && mkdir tmp && cp ./package-dev.json ./tmp/package.json && tsc -w --outDir ./tmp" | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"inversify": "^5.0.1", | ||
"qs": "^6.9.4" | ||
}, | ||
"author": "", | ||
@@ -21,3 +26,9 @@ "license": "MIT", | ||
"homepage": "https://github.com/Sunbird-Ed/sunbird-client-services#readme", | ||
"peerDependencies": { | ||
"rxjs": ">=6" | ||
}, | ||
"devDependencies": { | ||
"jest": "^25.1.0", | ||
"rxjs": "^6.5.3", | ||
"ts-jest": "^25.2.0", | ||
"tslint": "^5.12.0", | ||
@@ -29,3 +40,42 @@ "ts-loader": "^5.3.2", | ||
"webpack-cli": "^3.3.10" | ||
}, | ||
"jest": { | ||
"globals": { | ||
"ts-jest": { | ||
"tsConfig": "tsconfig.spec.json" | ||
} | ||
}, | ||
"browser": false, | ||
"rootDir": "./", | ||
"roots": [ | ||
"<rootDir>/src/" | ||
], | ||
"moduleDirectories": [ | ||
"node_modules" | ||
], | ||
"testPathIgnorePatterns": [ | ||
"/node_modules/" | ||
], | ||
"coveragePathIgnorePatterns": [], | ||
"testMatch": [ | ||
"**/?(*.)(spec).ts" | ||
], | ||
"restoreMocks": true, | ||
"moduleFileExtensions": [ | ||
"js", | ||
"jsx", | ||
"json", | ||
"ts", | ||
"tsx" | ||
], | ||
"setupFiles": [], | ||
"transform": { | ||
"^.+\\.(ts)$": "ts-jest" | ||
}, | ||
"coverageReporters": [ | ||
"text", | ||
"json" | ||
], | ||
"transformIgnorePatterns": [] | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109948
43
834
3
9
1
+ Addedinversify@^5.0.1
+ Addedqs@^6.9.4
+ Addedcall-bind@1.0.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinversify@5.1.1(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedqs@6.13.1(transitive)
+ Addedrxjs@7.8.1(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedtslib@2.8.1(transitive)