Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/identifier / dist / fromPropsToIdentifier.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let index = 0;
function fromPropsToIdentifier(props) {
    if (process.env.NODE_ENV === 'test') {
        return '@@ID';
    }
    index += 1;
    const identifier = props.identifier ||
        props.className ||
        props.vectorClassName ||
        props.namespace ||
        'EMPTY';
    return identifier + index;
}
exports.fromPropsToIdentifier = fromPropsToIdentifier;
//# sourceMappingURL=fromPropsToIdentifier.js.map