@solid-primitives/script-loader
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
7450
89