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

stimulus-vite-helpers

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stimulus-vite-helpers - npm Package Compare versions

Comparing version 1.0.4 to 3.0.0

6

dist/index.d.ts

@@ -0,8 +1,10 @@

import { Application, Definition } from '@hotwired/stimulus';
declare type ImportedModules = ReturnType<ImportMeta['globEager']>;
declare const CONTROLLER_FILENAME_REGEX: RegExp;
declare function registerControllers(application: Stimulus.Application, controllerModules: ImportedModules): void;
declare function definitionsFromGlob(controllerModules: ImportedModules): Stimulus.Definition[];
declare function registerControllers(application: Application, controllerModules: ImportedModules): void;
declare function definitionsFromGlob(controllerModules: ImportedModules): Definition[];
declare function identifierForGlobKey(key: string): string | undefined;
export { CONTROLLER_FILENAME_REGEX, definitionsFromGlob, identifierForGlobKey, registerControllers };

@@ -12,11 +12,9 @@ // src/index.ts

const controllerConstructor = controllerModule.default;
if (identifier && typeof controllerConstructor == "function") {
return {identifier, controllerConstructor};
}
if (identifier && typeof controllerConstructor === "function")
return { identifier, controllerConstructor };
}
function identifierForGlobKey(key) {
const logicalName = (key.match(CONTROLLER_FILENAME_REGEX) || [])[1];
if (logicalName) {
if (logicalName)
return logicalName.replace(/_/g, "-").replace(/\//g, "--");
}
}

@@ -23,0 +21,0 @@ export {

{
"name": "stimulus-vite-helpers",
"version": "1.0.4",
"version": "3.0.0",
"description": "Vite.js helpers for the Stimulus JavaScript framework",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
"author": "Máximo Mussini <maximomussini@gmail.com>",
"files": [
"dist"
],
"sideEffects": false,
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"repository": {

@@ -28,25 +39,26 @@ "type": "git",

"lint": "eslint .",
"test": "uvu tests",
"test": "vitest",
"dev": "npm run build -- --watch",
"build": "tsup src/index.ts --dts --format cjs,esm",
"clean": "rm -rf ./dist",
"release": "nr clean && nr build && npm publish",
"build": "tsup src/index.ts --dts --format cjs,esm --clean",
"release": "nr build && npm publish",
"prepublishOnly": "npm run build",
"postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags"
},
"files": [
"dist"
],
"devDependencies": {
"@antfu/eslint-config": "^0.4.3",
"@mussi/eslint-config": "^0.5",
"@typescript-eslint/eslint-plugin": "^4.12.0",
"eslint": "^7.17.0",
"rollup": "^2.36.1",
"rollup": "^2.59",
"standard-version": "^9.1.0",
"stimulus": "^2.0.0",
"tsup": "^3.11.0",
"@hotwired/stimulus": "^3.0.1",
"tsup": "^5",
"typescript": "^4.1.3",
"uvu": "^0.5.1",
"vite": "^2.0.0-beta.69"
"vitest": "^0.0.132",
"vite": "^2.7"
},
"eslintConfig": {
"extends": [
"@mussi/eslint-config"
]
},
"publishConfig": {

@@ -53,0 +65,0 @@ "access": "public"

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