New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-sweet

Package Overview
Dependencies
Maintainers
0
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-sweet - npm Package Versions

23
6

2.0.5

Diff

Changelog

Source

[2.0.5] - 2025/2/4

Added

  • Added a Handlebars helper, available for use in views, to replace HTML tags in a string.

    Example:

    {{!-- results in: lorem ipsum dolor sit amet --}}
    {{{stripTags '<a href="https://example.com">lorem ipsum <strong>dolor</strong> <em>sit</em> amet</a>'}}}
    
    {{!-- results in: lorem ipsum <strong>dolor</strong> sit amet --}}
    {{{stripTags '<a href="https://example.com">lorem ipsum <strong>dolor</strong> <em>sit</em> amet</a>' '<strong>' ''}}}
    
    {{!-- results in: 🍩lorem ipsum 🍩dolor🍩 🍩sit🍩 amet🍩 --}}
    {{{stripTags '<a href="https://example.com">lorem ipsum <strong>dolor</strong> <em>sit</em> amet</a>' [] '🍩'}}}
    
takuya-motoshima
published 2.0.4 •

Changelog

Source

[2.0.4] - 2025/1/14

<!-- ## [2.0.4] - Unreleased -->

Changed

  • Refactored variable names.
  • Fix Docker demo.
  • Changed the directory name for storing custom error classes in the demo from exceptions to errors.
  • Added a section to the README.md API reference about considerations when using the hasMany association with the findAll method.

Added

  • findObjectInArray Handlebars helper: This helper is added to the view, allowing you to find an object in an array based on a specified field name and value.
    {{!-- 
        items is an array of objects: [{id: 123, name: 'Item A'}, {id: 456, name: 'Item B'}]
        This code will output: "Item A" 
    --}}
    {{#each items}}
        {{#if (eq id 123)}}
            {{lookup (findObjectInArray ../items 'id' id) 'name'}}
        {{/if}}
    {{/each}}
    
takuya-motoshima
published 2.0.3 •

Changelog

Source

[2.0.3] - 2024/9/3

Changed

  • Add "type": "module" to the package.json of the esm app generated by express-sweet-generator. It is fully esm compliant.
  • require was changed to dynamic import.
  • Template engine changed from express-hbs to express-handlebars.
    However, the block and contentFor helpers are still available.
  • database/Database has been changed from a sequelize.Sequelize instance to a sequelize.Sequelize class. If you use it in the future, you need to instantiate it.
  • Return type of mount() changed from void to Promise<void>.
  • Return type of middlewares/CORS.mount() changed from void to Promise<void>.
  • Return type of middlewares/Environment.mount() changed from void to Promise<void>.
  • Return type of middlewares/ErrorHandler.mount() changed from void to Promise<void>.
  • Return type of middlewares/Http.mount() changed from void to Promise<void>.
  • Return type of middlewares/Local.mount() changed from void to Promise<void>.
  • Return type of middlewares/Router.mount() changed from void to Promise<void>.
  • Return type of middlewares/View.mount() changed from void to Promise<void>.
  • Return type of middlewares/View.mountBeforeRender() changed from void to Promise<void>.
  • Return type of middlewares/Authentication.mount() changed from void to Promise<void>.
  • Return type of utils/loadAuthenticationConfig() changed from AuthenticationConfig to Promise<AuthenticationConfig>.
  • Return type of utils/loadBasicConfig() changed from BasicConfig to Promise<BasicConfig>.
  • Return type of utils/loadDatabaseConfig() changed from sequelize.Options to Promise<sequelize.Options>.
  • Return type of utils/loadViewConfig() changed from ViewConfig to Promise<ViewConfig>.
  • Return type of services/Authentication.successRedirect() changed from void to Promise<void>.
  • Return type of services/Authentication.failureRedirect() changed from void to Promise<void>.
  • Return type of database/Model.initialize() changed from typeof Model to Promise<typeof Model>.
  • Return type of database/loadModels() changed from void to Promise<void>.
  • DB connection check method has been changed.
    • After:
      const expressExtension = require('express-sweet');
      
      // Create Database instance.
      const config = await expressExtension.utils.loadDatabaseConfig();
      const database = new expressExtension.database.Database(config.database, config.username, config.password, config);
      
      // Check database connection.
      await database.isConnect();
      
    • Before:
      const expressExtension = require('express-sweet');
      
      // Check database connection.
      await expressExtension.database.Database.isConnect();
      
  • Update passport from 0.4.1 to 0.7.0
takuya-motoshima
published 2.0.2 •

Changelog

Source

[2.0.2] - 2024/9/1

Changed

  • Update express from 4.18.3 to 4.19.2.
  • Update rollup from 2.79.1 to 4.21.2.
  • Rename build files (build.common.js => build.cjs, build.esm.js => build.mjs).
  • The express package was excluded from the build file. Instead, users should install express on their own.
takuya-motoshima
published 2.0.1 •

Changelog

Source

[2.0.1] - 2024/4/5

Changed

  • Removed nodejs-shared package dependency.
takuya-motoshima
published 2.0.0 •

Changelog

Source

[2.0.0] - 2024/3/24

Changed

  • EXPRESS SWEET version 2 no longer depends on the AWS SDK.
    The services.AWSRekognitionClient and services.AWSSesClient have been migrated to the AWS SDK Extension NPM package, so please install from there if needed.
takuya-motoshima
published 1.1.1 •

Changelog

Source

[1.1.1] - 2024/3/23

Changed

  • When cookie security is enabled (config/authentication.js#cookie_secure) and the application is running on the HTTP protocol, the following warning message is output upon user authentication.
    Warning: Cookie security must be disabled for user authentication to work over the HTTP protocol (config/authentication.js#cookie_secure)
    
takuya-motoshima
published 1.1.0 •

Changelog

Source

[1.1.0] - 2024/3/6

Changed

takuya-motoshima
published 1.0.44 •

Changelog

Source

[1.0.44] - 2023/12/30

Changed

  • The Secure and HttpOnly attributes of the session cookie can now be set from the authentication configuration file (config/authentication.js).
takuya-motoshima
published 1.0.43 •

Changelog

Source

[1.0.43] - 2023/12/30

Changed

  • The cookie name for storing session IDs can now be set in the cookie_name field of the authentication configuration file (config/authentication.js).
23
6
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