Move constants for node-oracledb version to separate file
This commit is contained in:
parent
317ce7ac79
commit
865d952868
|
@ -24,28 +24,28 @@
|
|||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// This file contains values for implementation and public constants. All
|
||||
// public constants are later exposed to node-oracledb apps via the exports of
|
||||
// oracledb.js.
|
||||
// This file contains values for implementation and public constants.
|
||||
//
|
||||
// All public constants are later exposed to node-oracledb apps via the exports
|
||||
// of oracledb.js.
|
||||
|
||||
'use strict';
|
||||
|
||||
// version information
|
||||
// leave suffix empty for production releases
|
||||
const VERSION_MAJOR = 6;
|
||||
const VERSION_MINOR = 0;
|
||||
const VERSION_PATCH = 0;
|
||||
const VERSION_SUFFIX = '-dev';
|
||||
const VERSION_STRING = VERSION_MAJOR + '.' + VERSION_MINOR + '.' +
|
||||
VERSION_PATCH + VERSION_SUFFIX;
|
||||
const version = require('./version.js');
|
||||
|
||||
const VERSION_STRING =
|
||||
version.VERSION_MAJOR + '.' +
|
||||
version.VERSION_MINOR + '.' +
|
||||
version.VERSION_PATCH +
|
||||
version.VERSION_SUFFIX;
|
||||
|
||||
module.exports = {
|
||||
|
||||
// version information
|
||||
VERSION_MAJOR: VERSION_MAJOR,
|
||||
VERSION_MINOR: VERSION_MINOR,
|
||||
VERSION_PATCH: VERSION_PATCH,
|
||||
VERSION_SUFFIX: VERSION_SUFFIX,
|
||||
VERSION_MAJOR: version.VERSION_MAJOR,
|
||||
VERSION_MINOR: version.VERSION_MINOR,
|
||||
VERSION_PATCH: version.VERSION_PATCH,
|
||||
VERSION_SUFFIX: version.VERSION_SUFFIX,
|
||||
VERSION_STRING: VERSION_STRING,
|
||||
|
||||
// defaults for initOracleClient()
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
// Copyright (c) 2023, Oracle and/or its affiliates.
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// This software is dual-licensed to you under the Universal Permissive License
|
||||
// (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
|
||||
// 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
|
||||
// either license.
|
||||
//
|
||||
// If you elect to accept the software under the Apache License, Version 2.0,
|
||||
// the following applies:
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// Version information.
|
||||
// Keep in sync with package.json.
|
||||
// Leave the suffix an empty string for production releases.
|
||||
|
||||
module.exports = {
|
||||
VERSION_MAJOR: 6,
|
||||
VERSION_MINOR: 0,
|
||||
VERSION_PATCH: 0,
|
||||
VERSION_SUFFIX: '-dev3'
|
||||
};
|
Loading…
Reference in New Issue