node-opcua-data-access
Advanced tools
Comparing version 2.5.10 to 2.6.0-alpha.0
@@ -1,4 +0,1 @@ | ||
/** | ||
* @module node-opcua-data-access | ||
*/ | ||
export { EUInformation } from "node-opcua-types"; | ||
@@ -5,0 +2,0 @@ import { EUInformation } from "node-opcua-types"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* @module node-opcua-data-access | ||
*/ | ||
exports.standardUnits = exports.makeEUInformation = exports.commonCodeToUInt = void 0; | ||
var node_opcua_types_1 = require("node-opcua-types"); | ||
exports.EUInformation = node_opcua_types_1.EUInformation; | ||
/*jslint bitwise: true */ | ||
// tslint:disable:no-bitwise | ||
// EngineeringUnit | ||
// Units of measurement for AnalogItems that represent continuously- variable physical quantities ( e.g., | ||
// length, mass , time, temperature ) | ||
// NOTE This standard defines Properties to inform about the unit used for the DataI tem value and | ||
// about the highest and lowest value likely to be obtained in normal operation | ||
Object.defineProperty(exports, "EUInformation", { enumerable: true, get: function () { return node_opcua_types_1.EUInformation; } }); | ||
const node_opcua_types_2 = require("node-opcua-types"); | ||
@@ -27,33 +18,3 @@ const defaultUri = "http://www.opcfoundation.org/UA/units/un/cefact"; | ||
"Contains the full name of the engineering unit such as ”hour” or ”meter per second"; | ||
// The displayName of the engineering unit is typically the abbreviation of the | ||
// engineering unit, for example ”h” for hour or ”m/s” for meter per second." + | ||
// "description LocalizedText Contains the full name of the engineering unit such as ”hour” or ”meter | ||
// http://www.unece.org/fileadmin/DAM/cefact/recommendations/rec20/rec20_rev3_Annex2e.pdf | ||
// To facilitate interoperability, OPC UA specifies how to apply the widely accepted "Codes for Units of Measurement | ||
// (Recommendation N°. 20)” published by the "United Nations Centre for Trade | ||
// Facilitation and Electronic Business” (see UN/CEFACT). It uses and is based on the International System of Units | ||
// (SI Units) but in addition provides a fixed code that can be used for automated evaluation. This recommendation | ||
// has been accepted by many industries on a global basis. | ||
// | ||
// Following is a small excerpt of the published Annex with Code Lists: | ||
// Excerpt from Recommendation N°. 20, Annex 1 | ||
// Common Code Name Conversion Factor Symbol | ||
// C81 radian rad | ||
// C25 milliradian 1E-3 rad mrad | ||
// MMT millimetre 1E−3 m mm | ||
// HMT hectometre 1E2 m hm | ||
// KTM kilometre 1E3 m km | ||
// KMQ kilogram per cubic metre kg/m3 kg/m3 | ||
// FAH degree Fahrenheit 5/9 x K °F | ||
// J23 degree Fahrenheit per hour 1,543 210 x 10− 4 K/s °F/h | ||
// SEC second [unit of time] | ||
// C26 millisecond 1E-3 S | ||
// B98 microsecond 1E-6 S | ||
// Specific columns of this table shall be used to create the EUInformation structure as defined by the following rules: | ||
// | ||
// The Common Code is represented as an alphanumeric variable length of 3 characters. It shall be used for the | ||
// EUInformation.unitId. The following pseudo code specifies the algorithm | ||
// to convert the Common Code into an Int32 as needed for EUInformation.unitId: | ||
function commonCodeToUInt(code) { | ||
// CEL => | ||
let unitId = 0; | ||
@@ -64,3 +25,2 @@ let c; | ||
c = code.charCodeAt(i); | ||
/* istanbul ignore if*/ | ||
if (c === 0) { | ||
@@ -83,3 +43,2 @@ return unitId; | ||
exports.makeEUInformation = makeEUInformation; | ||
// http://www.unece.org/fileadmin/DAM/cefact/recommendations/rec20/rec20_rev3_Annex2e.pdf | ||
exports.standardUnits = { | ||
@@ -86,0 +45,0 @@ ampere: makeEUInformation("AMP", "A", "ampere"), |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var node_opcua_data_model_1 = require("node-opcua-data-model"); | ||
exports.LocalizedText = node_opcua_data_model_1.LocalizedText; | ||
__export(require("./Range")); | ||
Object.defineProperty(exports, "LocalizedText", { enumerable: true, get: function () { return node_opcua_data_model_1.LocalizedText; } }); | ||
__exportStar(require("./Range"), exports); | ||
//# sourceMappingURL=imports.js.map |
@@ -1,6 +0,3 @@ | ||
/** | ||
* @module node-opcua-data-access | ||
*/ | ||
export * from "./Range"; | ||
export * from "./EUInformation"; | ||
export { AxisInformation, EUInformation, AxisScaleEnumeration } from "node-opcua-types"; | ||
export { AxisInformation, AxisScaleEnumeration } from "node-opcua-types"; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* @module node-opcua-data-access | ||
*/ | ||
__export(require("./Range")); | ||
__export(require("./EUInformation")); | ||
__exportStar(require("./Range"), exports); | ||
__exportStar(require("./EUInformation"), exports); | ||
var node_opcua_types_1 = require("node-opcua-types"); | ||
exports.AxisInformation = node_opcua_types_1.AxisInformation; | ||
exports.EUInformation = node_opcua_types_1.EUInformation; | ||
exports.AxisScaleEnumeration = node_opcua_types_1.AxisScaleEnumeration; | ||
Object.defineProperty(exports, "AxisInformation", { enumerable: true, get: function () { return node_opcua_types_1.AxisInformation; } }); | ||
Object.defineProperty(exports, "AxisScaleEnumeration", { enumerable: true, get: function () { return node_opcua_types_1.AxisScaleEnumeration; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,1 @@ | ||
/** | ||
* @module node-opcua-data-access | ||
*/ | ||
export { Range } from "node-opcua-types"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* @module node-opcua-data-access | ||
*/ | ||
var node_opcua_types_1 = require("node-opcua-types"); | ||
exports.Range = node_opcua_types_1.Range; | ||
Object.defineProperty(exports, "Range", { enumerable: true, get: function () { return node_opcua_types_1.Range; } }); | ||
//# sourceMappingURL=Range.js.map |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "2.5.10", | ||
"version": "2.6.0-alpha.0", | ||
"description": "pure nodejs OPCUA SDK - module -data-access", | ||
@@ -16,12 +16,12 @@ "scripts": { | ||
"node-opcua-assert": "2.5.8", | ||
"node-opcua-basic-types": "^2.5.9", | ||
"node-opcua-binary-stream": "^2.5.9", | ||
"node-opcua-data-model": "^2.5.10", | ||
"node-opcua-factory": "^2.5.10", | ||
"node-opcua-nodeid": "^2.5.9", | ||
"node-opcua-types": "^2.5.10", | ||
"node-opcua-basic-types": "^2.6.0-alpha.0", | ||
"node-opcua-binary-stream": "^2.6.0-alpha.0", | ||
"node-opcua-data-model": "^2.6.0-alpha.0", | ||
"node-opcua-factory": "^2.6.0-alpha.0", | ||
"node-opcua-nodeid": "^2.6.0-alpha.0", | ||
"node-opcua-types": "^2.6.0-alpha.0", | ||
"underscore": "^1.10.2" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-generator": "^2.5.10", | ||
"node-opcua-generator": "^2.6.0-alpha.0", | ||
"should": "^13.2.3" | ||
@@ -44,3 +44,3 @@ }, | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "f83ada4e88fdeedc0710c5a3b75bbd4b44d9ff76" | ||
"gitHead": "b4e0776f042c4a1e5c801f38a249f6da46b5057d" | ||
} |
@@ -6,2 +6,2 @@ /** | ||
export * from "./EUInformation"; | ||
export { AxisInformation, EUInformation, AxisScaleEnumeration } from "node-opcua-types"; | ||
export { AxisInformation, AxisScaleEnumeration } from "node-opcua-types"; |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
23547
286
1