signedsource
Advanced tools
Comparing version 1.0.0 to 2.0.0
15
index.js
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* All rights reserved. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
*/ | ||
'use strict'; | ||
@@ -56,3 +57,3 @@ | ||
isSigned(data) { | ||
return !PATTERN.exec(data); | ||
return PATTERN.exec(data) != null; | ||
}, | ||
@@ -85,3 +86,3 @@ | ||
'SignedSource.verifySignature(...): Cannot verify signature of an ' + | ||
'unsigned file.' | ||
'unsigned file.' | ||
); | ||
@@ -88,0 +89,0 @@ } |
{ | ||
"name": "signedsource", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "This package exports utilities to sign and verify generated files.", | ||
"main": "index.js", | ||
"license": "BSD-3-Clause" | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "jest" | ||
}, | ||
"files": [ | ||
"LICENSE", | ||
"index.js" | ||
], | ||
"devDependencies": { | ||
"jest": "^23.6.0" | ||
} | ||
} |
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
4788
1
3