@upandgo/react-scorm-container
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -10,2 +10,3 @@ import * as React from "react"; | ||
commitCallback: (state: LMSState, eventList: SCORMEvent[]) => void; | ||
sessionId?: string; | ||
}; | ||
@@ -12,0 +13,0 @@ declare type State = { |
@@ -268,3 +268,3 @@ import { createRef, createElement, Component } from 'react'; | ||
_this.state = { | ||
sessionId: index_browser() | ||
sessionId: props.sessionId || index_browser() | ||
}; | ||
@@ -271,0 +271,0 @@ return _this; |
@@ -272,3 +272,3 @@ 'use strict'; | ||
_this.state = { | ||
sessionId: index_browser() | ||
sessionId: props.sessionId || index_browser() | ||
}; | ||
@@ -275,0 +275,0 @@ return _this; |
{ | ||
"name": "@upandgo/react-scorm-container", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "A React component acting as a LMS, listening to SCORM API events and reacting to SCORM API call.", | ||
@@ -5,0 +5,0 @@ "author": "Sangrene", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
94291
649
2