Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@enact/webos

Package Overview
Dependencies
Maintainers
1
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enact/webos - npm Package Compare versions

Comparing version 4.7.9 to 4.7.10

12

CHANGELOG.md

@@ -5,2 +5,6 @@ # Change Log

## [4.7.10] - 2024-03-05
No significant changes.
## [4.7.9] - 2023-12-08

@@ -10,2 +14,10 @@

## [4.5.6] - 2023-11-30
No significant changes.
## [4.0.13] - 2022-11-29
No significant changes.
## [4.7.8] - 2023-11-17

@@ -12,0 +24,0 @@

14

LS2Request/LS2Request.js

@@ -11,9 +11,9 @@ "use strict";

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /* eslint-disable no-console */ /**
* Provides a class for making LS2 service requests on webOS platforms.
*
* @module webos/LS2Request
* @exports LS2Request
*/
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint-disable no-console */ /**
* Provides a class for making LS2 service requests on webOS platforms.
*
* @module webos/LS2Request
* @exports LS2Request
*/
var refs = {};

@@ -20,0 +20,0 @@ var adjustPath = function adjustPath(path) {

{
"name": "@enact/webos",
"version": "4.7.9",
"version": "4.7.10",
"description": "webOS support library",

@@ -34,3 +34,3 @@ "repository": {

"dependencies": {
"@enact/core": "^4.7.9",
"@enact/core": "^4.7.10",
"prop-types": "^15.8.1",

@@ -37,0 +37,0 @@ "react": "^18.2.0",

@@ -15,3 +15,3 @@ # @enact/webos [![npm (scoped)](https://img.shields.io/npm/v/@enact/webos.svg?style=flat-square)](https://www.npmjs.com/package/@enact/webos)

Copyright (c) 2012-2023 LG Electronics
Copyright (c) 2012-2024 LG Electronics

@@ -18,0 +18,0 @@ Unless otherwise specified or set forth in the NOTICE file, all content, including all source code files and documentation files in this repository are: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this content except in compliance with the License. You may obtain a copy of the License at

@@ -19,4 +19,4 @@ "use strict";

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }

@@ -29,52 +29,52 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**
* VoiceControlDecorator is a higher-order component that adds a callback for voice event
* to its wrapped component.
*
* By default, `onVoice` handler will be added to the node where `data-webos-voice-intent` attribute is declared.
* In addition, if you need to specify a target node, `data-webos-voice-event-target` attribute can be used.
*
* Usage:
* ```
* import {Component} from 'react';
* import Item from '@enact/moonstone/Item';
* import {VoiceControlDecorator} from '@enact/webos/speech';
*
* const VoiceDiv = VoiceControlDecorator('div');
* const VoiceItem = VoiceControlDecorator(Item);
*
* class Sample extends Component {
* handlePlayListControl = (e) => {
* const {intent, control} = e.detail;
* // Change the app status refer to the `control` value.
* }
*
* handlePlayContent = (e) => {
* const {intent, value} = e.detail;
* // Play content
* }
*
* render () {
* return(
* <div>
* <VoiceDiv
* data-webos-voice-intent='PlayListControl'
* onVoice={this.handlePlayListControl}
* />
* <VoiceItem
* data-webos-voice-intent='Select PlayContent'
* onVoice={this.handlePlayContent}
* >
* The Dark Knight
* </VoiceItem>
* </div>
* );
* }
* }
* ```
*
* @class VoiceControlDecorator
* @memberof webos/speech
* @hoc
* @public
*/
* VoiceControlDecorator is a higher-order component that adds a callback for voice event
* to its wrapped component.
*
* By default, `onVoice` handler will be added to the node where `data-webos-voice-intent` attribute is declared.
* In addition, if you need to specify a target node, `data-webos-voice-event-target` attribute can be used.
*
* Usage:
* ```
* import {Component} from 'react';
* import Item from '@enact/moonstone/Item';
* import {VoiceControlDecorator} from '@enact/webos/speech';
*
* const VoiceDiv = VoiceControlDecorator('div');
* const VoiceItem = VoiceControlDecorator(Item);
*
* class Sample extends Component {
* handlePlayListControl = (e) => {
* const {intent, control} = e.detail;
* // Change the app status refer to the `control` value.
* }
*
* handlePlayContent = (e) => {
* const {intent, value} = e.detail;
* // Play content
* }
*
* render () {
* return(
* <div>
* <VoiceDiv
* data-webos-voice-intent='PlayListControl'
* onVoice={this.handlePlayListControl}
* />
* <VoiceItem
* data-webos-voice-intent='Select PlayContent'
* onVoice={this.handlePlayContent}
* >
* The Dark Knight
* </VoiceItem>
* </div>
* );
* }
* }
* ```
*
* @class VoiceControlDecorator
* @memberof webos/speech
* @hoc
* @public
*/
var VoiceControlDecorator = exports.VoiceControlDecorator = (0, _hoc["default"])(function (config, Wrapped) {

@@ -81,0 +81,0 @@ var _class;

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