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

@lightningjs/blits

Package Overview
Dependencies
Maintainers
0
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningjs/blits - npm Package Compare versions

Comparing version 1.9.1 to 1.9.2

src/lib/blitsfileconverter/blitsfileconverter.js

7

CHANGELOG.md
# Changelog
## v1.9.2
_5 nov 2024_
- Fixed Element related tests
- Bumped renderer to version 2.6.0
## v1.9.1

@@ -4,0 +11,0 @@

7

package.json
{
"name": "@lightningjs/blits",
"version": "1.9.1",
"version": "1.9.2",
"description": "Blits: The Lightning 3 App Development Framework",

@@ -12,3 +12,4 @@ "bin": "bin/index.js",

"./plugins": "./src/plugins/index.js",
"./symbols": "./src/lib/symbols.js"
"./symbols": "./src/lib/symbols.js",
"./blitsFileConverter": "./src/lib/blitsfileconverter/blitsfileconverter.js"
},

@@ -53,3 +54,3 @@ "scripts": {

"@lightningjs/msdf-generator": "^1.1.0",
"@lightningjs/renderer": "^2.5.1"
"@lightningjs/renderer": "^2.6.0"
},

@@ -56,0 +57,0 @@ "repository": {

@@ -104,3 +104,3 @@ /*

assert.equal(el.props.props['width'], 100, 'Props width parameter should be set')
assert.equal(el.props.raw.get('w'), 100, "Props' raw map entry should be added")
assert.equal(el.props.raw['w'], 100, "Props' raw map entry should be added")
assert.end()

@@ -120,3 +120,3 @@ })

assert.equal(el.props.props['mountY'], 20, 'Props mountY parameter should be set')
assert.equal(el.props.raw.get('mount'), value, "Props' raw map entry should be added")
assert.equal(el.props.raw['mount'], value, "Props' raw map entry should be added")
assert.end()

@@ -133,3 +133,3 @@ })

assert.equal(el.props.props['color'], '0xf0ffffff', 'Props color parameter should be set')
assert.equal(el.props.raw.get('color'), 'azure', "Props' raw map entry should be added")
assert.equal(el.props.raw['color'], 'azure', "Props' raw map entry should be added")
assert.end()

@@ -147,3 +147,3 @@ })

assert.equal(el.props.props['src'], value, 'Props src parameter should be set')
assert.equal(el.props.raw.get('src'), value, "Props' raw map entry should be added")
assert.equal(el.props.raw['src'], value, "Props' raw map entry should be added")
assert.equal(el.props.props['color'], 0xffffffff, 'Props default color parameter should be set')

@@ -161,3 +161,3 @@ assert.end()

assert.equal(el.props.props['texture'], 'foo', 'Props texture parameter should be set')
assert.equal(el.props.raw.get('texture'), 'foo', "Props' raw map entry should be added")
assert.equal(el.props.raw['texture'], 'foo', "Props' raw map entry should be added")
assert.equal(el.props.props['color'], 0xffffffff, 'Props default color parameter should be set')

@@ -189,3 +189,3 @@ assert.end()

)
assert.equal(el.props.raw.get('fit'), fitVal, "Props' raw map entry should be added")
assert.equal(el.props.raw['fit'], fitVal, "Props' raw map entry should be added")
assert.end()

@@ -221,3 +221,3 @@ })

)
assert.equal(el.props.raw.get('fit'), fitVal, "Props' raw map entry should be added")
assert.equal(el.props.raw['fit'], fitVal, "Props' raw map entry should be added")
assert.end()

@@ -253,3 +253,3 @@ })

)
assert.equal(el.props.raw.get('fit'), fitVal, "Props' raw map entry should be added")
assert.equal(el.props.raw['fit'], fitVal, "Props' raw map entry should be added")
assert.end()

@@ -256,0 +256,0 @@ })

@@ -20,6 +20,8 @@ /*

import msdfGenerator from './msdfGenerator.js'
import blitsFileConverter from './blitsFileConverter.js'
export { default as preCompiler } from './preCompiler.js'
export { default as msdfGenerator } from './msdfGenerator.js'
export { default as blitsFileConverter } from './blitsFileConverter.js'
export default [preCompiler(), msdfGenerator()]
export default [blitsFileConverter(), preCompiler(), msdfGenerator()]

@@ -0,1 +1,18 @@

/*
* Copyright 2023 Comcast Cable Communications Management, LLC
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
import path from 'path'

@@ -2,0 +19,0 @@ import * as fs from 'fs'

@@ -30,2 +30,9 @@ /*

if (config.blits && config.blits.precompile === false) return source
const fileExtension = path.extname(filePath)
// we should only precompile .js and .ts files
if (fileExtension === '.js' || fileExtension === '.ts') {
return compiler(source, filePath)
}
const relativePath = path.relative(process.cwd(), filePath)

@@ -32,0 +39,0 @@ return compiler(source, relativePath)

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