Socket
Socket
Sign inDemoInstall

edge.js

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge.js - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

27

build/src/Edge/globals/index.d.ts

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

import { string } from '@poppinss/utils/build/helpers';
import { safeValue } from '../../Template';

@@ -5,11 +6,29 @@ export declare const GLOBALS: {

truncate: (value: string, length?: number, options?: {
strict: boolean;
suffix: string;
completeWords?: boolean | undefined;
strict?: boolean | undefined;
suffix?: string | undefined;
} | undefined) => string;
raise: (message: string, options?: any) => never;
excerpt: (value: string, length?: number, options?: {
strict: boolean;
suffix: string;
completeWords?: boolean | undefined;
strict?: boolean | undefined;
suffix?: string | undefined;
} | undefined) => string;
safe: typeof safeValue;
camelCase: typeof string.camelCase;
snakeCase: typeof string.snakeCase;
dashCase: typeof string.dashCase;
pascalCase: typeof string.pascalCase;
capitalCase: typeof string.capitalCase;
sentenceCase: typeof string.sentenceCase;
dotCase: typeof string.dotCase;
noCase: typeof string.noCase;
titleCase: typeof string.titleCase;
pluralize: typeof string.pluralize;
toSentence: typeof string.toSentence;
prettyBytes: typeof string.prettyBytes;
toBytes: typeof string.toBytes;
prettyMs: typeof string.prettyMs;
toMs: typeof string.toMs;
ordinalize: typeof string.ordinalize;
};

@@ -20,5 +20,6 @@ "use strict";

truncate: (value, length = 20, options) => {
options = options || {};
return helpers_1.string.truncate(value, length, {
completeWords: !options?.strict,
suffix: options?.suffix,
completeWords: options.completeWords !== undefined ? options.completeWords : !options.strict,
suffix: options.suffix,
});

@@ -35,8 +36,25 @@ },

excerpt: (value, length = 20, options) => {
options = options || {};
return helpers_1.string.excerpt(value, length, {
completeWords: !options?.strict,
suffix: options?.suffix,
completeWords: options.completeWords !== undefined ? options.completeWords : !options.strict,
suffix: options.suffix,
});
},
safe: Template_1.safeValue,
camelCase: helpers_1.string.camelCase,
snakeCase: helpers_1.string.snakeCase,
dashCase: helpers_1.string.dashCase,
pascalCase: helpers_1.string.pascalCase,
capitalCase: helpers_1.string.capitalCase,
sentenceCase: helpers_1.string.sentenceCase,
dotCase: helpers_1.string.dotCase,
noCase: helpers_1.string.noCase,
titleCase: helpers_1.string.titleCase,
pluralize: helpers_1.string.pluralize,
toSentence: helpers_1.string.toSentence,
prettyBytes: helpers_1.string.prettyBytes,
toBytes: helpers_1.string.toBytes,
prettyMs: helpers_1.string.prettyMs,
toMs: helpers_1.string.toMs,
ordinalize: helpers_1.string.ordinalize,
};

32

package.json
{
"name": "edge.js",
"version": "4.0.2",
"version": "4.0.3",
"description": "Template engine",

@@ -39,5 +39,5 @@ "main": "build/index.js",

"@adonisjs/mrm-preset": "^3.0.0",
"@adonisjs/require-ts": "^2.0.2",
"@poppinss/dev-utils": "^1.1.0",
"@types/node": "^14.14.31",
"@adonisjs/require-ts": "^2.0.3",
"@poppinss/dev-utils": "^1.1.1",
"@types/node": "^14.14.35",
"commitizen": "^4.2.3",

@@ -48,14 +48,14 @@ "cz-conventional-changelog": "^3.3.0",

"doctoc": "^2.0.0",
"eslint": "^7.20.0",
"eslint-config-prettier": "^8.0.0",
"eslint-plugin-adonis": "^1.2.1",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-adonis": "^1.3.0",
"eslint-plugin-prettier": "^3.3.1",
"github-label-sync": "^2.0.0",
"husky": "^5.0.9",
"husky": "^5.2.0",
"japa": "^3.1.1",
"js-stringify": "^1.0.2",
"mrm": "^2.5.19",
"mrm": "^2.6.1",
"np": "^7.4.0",
"prettier": "^2.2.1",
"typescript": "^4.1.5"
"typescript": "^4.2.3"
},

@@ -77,7 +77,7 @@ "config": {

"@poppinss/inspect": "^1.0.1",
"@poppinss/utils": "^3.0.3",
"edge-error": "^2.0.0",
"edge-lexer": "^4.0.1",
"edge-parser": "^8.0.1",
"macroable": "^5.1.0",
"@poppinss/utils": "^3.0.5",
"edge-error": "^2.0.1",
"edge-lexer": "^4.0.2",
"edge-parser": "^8.0.3",
"macroable": "^5.1.1",
"stringify-attributes": "^2.0.0"

@@ -102,3 +102,3 @@ },

"access": "public",
"tag": "next"
"tag": "latest"
},

@@ -105,0 +105,0 @@ "np": {

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