@byhealth/data-reporter
Advanced tools
Comparing version 1.0.0-beta.3 to 1.0.0-beta.4
'use strict'; | ||
var nanoid = require('nanoid'); | ||
var nonSecure = require('nanoid/non-secure'); | ||
var flatted = require('flatted'); | ||
@@ -12,3 +12,3 @@ | ||
const config = { | ||
SDK_VERSION: "1.0.0-beta.3", | ||
SDK_VERSION: "1.0.0-beta.4", | ||
DEBUG: false, | ||
@@ -191,3 +191,3 @@ API_URL: 'https://trk.by-health.com/trk-api/trk/data', | ||
getCid() { | ||
return nanoid.nanoid(21); | ||
return nonSecure.nanoid(21); | ||
} | ||
@@ -197,3 +197,3 @@ getUid() { | ||
if (!id) { | ||
id = nanoid.nanoid(15); | ||
id = nonSecure.nanoid(15); | ||
this._storage.set(UNIQUE_ID, id); | ||
@@ -204,3 +204,3 @@ } | ||
getSid() { | ||
return nanoid.nanoid(11); | ||
return nonSecure.nanoid(11); | ||
} | ||
@@ -207,0 +207,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { nanoid } from 'nanoid'; | ||
import { nanoid } from 'nanoid/non-secure'; | ||
import { fromJSON, toJSON, parse, stringify } from 'flatted'; | ||
@@ -10,3 +10,3 @@ | ||
const config = { | ||
SDK_VERSION: "1.0.0-beta.3", | ||
SDK_VERSION: "1.0.0-beta.4", | ||
DEBUG: false, | ||
@@ -13,0 +13,0 @@ API_URL: 'https://trk.by-health.com/trk-api/trk/data', |
{ | ||
"name": "@byhealth/data-reporter", | ||
"version": "1.0.0-beta.3", | ||
"version": "1.0.0-beta.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs.js", |
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
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
50171