Comparing version 3.2.2 to 3.3.0
'use strict'; | ||
const farmhash = require('./build/Release/farmhash.node'); | ||
const farmhash = (function farmhashBinding () { | ||
try { | ||
return require('./build/Release/farmhash.node'); | ||
} catch (e) { | ||
return require('./build/Debug/farmhash.node'); | ||
} | ||
}()); | ||
@@ -5,0 +11,0 @@ // Input validation |
{ | ||
"name": "farmhash", | ||
"version": "3.2.2", | ||
"version": "3.3.0", | ||
"author": "Lovell Fuller <npm@lovell.info>", | ||
@@ -32,8 +32,8 @@ "contributors": [ | ||
"dependencies": { | ||
"node-addon-api": "^4.2.0", | ||
"prebuild-install": "^7.0.0" | ||
"node-addon-api": "^5.1.0", | ||
"prebuild-install": "^7.1.1" | ||
}, | ||
"devDependencies": { | ||
"cc": "^3.0.1", | ||
"prebuild": "^11.0.0", | ||
"prebuild": "^11.0.4", | ||
"semistandard": "^16.0.1" | ||
@@ -40,0 +40,0 @@ }, |
@@ -17,4 +17,4 @@ # farmhash | ||
This module uses FarmHash v1.1.0 (2015-03-01). | ||
It has been tested with Node.js 10, 12 and 14 | ||
on Linux, OS X and Windows. | ||
It has been tested with Node.js 10, 12, 14, 16 and 18 | ||
on Linux (glibc, musl), macOS (x64) and Windows (x86, x64). | ||
@@ -125,6 +125,2 @@ Pre-compiled binaries are provided for CPUs with SSE4.2 intrinsics. | ||
[![Build Status](https://travis-ci.org/lovell/farmhash.png?branch=main)](https://travis-ci.org/lovell/farmhash) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/es9kgsucfhmg8j0l)](https://ci.appveyor.com/project/lovell/farmhash) | ||
```sh | ||
@@ -136,3 +132,3 @@ npm test | ||
Copyright 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Lovell Fuller and contributors. | ||
Copyright 2014 Lovell Fuller and contributors. | ||
@@ -139,0 +135,0 @@ Licensed under the Apache License, Version 2.0 (the "License"); |
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
323456
92
163
+ Addednode-addon-api@5.1.0(transitive)
- Removednode-addon-api@4.3.0(transitive)
Updatednode-addon-api@^5.1.0
Updatedprebuild-install@^7.1.1