Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement →
Sign In

react-hash

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hash - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+9
.github/dependabot.yml
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
target-branch: main
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '39 23 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# â„šī¸ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
+25
-25
export namespace CONSTANTS {
export namespace HashAlgorithms {
export const md2: string;
export const md5: string;
export const sha1: string;
export const sha224: string;
export const sha256: string;
export const sha384: string;
export const sha512: string;
export const keccak: string;
export const md2: "MD2";
export const md5: "MD5";
export const sha1: "SHA-1";
export const sha224: "SHA-224";
export const sha256: "SHA-256";
export const sha384: "SHA-384";
export const sha512: "SHA-512";
export const keccak: "keccak";
}
export namespace HmacAlgorithms {
export const HmacMD5: string;
export const HmacSHA1: string;
export const HmacSHA224: string;
export const HmacSHA256: string;
export const HmacSHA384: string;
export const HmacSHA512: string;
export const PBEwithHmacSHA: string;
export const PBEwithHmacSHA1: string;
export const PBEwithHmacSHA224: string;
export const PBEwithHmacSHA256: string;
export const PBEwithHmacSHA384: string;
export const PBEwithHmacSHA512: string;
export const HmacMD5: "HmacMD5";
export const HmacSHA1: "HmacSHA1";
export const HmacSHA224: "HmacSHA224";
export const HmacSHA256: "HmacSHA256";
export const HmacSHA384: "HmacSHA384";
export const HmacSHA512: "HmacSHA512";
export const PBEwithHmacSHA: "PBEwithHmacSHA";
export const PBEwithHmacSHA1: "PBEwithHmacSHA1";
export const PBEwithHmacSHA224: "PBEwithHmacSHA224";
export const PBEwithHmacSHA256: "PBEwithHmacSHA256";
export const PBEwithHmacSHA384: "PBEwithHmacSHA384";
export const PBEwithHmacSHA512: "PBEwithHmacSHA512";
}

@@ -37,4 +37,4 @@ }

export function useHash(
hmacAlgo?: CONSTANTS.HashAlgorithms = CONSTANTS.HashAlgorithms.md5,
initialMessage: ?string = "hello World",
hmacAlgo?: typeof CONSTANTS.HashAlgorithms[keyof typeof CONSTANTS.HashAlgorithms],
initialMessage?: string
): [

@@ -47,5 +47,5 @@ hashed: string,

export function useHmac(
hmacAlgo?: CONSTANTS.HmacAlgorithms = CONSTANTS.HmacAlgorithms.HmacMD5,
initialMessage: ?string = "hello World",
initialSecret: ?string = "SecretKey"
hmacAlgo?: typeof CONSTANTS.HmacAlgorithms[keyof typeof CONSTANTS.HmacAlgorithms],
initialMessage?: string,
initialSecret?: string
): [

@@ -52,0 +52,0 @@ hashed: string,

@@ -5,3 +5,3 @@ {

"description": "A hashing library for react",
"version": "0.1.0",
"version": "0.1.1",
"private": false,

@@ -8,0 +8,0 @@ "repository": {