■ ■ ■ ■ ■ ■
opencti-platform/opencti-graphql/src/config/conf.js
| skipped 14 lines |
15 | 15 | | ABSTRACT_STIX_DOMAIN_OBJECT, |
16 | 16 | | } from '../schema/general'; |
17 | 17 | | import { STIX_SIGHTING_RELATIONSHIP } from '../schema/stixSightingRelationship'; |
| 18 | + | import pjson from '../../package.json'; |
18 | 19 | | |
19 | 20 | | // https://golang.org/src/crypto/x509/root_linux.go |
20 | 21 | | const LINUX_CERTFILES = [ |
| skipped 94 lines |
115 | 116 | | }, |
116 | 117 | | }; |
117 | 118 | | |
118 | | - | export const PLATFORM_VERSION = process.env.npm_package_version; |
| 119 | + | export const PLATFORM_VERSION = pjson.version; |
119 | 120 | | |
120 | 121 | | export const booleanConf = (key, defaultValue = true) => { |
121 | 122 | | const configValue = nconf.get(key); |
| skipped 174 lines |