Projects
Mega:24.03:SP1:Everything
nodejs-iconv
_service:tar_scm:nodejs-iconv-safer-buffer.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:nodejs-iconv-safer-buffer.patch of Package nodejs-iconv
From faec05bb6e5bf9a59e912c9a3b47e9150539d8bd Mon Sep 17 00:00:00 2001 From: Tom Hughes <tom@compton.nu> Date: Thu, 21 Mar 2019 10:06:30 +0000 Subject: [PATCH 1/2] Patch out use of safer-buffer --- lib/iconv.js | 1 - package.json | 3 +-- test/test-basic.js | 1 - test/test-big-buffer.js | 1 - test/test-stream.js | 1 - 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/iconv.js b/lib/iconv.js index 829b069..84a2d75 100644 --- a/lib/iconv.js +++ b/lib/iconv.js @@ -20,7 +20,6 @@ exports.Iconv = Iconv; var stream = require('stream'); var util = require('util'); -var Buffer = require('safer-buffer').Buffer; var bindings; try { diff --git a/package.json b/package.json index 00b7d88..f1a7db5 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,7 @@ "license": "ISC", "readmeFilename": "README.md", "dependencies": { - "nan": "^2.13.1", - "safer-buffer": "^2.1.2" + "nan": "^2.13.1" }, "scripts": { "test": "node test/run-tests.js" diff --git a/test/test-basic.js b/test/test-basic.js index a007c7b..7cee646 100644 --- a/test/test-basic.js +++ b/test/test-basic.js @@ -18,7 +18,6 @@ var assert = require('assert'); var Iconv = require('../lib/iconv').Iconv; -var Buffer = require('safer-buffer').Buffer; // unknown source/target encoding assert.throws(function() { new Iconv('utf-8', 'xxx'); }); diff --git a/test/test-big-buffer.js b/test/test-big-buffer.js index f94719d..bda8f95 100644 --- a/test/test-big-buffer.js +++ b/test/test-big-buffer.js @@ -18,7 +18,6 @@ var Iconv = require('../lib/iconv').Iconv; var assert = require('assert'); -var Buffer = require('safer-buffer').Buffer; var iconv = new Iconv('UTF-8', 'UTF-16LE'); diff --git a/test/test-stream.js b/test/test-stream.js index 279ff20..3d22a77 100644 --- a/test/test-stream.js +++ b/test/test-stream.js @@ -21,7 +21,6 @@ var assert = require('assert'); var stream = require('stream'); var net = require('net'); var fs = require('fs'); -var Buffer = require('safer-buffer').Buffer; var PORT = 12345; assert(new Iconv('ascii', 'ascii') instanceof stream.Stream); -- 2.20.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2