New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fhir

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fhir - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

packageProfiles.js

14

fhir.js
var xml2js = require('xml2js');
var Q = require('q');
var fs = require('fs');
var profiles = require('./profiles');
var profiles = {};
var profileFiles = fs.readdirSync('./profiles');
for (var i in profileFiles) {
var profileJSON = fs.readFileSync('./profiles/' + profileFiles[i]).toString();
var profile = JSON.parse(profileJSON);
if (profile.structure && profile.structure.length > 0 && profile.structure[0].type) {
profiles[profile.structure[0].type] = profile;
}
}
var Fhir = function(version) {

@@ -18,0 +6,0 @@ var self = this;

{
"name": "fhir",
"version": "1.0.3",
"version": "1.0.4",
"description": "Node.JS library for serializing/deserializing FHIR resources between JS/JSON and XML using various node.js XML libraries",

@@ -34,3 +34,4 @@ "readme": "README.md",

"scripts": {
"test": "mocha test/*.js"
"test": "mocha test/*.js",
"prepublish": "node packageProfiles.js"
},

@@ -37,0 +38,0 @@ "author": "Sean McIlvenna",

@@ -9,2 +9,7 @@ # FHIR.js

# Installation
```
npm install fhir
```
# Documentation

@@ -11,0 +16,0 @@ ## ctor(version)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc