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

@solid-primitives/script-loader

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/script-loader - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

8

dist/index.js

@@ -0,3 +1,4 @@

import { createEffect, onCleanup } from 'solid-js';
// src/index.ts
import { createEffect, onCleanup } from "solid-js";
var createScriptLoader = (opts) => {

@@ -22,4 +23,3 @@ const script = document.createElement("script");

};
export {
createScriptLoader
};
export { createScriptLoader };

@@ -1,11 +0,14 @@

// src/server.ts
import 'solid-js';
// src/index.ts
var createScriptLoader = (opts) => {
return [
void 0,
() => {
}
];
{
return [
void 0,
() => {
}
];
}
};
export {
createScriptLoader
};
export { createScriptLoader };
{
"name": "@solid-primitives/script-loader",
"version": "1.1.1",
"version": "1.1.2",
"description": "Primitive to load scripts dynamically",

@@ -27,5 +27,21 @@ "author": "Alex Lohr <alex.lohr@logmein.com>",

"main": "./dist/server.cjs",
"module": "./dist/index.js",
"module": "./dist/server.js",
"browser": {
"./dist/server.cjs": "./dist/index.cjs",
"./dist/server.js": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"exports": {
"worker": {
"import": "./dist/server.js",
"require": "./dist/server.cjs"
},
"browser": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"deno": {
"import": "./dist/server.js",
"require": "./dist/server.cjs"
},
"node": {

@@ -38,2 +54,5 @@ "import": "./dist/server.js",

},
"peerDependencies": {
"solid-js": "^1.5.0"
},
"keywords": [

@@ -46,27 +65,9 @@ "script",

"devDependencies": {
"jsdom": "^20.0.0",
"prettier": "^2.7.1",
"solid-js": "^1.5.1",
"solid-register": "^0.2.5",
"solid-testing-library": "^0.2.1",
"tslib": "^2.4.0",
"tsup": "^6.2.2",
"typescript": "^4.7.4",
"uvu": "^0.5.6"
"solid-js": "^1.5.0"
},
"peerDependencies": {
"solid-js": "^1.3.1"
},
"jest": {
"preset": "solid-jest/preset/browser",
"setupFiles": [
"./test/setup.ts"
]
},
"scripts": {
"prebuild": "npm run clean",
"clean": "rimraf dist/",
"build": "tsup",
"test": "uvu -r solid-register test"
"build": "jiti ../../scripts/build.ts --ssr",
"test": "vitest -c ../../configs/vitest.config.ts",
"test:ssr": "pnpm run test --mode ssr"
}
}

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