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

@lightningjs/solid-primitives

Package Overview
Dependencies
Maintainers
7
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningjs/solid-primitives - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

4

dist/packages/createSpriteMap.d.ts

@@ -1,2 +0,2 @@

import { type TextureRef } from '@lightningjs/renderer';
import { type SpecificTextureRef } from '@lightningjs/renderer';
export interface SpriteDef {

@@ -9,2 +9,2 @@ name: string;

}
export declare function createSpriteMap(src: string, subTextures: SpriteDef[]): Record<string, TextureRef>;
export declare function createSpriteMap(src: string, subTextures: SpriteDef[]): Record<string, SpecificTextureRef<"SubTexture">>;
{
"name": "@lightningjs/solid-primitives",
"version": "0.4.1",
"version": "0.4.2",
"description": "Lightning Primitives for Solid Lightning",

@@ -15,17 +15,2 @@ "type": "module",

"sideEffects": false,
"scripts": {
"start": "npm run dev",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "npm run lint:prettier && npm run lint:eslint",
"lint:fix": "npm run lint:fix:prettier && npm run lint:fix:eslint",
"lint:prettier": "prettier --check \"**/*.{ts,js,cjs,md}\"",
"lint:fix:prettier": "prettier --write \"**/*.{ts,js,cjs,md}\"",
"lint:eslint": "eslint .",
"lint:fix:eslint": "eslint --fix .",
"build": "tsc",
"watch": "tsc -w",
"dev": "concurrently -c \"auto\" \"npm:watch\" \"npm:vite\"",
"vite": "vite --open \"/test/index.html\" --host",
"prepack": "npm run build"
},
"keywords": [

@@ -77,3 +62,17 @@ "lightning",

"README.md"
]
}
],
"scripts": {
"start": "npm run dev",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "npm run lint:prettier && npm run lint:eslint",
"lint:fix": "npm run lint:fix:prettier && npm run lint:fix:eslint",
"lint:prettier": "prettier --check \"**/*.{ts,js,cjs,md}\"",
"lint:fix:prettier": "prettier --write \"**/*.{ts,js,cjs,md}\"",
"lint:eslint": "eslint .",
"lint:fix:eslint": "eslint --fix .",
"build": "tsc",
"watch": "tsc -w",
"dev": "concurrently -c \"auto\" \"npm:watch\" \"npm:vite\"",
"vite": "vite --open \"/test/index.html\" --host"
}
}

@@ -19,3 +19,3 @@ /*

import { renderer } from '@lightningjs/solid';
import { type TextureRef } from '@lightningjs/renderer';
import { type SpecificTextureRef } from '@lightningjs/renderer';

@@ -35,3 +35,3 @@ export interface SpriteDef {

return subTextures.reduce<Record<string, TextureRef>>((acc, t) => {
return subTextures.reduce<Record<string, SpecificTextureRef<"SubTexture">>>((acc, t) => {
const { x, y, width, height } = t;

@@ -38,0 +38,0 @@ acc[t.name] = renderer.createTexture('SubTexture', {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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